All code intended for production use must:
- Be introduced as a pull request targeting the
main
branch. - All pull requests must have a reference to the internal change management ticket by including it in the pull request title or description (e.g. ETSWORK-####)
- All code must be approved by at least two reviewers as well as any defined code owners in accordance with our internally documented code review guidelines
- At least one code reviewer should determine if the code change matches the intent of the change management ticket.
- All required checks must pass before a pull request can be merged. These are automated through GitHub Actions.
This repository contains generated files and a checksum.
Do not edit the files in this repository outside of an instance of ServiceNow.
If you find yourself unable to import your repository due to the presence of files edited outside an instance of ServiceNow, merge commits that mix files from different revisions, or other data that does not match the checksum, you may recover using either of the following techniques:
-
Remove the problem commits:
- Clone your repository to a personal computer with the git command line tools installed and open a git command prompt in the repository root
- Run
git log
and take note of the SHA1s of the problem commits - Build revert commits using
git revert SHA1
repeatedly, working backward in time, for each commit that introduced changes not generated by a ServiceNow instance - Run
git push
-
Overwrite the problem code snapshot with a known good one:
- Clone your repository to a personal computer with the git command line tools installed and open a git command prompt in the repository root,
- Locate a known good code snapshot and record its SHA1. For this step,
git log
can be useful. - Run
git reset --hard SHA1
to a commit that was generated by a ServiceNow instance - Run
git reset HEAD{1}
- Run
git add -A
- Run
git commit
- Run
git push
Work with your Workgrid Solutions Architect if you would like to install this webhook app in your ServiceNow instance.