Skip to content

Sync beman-standard.yaml with upstream standard - #355

Merged
neatudarius merged 1 commit into
bemanproject:mainfrom
neatudarius:ci/sync-beman-standard-drift
Jul 16, 2026
Merged

neatudarius merged 1 commit into
bemanproject:mainfrom
neatudarius:ci/sync-beman-standard-drift

Conversation

@neatudarius

Copy link
Copy Markdown
Member

Summary

  • Add missing release.version and cpp.min_std_version rules to .beman-standard.yaml (both Recommendation).
  • Add standard_drift utility to compare upstream beman_standard.md against the local YAML snapshot.
  • Add weekly scheduled workflow that opens/updates an issue when rules are added, removed, or change category.

Test plan

  • uv run pytest tests/lib/utils/test_standard_drift.py
  • Run Sync Beman Standard workflow via workflow_dispatch after merge
  • Confirm no drift issue is opened once YAML matches upstream

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
neatudarius requested a review from Copilot July 16, 2026 00:19
@neatudarius
neatudarius marked this pull request as ready for review July 16, 2026 00:20
@neatudarius
neatudarius merged commit 5536266 into bemanproject:main Jul 16, 2026
10 checks passed

Copilot AI 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.

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.version and cpp.min_std_version rules to beman_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.md and 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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants