From a41eeea055192245e0643c41a8e9f73f4492750a Mon Sep 17 00:00:00 2001 From: priethor <27339341+priethor@users.noreply.github.com> Date: Mon, 24 Jul 2023 17:04:11 +0200 Subject: [PATCH 1/2] Update changelog automation to work with consolidated a11y labels --- bin/plugin/commands/changelog.js | 4 ---- bin/plugin/commands/test/fixtures/pull-requests.json | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bin/plugin/commands/changelog.js b/bin/plugin/commands/changelog.js index 69be77ac669911..c9e6d039596c5b 100644 --- a/bin/plugin/commands/changelog.js +++ b/bin/plugin/commands/changelog.js @@ -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', diff --git a/bin/plugin/commands/test/fixtures/pull-requests.json b/bin/plugin/commands/test/fixtures/pull-requests.json index 34f3c06c5d8546..c76920c0734cc5 100644 --- a/bin/plugin/commands/test/fixtures/pull-requests.json +++ b/bin/plugin/commands/test/fixtures/pull-requests.json @@ -5749,8 +5749,8 @@ { "id": 1344464662, "node_id": "MDU6TGFiZWwxMzQ0NDY0NjYy", - "url": "https://api.github.com/repos/WordPress/gutenberg/labels/[a11y]%20Keyboard%20&%20Focus", - "name": "[a11y] Keyboard & Focus", + "url": "https://api.github.com/repos/WordPress/gutenberg/labels/Accessibility%20(a11y)", + "name": "Accessibility (a11y)", "color": "efde5d", "default": false, "description": "" From b8707f02ac075cb451bc20e333cbe2f973b23d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor?= <27339341+priethor@users.noreply.github.com> Date: Mon, 24 Jul 2023 17:36:10 +0200 Subject: [PATCH 2/2] Update test fixtures --- bin/plugin/commands/test/fixtures/pull-requests.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/plugin/commands/test/fixtures/pull-requests.json b/bin/plugin/commands/test/fixtures/pull-requests.json index c76920c0734cc5..eccb2257a2c1f5 100644 --- a/bin/plugin/commands/test/fixtures/pull-requests.json +++ b/bin/plugin/commands/test/fixtures/pull-requests.json @@ -5747,13 +5747,13 @@ "description": "/packages/components" }, { - "id": 1344464662, - "node_id": "MDU6TGFiZWwxMzQ0NDY0NjYy", + "id": 546517042, + "node_id": "MDU6TGFiZWw1NDY1MTcwNDI=", "url": "https://api.github.com/repos/WordPress/gutenberg/labels/Accessibility%20(a11y)", "name": "Accessibility (a11y)", - "color": "efde5d", + "color": "655104", "default": false, - "description": "" + "description": "Changes that impact accessibility and need corresponding review (e.g. markup changes)." } ], "state": "closed",