• GitHub Branch Source 2.0.1

      Is GitHub PR information available in an object/variable/etc. in a Pipeline job?

      I'd like to be able to send an e-mail to a PR's owner/author for example.  But just the PR owner/author, not any of the authors of any other patches that may be merged into the PR, so I don't think any of email-ext's current recipientProviders can do this.

      So instead I'd like to get the PR owner from this plugin and use it as the recipient in an email-ext call.

          [JENKINS-62080] PR owner information in Pipeline?

          Liam Newman added a comment -

          PR Owner might be something that could be exposed, but it definitely isn't tracked right now. This might require changes in scm-api-plugin or branch-api-plugin as well.

          Liam Newman added a comment - PR Owner might be something that could be exposed, but it definitely isn't tracked right now. This might require changes in scm-api-plugin or branch-api-plugin as well.

          Jean-Luc Pé added a comment -

          It would actually be a very interesting enhancement.
          I would even say that I am really surprised that we cannot send a mail to the user having created a PR that on its turn trigger a build !

          Jean-Luc Pé added a comment - It would actually be a very interesting enhancement. I would even say that I am really surprised that we cannot send a mail to the user having created a PR that on its turn trigger a build !

          Is this different from the information that GitHub Branch Source already provides in a ContributorMetadataAction (javadoc)? That was added in https://github.com/jenkinsci/github-branch-source-plugin/pull/113 before github-branch-source-2.0.1.

          Kalle Niemitalo added a comment - Is this different from the information that GitHub Branch Source already provides in a ContributorMetadataAction ( javadoc )? That was added in https://github.com/jenkinsci/github-branch-source-plugin/pull/113 before github-branch-source-2.0.1.

          https://github.com/jenkinsci/email-ext-plugin/search?q=ContributorMetadataAction doesn't find any references to ContributorMetadataAction in email-ext-plugin. Perhaps this issue should be moved to the email-ext-plugin component as a request to add a RecipientProvider that checks for ContributorMetadataAction. According to https://www.jenkins.io/doc/developer/extensions/email-ext/#recipientprovider, no other plugins implement RecipientProvider yet.

          Kalle Niemitalo added a comment - https://github.com/jenkinsci/email-ext-plugin/search?q=ContributorMetadataAction doesn't find any references to ContributorMetadataAction in email-ext-plugin. Perhaps this issue should be moved to the email-ext-plugin component as a request to add a RecipientProvider that checks for ContributorMetadataAction. According to https://www.jenkins.io/doc/developer/extensions/email-ext/#recipientprovider , no other plugins implement RecipientProvider yet.

          Oh, there is JENKINS-62079 for email-ext-plugin already.

          Kalle Niemitalo added a comment - Oh, there is JENKINS-62079 for email-ext-plugin already.

          I'm resolving this as fixed because the plugin apparently adds ContributorMetadataAction, which matches the description of this feature. Please reopen if you disagree.

          Kalle Niemitalo added a comment - I'm resolving this as fixed because the plugin apparently adds ContributorMetadataAction, which matches the description of this feature. Please reopen if you disagree.

          Brian J Murrell added a comment - - edited

          Released As        GitHub Branch Source 2.0.1
          Resolution        Fixed [ 1 ]
          Status    Open [ 1 ]    Resolved [ 5 ]

          I am confused. GitHub Branch Source release 2.0.1 is a 5 year old release.

          I am guessing it's because it was fixed in email-ext in JENKINS-62079 and perhaps you cannot close a ticket without putting a value in the Released As field?  Maybe resolving as a duplicate or something might have been more clear.

          In any case, I will try the updated email-ext plugin.

          Thanks!

          Brian J Murrell added a comment - - edited Released As        GitHub Branch Source 2.0.1 Resolution        Fixed [ 1 ] Status    Open [ 1 ]    Resolved [ 5 ] I am confused. GitHub Branch Source release 2.0.1 is a 5 year old release. I am guessing it's because it was fixed in email-ext in JENKINS-62079 and perhaps you cannot close a ticket without putting a value in the Released As field?  Maybe resolving as a duplicate or something might have been more clear. In any case, I will try the updated email-ext plugin. Thanks!

          AFAICT, this feature was implemented in https://github.com/jenkinsci/github-branch-source-plugin/pull/113, which was merged in January 2017. I don't know why bitwiseman wrote that this "definitely isn't tracked".

          Kalle Niemitalo added a comment - AFAICT, this feature was implemented in https://github.com/jenkinsci/github-branch-source-plugin/pull/113 , which was merged in January 2017. I don't know why bitwiseman wrote that this "definitely isn't tracked".

            Unassigned Unassigned
            brianjmurrell Brian J Murrell
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: