[ 
https://issues.apache.org/jira/browse/KAFKA-18942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chia-Ping Tsai reassigned KAFKA-18942:
--------------------------------------

    Assignee: Ming-Yen Chung

> 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
>            Assignee: Ming-Yen Chung
>            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 chia7...@gmail.com (1908)
> [2] Chia-Ping Tsai chia7...@apache.org (13)
> [3] Chia-Chuan Yu yujuan...@gmail.com (11)
> [4] Chia Chuan Yu yujuan...@gmail.com (10)
> Make a selection: 1
> Reviewers so far: [('Chia-Ping Tsai', 'chia7...@gmail.com', 1908)]
> Name or email (case insensitive): ^C
> Reviewers: Chia-Ping Tsai <chia7...@gmail.com>
> 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)

Reply via email to