From b28043697a6c05313f64dc2b9e53ff5d8b19c3bc Mon Sep 17 00:00:00 2001 From: Rob Brackett Date: Tue, 20 Jun 2023 18:21:29 -0700 Subject: [PATCH] Add GitHub alt text bot (#67) This sets up GitHub's official action to check image alt text in issues, PRs, and discussions. See more about it in this blog post: https://github.blog/2023-06-12-make-your-github-projects-more-accessible-with-accessibility-alt-text-bot/ I haven't tried this on any other repos yet, but it looks like a useful tool. --- .../workflows/discussion-accessibility.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/discussion-accessibility.yml diff --git a/.github/workflows/discussion-accessibility.yml b/.github/workflows/discussion-accessibility.yml new file mode 100644 index 0000000..76f82a3 --- /dev/null +++ b/.github/workflows/discussion-accessibility.yml @@ -0,0 +1,26 @@ +name: Discussion Accessibility +on: + issues: + types: [opened, edited] + pull_request: + types: [opened, edited] + issue_comment: + types: [created, edited] + discussion: + types: [created, edited] + discussion_comment: + types: [created, edited] + +permissions: + issues: write + pull-requests: write + discussions: write + +jobs: + accessibility_alt_text_bot: + name: Check alt text in issues/PRs/discussions + runs-on: ubuntu-latest + if: ${{ github.event.issue || github.event.pull_request || github.event.discussion }} + steps: + - name: Check alt text with 'github/accessibility-alt-text-bot' + uses: github/accessibility-alt-text-bot@v1.2.0