百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

accessibility-alt-text-bot

> 编程语言
开源

一项操作,用于提醒用户在问题、拉取请求和讨论中添加 alt 文本

99 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

一项操作,用于提醒用户在问题、拉取请求和讨论中添加 alt 文本

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptaccessibilityactions

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

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