Onboard GitHub to DevOps Change Velocity — Workspace
Connect to your GitHub instance using the DevOps Change Workspace playbook to discover, configure, and import repositories, plans, and pipelines.
Before you begin
Complete the tasks specified in the Getting started with DevOps Change Velocity topic.
Role required: sn_devops.admin or sn_devops.tool_owner
About this task
ServiceNow DevOps Change Velocity supports three GitHub offerings. Use the following table to determine which tool Integration type and URL apply to your GitHub setup:
| GitHub offering | Tool name | URL of the tool instance |
|---|---|---|
| GitHub (Standard) | GitHub | https://api.github.com |
| GitHub Enterprise Cloud | GitHub | https://api.github.com |
| GitHub Enterprise Server | GitHub Enterprise | https://<your-instance-hostname>
Note:
Self-hosted instance must be your own server. |
Don't use your GitHub Enterprise Cloud account's web address as the tool URL. For example, using https://github.com/enterprises/<your-org> as the tool URL fails because this is a browser-only page,
not an API endpoint. This error appears as "Tool cannot be created because the tool URL is invalid."
If you use GitHub Enterprise Cloud, follow these rules:
- Select GitHub as the tool.
- Enter
https://api.github.comas the URL of the tool instance.
Only enter a different hostname if you run a self-hosted GitHub Enterprise Server instance on your own server.
Procedure
Result
You’ve successfully onboarded your GitHub tool to DevOps Change Velocity.
What to do next
You can manually discover plans after your GitHub tool is onboarded as well. As there is no plan entity in GitHub, the repositories will be considered to discover corresponding plan records in ServiceNow.
- From the tool record page, select Discover to discover plans.
- Select Configure. Plans are tracked and a webhook called issues is created to send real-time notifications for work items.
- Change in issue title
- Assignees update
- Transfer issueNote:When an issue is transferred, the same will be marked as transferred in the repository from which it is being transferred and opened in the repository to which it is being transferred.
- Delete issueNote:When an issue is deleted in GitHub, the corresponding work item is not deleted in ServiceNow but the state of the work item will be marked as deleted.
If you are an upgrading customer, plans will be discovered for your repositories through the scheduled job to discover periodically or through manual discovery. After your plans are discovered, you can enable the sn_devops.track.github.issues property to re-configure all the previously configured repositories at once so that all plans are tracked and the issues webhook is created for work items.