Subscribe to new issues without watching entire repo #23245
-
Is there a way to be notified of new issues that are opened on a github repository, without watching the entire repository? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
After further investigation, I have discovered that github webhooks can be set to only trigger on issues. Specifically when an issue is “opened, edited, deleted, transferred, pinned, unpinned, closed, reopened, assigned, unassigned, labeled, unlabeled, milestoned, demilestoned, locked, or unlocked”, with a different option for issue comments. I have linked the MS teams github enterprise integration to this webhook which fulfils my needs. |
Beta Was this translation helpful? Give feedback.
-
Hello, I’m having trouble understanding this solution. Can you explain further? |
Beta Was this translation helpful? Give feedback.
-
The solution was to install the MS teams GitHub Enterprise add-on (called a ‘connector’ on MS teams) to an MS teams channel. This MS teams add-on can post messages to an MS teams channel whenever something happens on a specified github repo, such as when a new pull request is opened, or someone posts a comment. The add-on communicates to github using a webhook. The noise problem was solved by configuring the webhook to only be triggered when issue related events happen (under settings>hooks>Webhooks>Edit>Which events would you like to trigger this>Let me select individual events). |
Beta Was this translation helpful? Give feedback.
After further investigation, I have discovered that github webhooks can be set to only trigger on issues. Specifically when an issue is “opened, edited, deleted, transferred, pinned, unpinned, closed, reopened, assigned, unassigned, labeled, unlabeled, milestoned, demilestoned, locked, or unlocked”, with a different option for issue comments. I have linked the MS teams github enterprise integration to this webhook which fulfils my needs.