GithubHelp home page GithubHelp logo

cbid2 / accessibility-alt-text-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from github/accessibility-alt-text-bot

0.0 0.0 0.0 8.59 MB

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

License: MIT License

Shell 18.69% JavaScript 81.31%

accessibility-alt-text-bot's Introduction

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:

Screenshot of an automated actions comment on a GitHub issue that says, 'Uh oh! @monalisa, the image you shared is missing helpful alt text...' and contains instructions for setting alt text

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:

name: Accessibility-alt-text-bot
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 is set on issue or pull requests
    runs-on: ubuntu-latest
    steps:
      - name: Get action 'github/accessibility-alt-text-bot'
        uses: github/[email protected] # Set to latest

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.

       uses: github/[email protected]

Replace the ref value with any commit hash.

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
Katie Foster

๐Ÿค” ๏ธ๏ธ๏ธ๏ธโ™ฟ๏ธ
Kendall Gassner
Kendall Gassner

๐Ÿ’ป ๏ธ๏ธ๏ธ๏ธโ™ฟ๏ธ ๐Ÿ“– ๐Ÿš‡
Kate Higa
Kate Higa

๐Ÿ’ป ๏ธ๏ธ๏ธ๏ธโ™ฟ๏ธ ๐Ÿ“– ๐Ÿš‡
HonkingGoose
HonkingGoose

๐Ÿ“–
JoshuaKGoldberg
JoshuaKGoldberg

๐Ÿ’ป

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

accessibility-alt-text-bot's People

Contributors

khiga8 avatar kendallgassner avatar honkinggoose avatar joycezhu avatar smockle avatar joshuakgoldberg avatar owenniblock avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.