From 336152be6670d40509f35043e661cde14e4b30ba Mon Sep 17 00:00:00 2001 From: Matan Borenkraout Date: Sun, 10 Sep 2023 10:33:20 +0300 Subject: [PATCH] chore: add accessibility-alt-text-bot (#1240) * chore: add accessibility-alt-text-bot * fix formatting issues --- .github/workflows/accessibility-alt-text.yml | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/accessibility-alt-text.yml diff --git a/.github/workflows/accessibility-alt-text.yml b/.github/workflows/accessibility-alt-text.yml new file mode 100644 index 00000000..2b8ea3f1 --- /dev/null +++ b/.github/workflows/accessibility-alt-text.yml @@ -0,0 +1,28 @@ +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 + if: + ${{ github.event.issue || github.event.pull_request || + github.event.discussion }} + steps: + - name: Get action 'github/accessibility-alt-text-bot' + uses: github/accessibility-alt-text-bot@v1.2.0 # Set to latest