OBS Status Service
Caches and reports status of a PR as SVG or JSON
Requests for individual PRs statuses: GET /${PR_HASH}
Update requests for individual PRs statuses: POST /${PR_HASH}
POST requires cert auth to function.
Areas of Responsibility
- Listens for PR status reports from workflow-pr bot (or other interface)
- Produces SVG output based on GET request
- Produces JSON output based on GET request
Target Usage
- comment section of a PR
- 3rd party tooling
PR Encoding
PRs are encoded as SHA256 hashes with a salt. This allows the existence of individual PRs to remain secret while the hash is known to tools that have read access to the PRs
Encoding data is input into the sha256 hash as follows:
- Salt string, min 100 bytes.
- Organization name of the PR
- Repository name of the PR
- PR number (decimal string)
Encoded PR is then passed to process as mime64 encoded without trailing =.