Skip to content

CI: validate that new GAP metadata id matches PR number - #57

Open
magicmark wants to merge 6 commits into
graphql:mainfrom
magicmark:validate-gap-id-matches-pr
Open

CI: validate that new GAP metadata id matches PR number#57
magicmark wants to merge 6 commits into
graphql:mainfrom
magicmark:validate-gap-id-matches-pr

Conversation

@magicmark

@magicmark magicmark commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Adds a dedicated workflow (validate-new-gap-number.yml) to that new GAP metadata.yml files have their id field set to the PR number, per CONTRIBUTING.md.

Only runs on pull requests that add a new GAP.

cc @martinbonnin

magicmark and others added 6 commits July 1, 2026 13:14
Per CONTRIBUTING.md, each GAP's `id` field in metadata.yml must match
the PR number that introduces it. This adds a CI check that enforces
this rule for PRs that add a new metadata.yml file.

This would have caught the issue in #4 where the id was set to 2
instead of 4.

Co-Authored-By: Claude <[email protected]>
Adds a dedicated workflow and script that enforces new GAP metadata.yml
files have their `id` field set to the PR number, per CONTRIBUTING.md.

Only runs on pull requests that add a new metadata.yml. Would have
caught the issue in #4 where id was set to 2 instead of 4.

Co-Authored-By: Claude <[email protected]>
@magicmark
magicmark marked this pull request as ready for review July 1, 2026 21:37
@magicmark
magicmark requested review from benjie and martinbonnin July 1, 2026 21:38

@benjie benjie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me; only change I'd make is to make it a .ts file rather than a .js file so we can benefit from types - but I wouldn't hold it up on that.

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