This solution replaces part of the old Git Plugin and introduces:
- Automation Rule – configure it with your Targetprocess endpoint URL
- Webhook – add to your Git repo for "push commit" events
- New "Revisions" tab – replaces the outdated "Source Code" tab
Instructions
- Install Solution
- (optional) You can use a webhook secret to limit incoming requests to only those originating from Git.
- After successful installation close solution and navigate to Automation Rules
- Modify the latest rule ‘Git Integration (commit pushed)’ Click ‘Create new Incoming Web Hook’ button to generate endpoint URL for webhooks processing. Copy this endpoint and navigate to your Git repo to add the webhook with the same endpoint URL.
- Add a webhook to the Git repo
How to add a webhook in GitHub
Go to your Repository > Settings > Webhooks > Add webhook
Webhook details:
- Payload URL: endpoint created in Targetprocess Automation Rule “Git Integration (commit pushed)”
- Content type: aplication/json
- Secret: same token that provided in Targetprocess Solution “Link Git Commits to Story, Bug, Task”
- Which events would you like to trigger this webhook? Just the push event
How to add a webhook in GitLab
Project > Settings > Webhooks > Add new webhook
Provide webhook details:
- URL: endpoint created in Targetprocess Automation Rule “Git Integration (commit pushed)”
- Secret token: same token that provided in Targetprocess Solution “Link Git Commits to Story, Bug, Task”
- Trigger Push events (All branches)
Azure DevOps Repos
Project Settings > Service hooks > Create new subscription > Web Hooks
Provide webhook details:
- Trigger on this type of event: Code pushed
- Repository: choose your repository from the list
- URL: endpoint generated in Targetprocess Automation Rule “Git Integration (commit pushed)”
- HTTP headers: X-AzureRepo-Token:"token" (type in the same token that provided during solution “Sync Git Commits as Revisions” configuration. It must match the token in Automation Rule ‘Git Integration (commit pushed))
Still have a question?
We're here to help! Just contact our friendly support team.
Find out more about our APIs, Automation Rules, Mashups and custom extensions.