ianpittwood / Gerrit-to-Github-Issues

Set of scripts that can be used to synchronize/update Github Issues with data from a Gerrit instance
Apache License 2.0
2 stars 2 forks source link

Add functionality for Gerrit change modification to put GH Hyperlink #12

Open demonCoder95 opened 3 years ago

demonCoder95 commented 3 years ago

This is in reference with #157 in airshipctl which proposes to add this functionality.

The idea is to use the "relates to" parts on the Gerrit Change commit message to "somehow" reflect a hyperlink in the change for easier navigation for reviewers from Gerrit->GH

The approaches can be:

  1. Modify the commit message to replace issue numbers with hyperlinks
  2. add comments to the change

I'm thinkin 2 is more viable since it requires the least amount of effort on the Gerrit side. 1 needs extra setup of a bot account on airship project side which will have permission to modify commit message of each change. I'm starting with 2 and will post a PR shortly.