Skip to content

Add a workflow to help with BCD updates#4001

Open
jgraham wants to merge 1 commit into
mainfrom
bcd_udpate_workflow
Open

Add a workflow to help with BCD updates#4001
jgraham wants to merge 1 commit into
mainfrom
bcd_udpate_workflow

Conversation

@jgraham
Copy link
Copy Markdown
Collaborator

@jgraham jgraham commented Apr 30, 2026

This attempts to automate many of the existing manual steps:

  • Checks out the branch
  • Checks for removed BCD keys
  • Checks for features with an empty definition
  • Checks for baseline status changes

Where possible it automatically updates to removed BCD keys. So far it doesn't attempt to figure out the correct replacement for removed keys.

It is designed to output a GitHub comment indicating the changes, to speed up human review.

@jgraham jgraham requested review from ddbeck and foolip April 30, 2026 14:53
@github-actions github-actions Bot added the tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings label Apr 30, 2026
@jgraham jgraham force-pushed the bcd_udpate_workflow branch 2 times, most recently from 392b5ef to 75a32e0 Compare May 7, 2026 15:09
This attempts to automate many of the existing manual steps:
* Checks out the branch
* Checks for removed BCD keys
* Checks for features with an empty definition
* Checks for baseline status changes

Where possible it automatically updates to removed BCD keys. So far it
doesn't attempt to figure out the correct replacement for removed
keys.

It is designed to output a GitHub comment indicating the changes, to
speed up human review.
@ddbeck
Copy link
Copy Markdown
Collaborator

ddbeck commented May 15, 2026

Thanks for making an attempt at this, @jgraham. I tried this with a recent BCD upgrade and it silently did nothing. This is probably operator error, but overall I'm excited to see this developed more, but also decomposed a bit. If you're keen, I was thinking something along these lines:

  • It'd be nice to have a standalone script that just compares statuses between what's checked out and another data.json (e.g., by default it could fetch the next data.json from GitHub or unpkg). I imagine this could be useful for any PR that modifies existing features, not just dependabot PRs. Even nicer would be a markdown output for wiring up to issues and PRs and a JSON output for combining with other tools (I took this sort of approach for my completely non-portable shell script to do some of this work).
  • Likewise, it'd be nice to have a script that only strips deleted keys from authored YAML files and prints what it did (again as JSON or Markdown). I've been talking to MDN about BCD prereleases, so we could use this not just for Dependabot ugprades but also for (for example) a dashboard issue that warns about upcoming removals/deprecations/etc. before the appear in a Dependabot PR.

By splitting this up, we could wring a bit more use out of it. What do you think?

@ddbeck ddbeck removed their request for review May 19, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants