Skip to content

Commit

Permalink
Changelog automation: update to work with consolidated a11y labels (#…
Browse files Browse the repository at this point in the history
…52896)

* Update changelog automation to work with consolidated a11y labels

* Update test fixtures
  • Loading branch information
priethor authored Jul 24, 2023
1 parent f41c8ea commit b2309e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions bin/plugin/commands/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ const LABEL_FEATURE_MAPPING = {
'REST API Interaction': 'REST API',
'New Block': 'Block Library',
'Accessibility (a11y)': 'Accessibility',
'[a11y] Color Contrast': 'Accessibility',
'[a11y] Keyboard & Focus': 'Accessibility',
'[a11y] Labelling': 'Accessibility',
'[a11y] Zooming': 'Accessibility',
'[Package] E2E Tests': 'Testing',
'[Package] E2E Test Utils': 'Testing',
'Automated Testing': 'Testing',
Expand Down
12 changes: 6 additions & 6 deletions bin/plugin/commands/test/fixtures/pull-requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -5747,13 +5747,13 @@
"description": "/packages/components"
},
{
"id": 1344464662,
"node_id": "MDU6TGFiZWwxMzQ0NDY0NjYy",
"url": "https://api.github.com/repos/WordPress/gutenberg/labels/[a11y]%20Keyboard%20&%20Focus",
"name": "[a11y] Keyboard & Focus",
"color": "efde5d",
"id": 546517042,
"node_id": "MDU6TGFiZWw1NDY1MTcwNDI=",
"url": "https://api.github.com/repos/WordPress/gutenberg/labels/Accessibility%20(a11y)",
"name": "Accessibility (a11y)",
"color": "655104",
"default": false,
"description": ""
"description": "Changes that impact accessibility and need corresponding review (e.g. markup changes)."
}
],
"state": "closed",
Expand Down

0 comments on commit b2309e8

Please sign in to comment.