[
https://issues.apache.org/jira/browse/KAFKA-18942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17933465#comment-17933465
]
Ismael Juma commented on KAFKA-18942:
-------------------------------------
It will be awesome to have this.
> Add reviewers to PR body with committer-tools
> ---------------------------------------------
>
> Key: KAFKA-18942
> URL: https://issues.apache.org/jira/browse/KAFKA-18942
> Project: Kafka
> Issue Type: Sub-task
> Components: build
> Reporter: David Arthur
> Priority: Major
>
> When we switch to the merge queue, we cannot alter the commit message
> directly and instead must use the PR body for the eventual commit message.
>
> In order to include our "Reviewers" metadata in the commit, we must edit the
> PR body after a review has happened and add the "Reviewers" manually. This is
> rather annoying and we can do better.
>
> The committer-tools script "reviewers.py" can use the GitHub API (via "gh")
> to read, modify, and update the PR body with the reviewers selected by this
> tool.
>
> For example,
>
> {noformat}
> $ ./committer-tools/reviewers.py
> Utility to help generate 'Reviewers' string for Pull Requests. Use Ctrl+D or
> Ctrl+C to exit
> Name or email (case insensitive): chia
> Possible matches (in order of most recent):
> [1] Chia-Ping Tsai [email protected] (1908)
> [2] Chia-Ping Tsai [email protected] (13)
> [3] Chia-Chuan Yu [email protected] (11)
> [4] Chia Chuan Yu [email protected] (10)
> Make a selection: 1
> Reviewers so far: [('Chia-Ping Tsai', '[email protected]', 1908)]
> Name or email (case insensitive): ^C
> Reviewers: Chia-Ping Tsai <[email protected]>
> Pull Request to update (Ctrl+D or Ctrl+C to skip): 19144
> Adding Reviewers to 19144...
> {noformat}
>
> The script should be able to handle existing "Reviewers" string in the PR body
--
This message was sent by Atlassian Jira
(v8.20.10#820010)