]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
releng-audit: clear state labels and set pending status on comment triggers 70139/head
authorPatrick Donnelly <pdonnell@ibm.com>
Sun, 12 Jul 2026 16:55:19 +0000 (12:55 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Sun, 12 Jul 2026 17:05:57 +0000 (13:05 -0400)
commit01f53cc1a724ef28196cdca2e8eab6d6cf7b0a1f
tree94fd39c2cdc975b6111007fe34798341c4991820
parent6509cefb816bf41bc07abd93e70080da2b005ede
releng-audit: clear state labels and set pending status on comment triggers

When /audit retest or /audit test-branch is invoked via an issue_comment event, GitHub Actions does not natively bind the execution to the PR's HEAD commit SHA. As a result, the check widget on the PR conversation tab remains in its previous state (often showing as failed), and any lingering releng-audit-fail or releng-audit-pass labels remain attached.

This introduces a triggerAuditRun helper function to the workflow router that:

- Removes any existing releng-audit-fail or releng-audit-pass labels from the pull request to reset the label state machine and prevent subsequent synchronize events from halting prematurely.
- Explicitly creates a pending commit status on the PR's HEAD SHA via the GitHub REST API, ensuring visual consistency and feedback inside the PR UI while manual or test-branch audits execute in the background.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
.github/workflows/releng-audit.yaml