Skip to content

chore(snapshots): refresh required gate label handling#169

Merged
ArchonVII merged 1 commit into
mainfrom
agent/codex/168-required-gate-label-snapshot
Jun 9, 2026
Merged

chore(snapshots): refresh required gate label handling#169
ArchonVII merged 1 commit into
mainfrom
agent/codex/168-required-gate-label-snapshot

Conversation

@ArchonVII

Copy link
Copy Markdown
Owner

Summary

Closes #168

Verification

  • npm test
  • node --test test/updateManagedFiles.test.mjs
  • actionlint src/snapshots/github-workflows/repo-required-gate.yml
  • git diff --check

Verification Notes

npm test passed 281 tests with 0 failures. The focused updater test passed 9 tests, including the new required-gate label-trigger repair case. actionlint returned no diagnostics for the refreshed required-gate snapshot. git diff --check returned no whitespace errors.

Docs / Changelog

Updated CHANGELOG.md, docs/ecosystem-overview.md, and docs/ecosystem-status.md to record the github-workflows@v1 movement and snapshot refresh.

Advance the github-workflows snapshot to v1 dc64da5 and teach archon-setup update to remove broad required-gate label triggers while preserving customized caller inputs.\n\nCloses #168
@ArchonVII
ArchonVII force-pushed the agent/codex/168-required-gate-label-snapshot branch from 2ea3b04 to c06f626 Compare June 9, 2026 22:40
@ArchonVII
ArchonVII merged commit cdac5b0 into main Jun 9, 2026
1 check passed
@ArchonVII
ArchonVII deleted the agent/codex/168-required-gate-label-snapshot branch June 9, 2026 22:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c06f626d4f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +99 to +100
const typedPullRequestRe =
/( pull_request:\r?\n branches: \[main\]\r?\n)( types:\s*\r?\n \[\s*\r?\n(?: [A-Za-z_]+,\s*\r?\n)+ \]\s*\r?\n| types: \[[^\]\r\n]*\]\s*\r?\n)/;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Handle non-canonical required-gate type lists

When a managed repo-required-gate.yml has a valid YAML types: list that is not the old exact flow format—for example block sequence style (types:\n - opened\n - labeled) or the existing flow bracket layout without a trailing comma on the last item—this regex does not match, and the fallback refuses to insert because a types: key is already present. In that customized-caller scenario archon-setup update reports the file unchanged and leaves labeled/unlabeled triggers in place, so label-only PR changes can still rerun and cancel the required gate this change is meant to repair.

Useful? React with 👍 / 👎.

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.

chore: refresh required-gate caller snapshot without label triggers

1 participant