Skip to content

Commit

Permalink
Add GitHub alt text bot (#67)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Mr0grog authored Jun 21, 2023
1 parent 1cb7e71 commit b280436
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/discussion-accessibility.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

0 comments on commit b280436

Please sign in to comment.