Skip to content

[OPS-1301] Delete legacy capabilities_and_config.yaml (duplicate)#22

Merged
ennyjfrick merged 1 commit into
mainfrom
ennyfrick/ops-1301-delete-legacy-cac
May 4, 2026
Merged

[OPS-1301] Delete legacy capabilities_and_config.yaml (duplicate)#22
ennyjfrick merged 1 commit into
mainfrom
ennyfrick/ops-1301-delete-legacy-cac

Conversation

@ennyjfrick
Copy link
Copy Markdown
Contributor

Why

This repo already has .github/workflows/generate-baton-metadata.yaml (the modern baton-admin-managed metadata workflow that already uses baton-ci/baton-deps app tokens after OPS-1300). The legacy capabilities_and_config.yaml runs the same generator separately, auto-commits the same files (baton_capabilities.json, config_schema.json) to main, and still references RELENG_GITHUB_TOKEN.

Two workflows pushing the same files to main causes redundant runs at best and merge conflicts at worst. Delete the legacy one.

What

Removes .github/workflows/capabilities_and_config.yaml. The modern generate-baton-metadata.yaml continues to do the same job.

Linear: OPS-1301

🤖 Generated with Claude Code

…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>
@ennyjfrick ennyjfrick requested a review from a team April 30, 2026 16:40
@linear
Copy link
Copy Markdown

linear Bot commented Apr 30, 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

Claude finished @ennyjfrick's task in 32s —— View job


PR Review: Delete legacy capabilities_and_config.yaml

  • Gather context and review PR changes
  • Verify the replacement workflow exists
  • Post review feedback

Verdict: Looks good to merge

This is a clean, safe deletion. I verified that generate-baton-metadata.yaml is present and is a strict superset of the deleted workflow:

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.

@ennyjfrick ennyjfrick merged commit 7c4f877 into main May 4, 2026
9 checks passed
@ennyjfrick ennyjfrick deleted the ennyfrick/ops-1301-delete-legacy-cac branch May 4, 2026 18:09
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