You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by Sutou Kouhei <ko...@clear-code.com> on 2025/02/17 06:43:04 UTC

[MONOREPO] Can we improve our PR template?

Hi,

Can we improve our PR template?

Related issue: https://github.com/apache/arrow/issues/45485

We're using comments in our PR template to explain our
contribution guides. See <!-- ... --> parts in [1]. Comments
are visible only in PR description edit view.

[1] https://raw.githubusercontent.com/apache/arrow/refs/heads/main/.github/pull_request_template.md


I feel that this approach is inconvenient because:

1. Some (many?) contributors don't read them
   (Our PR title checker detects many invalid formatted PRs: 1366 PRs [2])
2. They are when I edit PR description
   (Because we use PR description when we merge a PR.)
3. If a commiter doesn't use dev/merge_arrow_pr.py, these
   comments are included in commit message.
   (In general, this doesn't happen.)

[2] https://github.com/apache/arrow/pulls?q=is%3Apr+%22Licensed+to+the+Apache+Software+Foundation%22+%22Thanks+for+opening+a+pull+request%22+

What do you think about comments in our PR template?


Here are some ideas to improve our PR template:

1. Remove them entirely:

   ----
   ### Rationale for this change

   ### What changes are included in this PR?

   ### Are these changes tested?

   ### Are there any user-facing changes?
   ----

2. Keep minimal notes as a normal text not a comment
   something like:

   ----
   Thanks for opening a pull request!

   If this is your first pull request you can find detailed
   information on how to contribute here:

   * [New Contributor's Guide](https://arrow.apache.org/docs/dev/developers/guide/step_by_step/pr_lifecycle.html#reviews-and-merge-of-the-pull-request)
   * [Contributing Overview](https://arrow.apache.org/docs/dev/developers/overview.html)

   Please remove this line and the above text before creating your pull request.

   ### Rationale for this change

   ### What changes are included in this PR?

   ### Are these changes tested?

   ### Are there any user-facing changes?
   ----


FYI: If we (1) don't use comments in our PR template, (2)
embed "fix GH-XXX" in a PR description and (3) add a helper
GitHub Actions job that assign milestone, we may be able to
remove dev/merge_arrow_pr.py and use the merge button in a
PR.


Thanks,
-- 
kou

Re: [MONOREPO] Can we improve our PR template?

Posted by Sutou Kouhei <ko...@clear-code.com>.
Hi,

Thank you everyone for sharing your opinions! Let's choose
2.


Thanks,
-- 
kou

In <CA...@mail.gmail.com>
  "Re: [MONOREPO] Can we improve our PR template?" on Mon, 17 Feb 2025 19:57:47 +0900,
  Hiroyuki Sato <hi...@gmail.com> wrote:

> Hello, everyone.
> 
> I don't know if I can comment here.
> As a new contributor, I'm in favor of option 2.
> 
> * Until recently, I didn't know that the <!-- --> part need to delete.
>   So, "Please remove this line and the above text before creating your
> pull request." is important.
>   (I just wanted to let you know this.)
> * I thought it would be nice to have a page[1] like this instead of
> <!-- -->comments.
> 
> [1] https://gist.github.com/hiroyuki-sato/f7eebe69c3255028027f701240b77a20
> 
> Regards
> 
> --
> Hiroyuki Sato
> 
> 2025年2月17日(月) 18:26 Saurabh Singh <si...@gmail.com>:
>>
>> Hi Kou,
>>
>> 2. Keep minimal notes as a normal text not a comment
>> >    something like:
>> >    ----
>> >    Thanks for opening a pull request!
>> >
>> >    If this is your first pull request you can find detailed
>> >    information on how to contribute here:
>> >
>> >    * [New Contributor's Guide](
>> > https://arrow.apache.org/docs/dev/developers/guide/step_by_step/pr_lifecycle.html#reviews-and-merge-of-the-pull-request
>> > )
>> >    * [Contributing Overview](
>> > https://arrow.apache.org/docs/dev/developers/overview.html)
>> >
>> >    Please remove this line and the above text before creating your pull
>> > request.
>> >
>> >    ### Rationale for this change
>> >
>> >    ### What changes are included in this PR?
>> >
>> >    ### Are these changes tested?
>> >
>> >    ### Are there any user-facing changes?
>> >    ----
>>
>>
>> I'm even in the favour of option 2.
>>
>> Regards
>> Saurabh
> 
> 
> 
> -- 
> Hiroyuki Sato

Re: [MONOREPO] Can we improve our PR template?

Posted by Hiroyuki Sato <hi...@gmail.com>.
Hello, everyone.

I don't know if I can comment here.
As a new contributor, I'm in favor of option 2.

* Until recently, I didn't know that the <!-- --> part need to delete.
  So, "Please remove this line and the above text before creating your
pull request." is important.
  (I just wanted to let you know this.)
* I thought it would be nice to have a page[1] like this instead of
<!-- -->comments.

[1] https://gist.github.com/hiroyuki-sato/f7eebe69c3255028027f701240b77a20

Regards

--
Hiroyuki Sato

2025年2月17日(月) 18:26 Saurabh Singh <si...@gmail.com>:
>
> Hi Kou,
>
> 2. Keep minimal notes as a normal text not a comment
> >    something like:
> >    ----
> >    Thanks for opening a pull request!
> >
> >    If this is your first pull request you can find detailed
> >    information on how to contribute here:
> >
> >    * [New Contributor's Guide](
> > https://arrow.apache.org/docs/dev/developers/guide/step_by_step/pr_lifecycle.html#reviews-and-merge-of-the-pull-request
> > )
> >    * [Contributing Overview](
> > https://arrow.apache.org/docs/dev/developers/overview.html)
> >
> >    Please remove this line and the above text before creating your pull
> > request.
> >
> >    ### Rationale for this change
> >
> >    ### What changes are included in this PR?
> >
> >    ### Are these changes tested?
> >
> >    ### Are there any user-facing changes?
> >    ----
>
>
> I'm even in the favour of option 2.
>
> Regards
> Saurabh



-- 
Hiroyuki Sato

Re: [MONOREPO] Can we improve our PR template?

Posted by Saurabh Singh <si...@gmail.com>.
Hi Kou,

2. Keep minimal notes as a normal text not a comment
>    something like:
>    ----
>    Thanks for opening a pull request!
>
>    If this is your first pull request you can find detailed
>    information on how to contribute here:
>
>    * [New Contributor's Guide](
> https://arrow.apache.org/docs/dev/developers/guide/step_by_step/pr_lifecycle.html#reviews-and-merge-of-the-pull-request
> )
>    * [Contributing Overview](
> https://arrow.apache.org/docs/dev/developers/overview.html)
>
>    Please remove this line and the above text before creating your pull
> request.
>
>    ### Rationale for this change
>
>    ### What changes are included in this PR?
>
>    ### Are these changes tested?
>
>    ### Are there any user-facing changes?
>    ----


I'm even in the favour of option 2.

Regards
Saurabh

Re: [MONOREPO] Can we improve our PR template?

Posted by Antoine Pitrou <an...@python.org>.
Hi Kou,

Le 17/02/2025 à 07:43, Sutou Kouhei a écrit :
> 
> Here are some ideas to improve our PR template:
> 
> 1. Remove them entirely:
> 
[...]
> 
> 2. Keep minimal notes as a normal text not a comment
>     something like:

I think our template is useful (it forces us to better describe PRs), so 
I'm in favor of option 2.

Regards

Antoine.