Merge pull request 'cr-gate workflow: PR bodies must carry the GLPI CR deep link' (#2) from ic-builder/cr-gate into main
ci / audit (push) Successful in 24s

This commit was merged in pull request #2.
This commit is contained in:
2026-09-06 14:56:40 +00:00
+22
View File
@@ -0,0 +1,22 @@
# CR gate [#820] — reference implementation of the 2026-09-06 founder ruling:
# a PR touching production must reference its GLPI CR deep link.
# Org repos copy this file verbatim; standard documented on Discourse t/339.
name: cr-gate
on:
pull_request:
types: [opened, edited, reopened, synchronize]
jobs:
cr-link:
runs-on: ultix
container:
image: node:20-bookworm
steps:
- name: verify GLPI CR deep link in PR body
env:
PR_BODY: ${{ gitea.event.pull_request.body }}
run: |
echo "$PR_BODY" | grep -qE 'cmdb\.knownelement\.com/front/change\.form\.php\?id=[0-9]+' || {
echo "::error::PR body must reference the GLPI CR deep link (https://cmdb.knownelement.com/front/change.form.php?id=N) per the CR-gating ruling (Discourse t/339). Dev-only PRs: state 'no-CR (dev-only)' explicitly."
exit 1
}
echo "CR deep link present"