From 4d281f4344ddb23699c6c1ef1d668f5aa5eeac37 Mon Sep 17 00:00:00 2001 From: Kendall Gassner Date: Thu, 25 May 2023 08:31:28 -0700 Subject: [PATCH 1/4] Update accessibility-alt-text-bot.yml ### What The accessibility-alt-text-bot workflow does not have permissions to write a comment on an issue. This is likely due to how permissions are setup in this repo. In order to keep permissions, at the repo level, unchanged, we need to add permission directly to the workflow. I also took this as an opportunity to bump the alt-text-bot version and give you access to reminders in discussions --- .github/workflows/accessibility-alt-text-bot.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/accessibility-alt-text-bot.yml b/.github/workflows/accessibility-alt-text-bot.yml index b71565494bb..f8d60a8ce4a 100644 --- a/.github/workflows/accessibility-alt-text-bot.yml +++ b/.github/workflows/accessibility-alt-text-bot.yml @@ -6,12 +6,18 @@ on: types: [opened, edited] issue_comment: types: [created, edited] + discussion: + types: [created, edited] + +permissions: + issues: write + pull-requests: write jobs: accessibility_alt_text_bot: name: Check alt text is set on issue or pull requests runs-on: ubuntu-latest - if: ${{ github.event.issue || github.event.pull_request }} + if: ${{ github.event.issue || github.event.pull_request || github.event.discussion }} steps: - name: Get action 'github/accessibility-alt-text-bot' - uses: github/accessibility-alt-text-bot@v1.0.0 + uses: github/accessibility-alt-text-bot@v1.1.0 From b1184399fa3a87d95c741ab58ea725701db8ddd6 Mon Sep 17 00:00:00 2001 From: Kendall Gassner Date: Thu, 25 May 2023 15:38:07 +0000 Subject: [PATCH 2/4] format --- .github/workflows/accessibility-alt-text-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/accessibility-alt-text-bot.yml b/.github/workflows/accessibility-alt-text-bot.yml index f8d60a8ce4a..0379e6968ca 100644 --- a/.github/workflows/accessibility-alt-text-bot.yml +++ b/.github/workflows/accessibility-alt-text-bot.yml @@ -8,7 +8,7 @@ on: types: [created, edited] discussion: types: [created, edited] - + permissions: issues: write pull-requests: write From 17f8582a42b706aefde065065f06a8ac447c94ee Mon Sep 17 00:00:00 2001 From: Kendall Gassner Date: Thu, 25 May 2023 15:44:13 +0000 Subject: [PATCH 3/4] add contents --- .github/workflows/accessibility-alt-text-bot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/accessibility-alt-text-bot.yml b/.github/workflows/accessibility-alt-text-bot.yml index 0379e6968ca..0db1d8ca3ec 100644 --- a/.github/workflows/accessibility-alt-text-bot.yml +++ b/.github/workflows/accessibility-alt-text-bot.yml @@ -12,6 +12,7 @@ on: permissions: issues: write pull-requests: write + contents: write jobs: accessibility_alt_text_bot: From 378bec3ea2b711f9d971149a384f7a9079efb22b Mon Sep 17 00:00:00 2001 From: Kendall Gassner Date: Thu, 25 May 2023 16:00:20 +0000 Subject: [PATCH 4/4] add contents --- .github/workflows/accessibility-alt-text-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/accessibility-alt-text-bot.yml b/.github/workflows/accessibility-alt-text-bot.yml index 0db1d8ca3ec..366229e8c28 100644 --- a/.github/workflows/accessibility-alt-text-bot.yml +++ b/.github/workflows/accessibility-alt-text-bot.yml @@ -12,7 +12,7 @@ on: permissions: issues: write pull-requests: write - contents: write + discussions: write jobs: accessibility_alt_text_bot: