Steps to reproduce

      1. Link JIRA to Github via DVCS Connector as per this guide
      2. Navigate to GitHub >> Account Settings >> Repositories >> Settings >> Webhooks & Services
      3. There will be 2 webhooks created that links back to JIRA

      Additional Information

      Using DVCS Connector version 1.4.3, only one link will be created.

      Currently pull request webhooks and post commit webhooks uses the same REST endpoints with different request types. JSON for pull request and web form for post commmit hooks.

      We should use different rest endpoints for them.

          Form Name

            [JSWSERVER-14187] JIRA and GitHub link creates 2 Webhooks

            We're up to DVCS Connector 3.2.4 now, and it's still creating 2 webhooks when only one is strictly necessary.

            David Marshall added a comment - We're up to DVCS Connector 3.2.4 now, and it's still creating 2 webhooks when only one is strictly necessary.

            Many thanks for raising this bug. Since there has not been any customer activity on this issue in over a year, we’re closing it as Timed out.
            If you feel that the bug is still relevant to your needs, please leave a comment and we'll reassess it.

            Kind regards,
            Dong Hoang
            JIRA Software

            Hoang Dong (Inactive) added a comment - Many thanks for raising this bug. Since there has not been any customer activity on this issue in over a year, we’re closing it as Timed out. If you feel that the bug is still relevant to your needs, please leave a comment and we'll reassess it. Kind regards, Dong Hoang JIRA Software

            ZehuaA added a comment -

            The two webhooks are for notifying the DVCS Connector about changes in commits and pull requests respectively.

            But GitHub actually supports using a single webhook for both commits (Push) and pull requests events. See https://developer.github.com/webhooks/#events

            We could improve the current webhook registration and handling for GitHub to utilize that.

            ZehuaA added a comment - The two webhooks are for notifying the DVCS Connector about changes in commits and pull requests respectively. But GitHub actually supports using a single webhook for both commits (Push) and pull requests events. See https://developer.github.com/webhooks/#events We could improve the current webhook registration and handling for GitHub to utilize that.

              Unassigned Unassigned
              cchan Chung Park Chan
              Affected customers:
              4 This affects my team
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: