[OPS-1301] Delete legacy capabilities_and_config.yaml (duplicate)#22
Merged
Conversation
…enerate-baton-metadata.yaml) This repo already has generate-baton-metadata.yaml (managed by baton-admin) which generates the same baton_capabilities.json + config_schema.json output. The legacy capabilities_and_config.yaml is a duplicate that auto-commits to main with the long-lived RELENG_GITHUB_TOKEN PAT — both unwanted now that OPS-1300 is in place. Linear: https://linear.app/ductone/issue/OPS-1301 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
Claude finished @ennyjfrick's task in 32s —— View job PR Review: Delete legacy
|
| Aspect | Deleted (capabilities_and_config.yaml) |
Replacement (generate-baton-metadata.yaml) |
|---|---|---|
| Trigger | push to main |
push to main + PR validation |
| Auth | RELENG_GITHUB_TOKEN (legacy PAT) |
baton-ci GitHub App token (modern) |
| Build & generate | Same (go build, ./connector config, ./connector capabilities) |
Same |
| Commit step | Same (EndBug/add-and-commit@v9, same files, same message) |
Same |
| Extra features | None | PR-time metadata staleness check + docs validation |
The replacement workflow covers everything the legacy one did, plus adds PR-time validation. No other workflows or config files reference capabilities_and_config.yaml.
No concerns — ship it.
gontzess
approved these changes
May 4, 2026
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.
Why
This repo already has
.github/workflows/generate-baton-metadata.yaml(the modern baton-admin-managed metadata workflow that already usesbaton-ci/baton-depsapp tokens after OPS-1300). The legacycapabilities_and_config.yamlruns the same generator separately, auto-commits the same files (baton_capabilities.json,config_schema.json) tomain, and still referencesRELENG_GITHUB_TOKEN.Two workflows pushing the same files to
maincauses redundant runs at best and merge conflicts at worst. Delete the legacy one.What
Removes
.github/workflows/capabilities_and_config.yaml. The moderngenerate-baton-metadata.yamlcontinues to do the same job.Linear: OPS-1301
🤖 Generated with Claude Code