Skip to content

[policy-bot] Ignore PR description comments in policy checks - #8873

Merged
ScottTodd merged 2 commits into
developfrom
users/scotttodd/policy-ignore-comments
Jul 27, 2026
Merged

ScottTodd merged 2 commits into
developfrom
users/scotttodd/policy-ignore-comments

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

Motivation

We'd like to put example text in the pull request template without having that text pass the policy checks itself. This can be achieved through HTML/markdown comments, so long as the policy bot does not evaluate the text in comments.

Test Plan

python tools\systems_pr_bot\test_policy_check_ut.py (not yet running on CI, or fully passing) passes the new tests

Submission Checklist

Remove stale test-only Policy fields and ignore Python cache directories.

Assisted-by: OpenAI Codex
@therock-pr-bot

Copy link
Copy Markdown

✅ All Policy Checks Passed

Check Status Details
🌿 Branch Name ✅ Pass —
📝 PR Title/Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

🎉 All policy checks passed!

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

@ScottTodd

Copy link
Copy Markdown
Member Author

This didn't need to run TheRock CI. I'll update the path filters in https://github.com/ROCm/rocm-systems/blob/develop/.github/scripts/therock_configure_ci.py

@amd-shiraz amd-shiraz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! this can go in independently to be in sync with therock

@ScottTodd
ScottTodd merged commit 6b8b62b into develop Jul 27, 2026
37 of 41 checks passed
@ScottTodd
ScottTodd deleted the users/scotttodd/policy-ignore-comments branch July 27, 2026 20:03
amd-josnarlo pushed a commit that referenced this pull request Jul 28, 2026
## Motivation

We'd like to put example text in the pull request template without
having that text pass the policy checks itself. This can be achieved
through HTML/markdown comments, so long as the policy bot does not
evaluate the text in comments.

* Follow-up to #8497 which
added `<!-- GitHub issue:
#1234 -->` to
`.github/pull_request_template.md`
* Progress on #7842

## Test Plan

`python tools\systems_pr_bot\test_policy_check_ut.py` (not yet running
on CI, or fully passing) passes the new tests

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants