Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

accessibility-alt-text-bot

> 编程语言
Open source

An action to remind users to add alt text on Issues, Pull Requests, and Discussions

99 stars0 likes3 views
WebsiteGitHub

About

An action to remind users to add alt text on Issues, Pull Requests, and Discussions

Accessibility-alt-text-bot

This action reminds users to add a meaningful alternative text to their images. Alternative text helps users who rely on tools like screen readers, and lowers accessibility barriers.

The action can check:

  • Issue comments
  • Issue descriptions
  • Pull Request comments
  • Pull Request descriptions
  • Discussion comments
  • Discussion descriptions

To learn how to write good alternative text, read Alternative text for images on Primer.

Why you may need this action

Images on GitHub default to using the filename as alt text. This action flags when the alt text has not been updated from the default:

[!TIP] Normally, setting alt="" marks images as decorative. But GitHub renders all images as a link. To avoid rendering links with no names, we recommend always setting alt text on images in GitHub.

How to add this action to your repo

Copy this workflow into any repo you want the accessibility-alt-text-bot to run in:

…

Pin the action's version for stability

We recommend you pin the action to a specific version. This makes sure you stay on a stable version of this action.

yaml
       uses: github/[email protected]

Replace the ref value with any commit hash.

Experimental: Adding a custom linting configuration

If you would like to include more linting rules from the markdownlint or markdownlint-github rulesets, pass a config object to the github/accessibility-alt-text-bot action.

⚠ Consider adding new rules sparingly, as excessive rules could make the bot too noisy and overwhelm users.

⚠ This feature is experimental and may be removed in the future. We acknowledge that some repositories may want to implement more accessibility checks and aim to evaluate how users this feature before making it generally available.

yaml
    steps:
      - name: Check alt text
        uses: github/[email protected]
        with:
          config: |
            no-default-alt-text: true,
            no-alt-text: true,
            no-empty-alt-text: true,
            no-generic-link-text: true,

License

This project is licensed under the terms of the MIT open source license. Please read the MIT license file for the full terms.

Maintainers

See CODEOWNERS.

Support

TODO: Be explicit about support expectations.

Acknowledgement

Please read our Contributing Guide for more information.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Katie Foster ️️️️♿️

Kendall Gassner ️️️️♿️

Kate Higa ️️️️♿️

HonkingGoose ️️️️♿️

Eric Gallager

This project follows the all-contributors specification. Contributions of any kind welcome!

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptaccessibilityactions

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言