Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-621

Set up Githooks for vscode and shell

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • 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

      1. Login to  GitHub and find the repo you need to adjust
      2. On the toolbar on the right-hand side, navigate to "Settings"
      3. Navigate to Webhooks and Services
      4. Click "Add Webhook"
      5. 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:
      6. The content-type is application/json
      7. Just send the "push" event

      Source: Github and Githooks for Jira

            Assignee:
            michael.rose@mongodb.com Michael Rose (Inactive)
            Reporter:
            jessica.sigafoos@mongodb.com Jessica Sigafoos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: