Proposal: add pull request message info to GitChangeSet

13 views
Skip to first unread message

Joan Friedman

unread,
Sep 18, 2017, 12:47:20 PM9/18/17
to Jenkins Developers
We have a use case for adding a comment to Atlassian Pull Requests when Jenkins starts a build including one. To do this, we would like to use jenkins' changesets, rather than drop into the commandline using git and awk. Currently, this information is ignored when GitChangeSet parses a commit. Since there is no extension point available for GitChangeSet, my idea is to add fields to GitChangeSet for the pull request id and from-branch, and add a few lines of parsing to find this information when it exists and set the fields; then submit the proposes changes. Is that the best way to go about it, or is there a better way? It would be more generic to soak in any intermediate lines with text, but that could add a lot of weight. 

There was a discussion of a related question in topic ChangeLog as list of Pull Requests, but it didn't seem to go anywhere that would help with this use case.

thanks in advance



Jesse Glick

unread,
Sep 18, 2017, 2:15:02 PM9/18/17
to Jenkins Dev
On Mon, Sep 18, 2017 at 12:35 PM, Joan Friedman
<joan.fri...@gmail.com> wrote:
> We have a use case for adding a comment to Atlassian Pull Requests when
> Jenkins starts a build including one.

Automatic when using an appropriate branch source, such as for BitBucket.
Reply all
Reply to author
Forward
0 new messages