-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Documentation
-
None
-
Not Needed
We should consider integrating Git and Jira for vscode and shell. We can revisit if we want to also do this for Compass after the repo cleanup.
Setting up the Githook
- Login to GitHub and find the repo you need to adjust
- On the toolbar on the right-hand side, navigate to "Settings"
- Navigate to Webhooks and Services
- Click "Add Webhook"
- Enter https://githook.mongodb.com/
- The default behavior of this webhook is to post commit to all branches in a repo to JIRA. If you want to limit the commit activity to a specific repository or set of repositories, you must do the following:
- https://githook.mongodb.com/?branches=master --> Master only
- https://githook.mongodb.com/?branches=master..legacy..someotherbranch --> Master, Legacy and Someotherbranch. The syntax is strange (.. not &)
- The default behavior of this webhook is to post commit to all branches in a repo to JIRA. If you want to limit the commit activity to a specific repository or set of repositories, you must do the following:
- The content-type is application/json
- Just send the "push" event
Source: Github and Githooks for Jira