Skip to content

Commit b02dc62

Browse files
authored
Add checklist for handling BCD upgrades (#2043)
* Add checklist for handling BCD upgrades * Add steps added during today's release
1 parent 2208147 commit b02dc62

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: BCD upgrade
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
jobs:
7+
post-comment:
8+
name: "Post checklist"
9+
runs-on: ubuntu-latest
10+
if: github.event.pull_request.user.login == 'dependabot[bot]'
11+
steps:
12+
- id: dependency
13+
run: |
14+
if ! git diff --exit-code -G '@mdn/browser-compat-data' "${{ github.event.pull_request.base.sha }}" "${{ github.sha }}"; then
15+
echo "is_bcd=true" >> $GITHUB_OUTPUT
16+
fi
17+
exit 0
18+
- if: ${{ steps.dependency.outputs.is_bcd == 'true' }}
19+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 #v4.0.0
20+
with:
21+
issue-number: ${{ github.event.number }}
22+
body: |
23+
Complete this checklist for every `@mdn/browser-compat-data` upgrade PR:
24+
25+
- [ ] Check out this branch locally.
26+
- [ ] If any keys were removed in the release, delete them from `.yml` files.
27+
- [ ] Run `npm install && npm run dist && npm test && git commit --all --message="Refresh dist"`.
28+
- [ ] Review the diff. Watch out for Baseline regressions; if applicable, add a comment (see https://github.com/web-platform-dx/web-features/issues/1971).
29+
- [ ] Start a PR to [publish the next web-features release](https://github.com/web-platform-dx/web-features/blob/main/docs/publishing.md#regular-releases).
30+
- [ ] Merge this PR.
31+
- [ ] [Trigger a drafts update workflow run](https://github.com/web-platform-dx/web-features/actions/workflows/update_draft_features_weekly.yml).

0 commit comments

Comments
 (0)