Repository navigation
Sync beman-standard.yaml with upstream standard - #355
Merged
neatudarius merged 1 commit intoJul 16, 2026
Merged
Conversation
Track release.version and cpp.min_std_version in .beman-standard.yaml and add a scheduled workflow that opens an issue when the upstream standard changes. Co-authored-by: Cursor <cursoragent@cursor.com>
neatudarius
marked this pull request as ready for review
July 16, 2026 00:20
neatudarius
requested review from
JeffGarland,
ednolan,
rishyak and
vickgoodman
as code owners
July 16, 2026 00:20
Contributor
There was a problem hiding this comment.
Pull request overview
Adds automation to keep beman_tidy/.beman-standard.yaml aligned with the upstream Beman Standard by snapshotting missing rules, providing a drift-detection utility, and scheduling a weekly workflow to open/maintain an issue when drift is detected.
Changes:
- Add missing
release.versionandcpp.min_std_versionrules tobeman_tidy/.beman-standard.yaml. - Introduce
beman_tidy.lib.utils.standard_drift(+ unit tests + a test markdown snapshot) to detect added/removed/type-changed rules. - Add a scheduled GitHub Actions workflow to check upstream
beman_standard.mdand open/update/close a drift issue.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
beman_tidy/.beman-standard.yaml |
Adds the two missing upstream rules to the local standard snapshot. |
beman_tidy/lib/utils/standard_drift.py |
Implements markdown/YAML parsing and drift reporting logic for standard sync. |
tests/lib/utils/test_standard_drift.py |
Adds tests covering parsing and drift detection, including “repo snapshot in sync” assertions. |
tests/data/beman_standard.md |
Provides a pinned upstream markdown snapshot for deterministic parsing tests. |
.github/workflows/sync-beman-standard.yml |
Adds weekly + manual workflow to detect drift and manage a drift-tracking issue. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+22
to
+27
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| enable-cache: true | ||
|
|
||
| - name: Fetch upstream Beman Standard |
Comment on lines
+88
to
+93
| EXISTING=$(gh issue list \ | ||
| --repo "${{ github.repository }}" \ | ||
| --search "in:title ${TITLE}" \ | ||
| --state open \ | ||
| --json number \ | ||
| --jq '.[0].number // empty') |
Comment on lines
+121
to
+126
| EXISTING=$(gh issue list \ | ||
| --repo "${{ github.repository }}" \ | ||
| --search "in:title ${TITLE}" \ | ||
| --state open \ | ||
| --json number \ | ||
| --jq '.[0].number // empty') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
release.versionandcpp.min_std_versionrules to.beman-standard.yaml(both Recommendation).standard_driftutility to compare upstreambeman_standard.mdagainst the local YAML snapshot.Test plan
uv run pytest tests/lib/utils/test_standard_drift.pySync Beman Standardworkflow viaworkflow_dispatchafter merge