Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add a11y-alt-text bot #989

Merged
merged 13 commits into from
Oct 30, 2023
26 changes: 26 additions & 0 deletions .github/workflows/a11y-add-alt-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
jobs:
accessibility_alt_text_bot:
if: ${{ github.event.issue || github.event.pull_request || github.event.discussion }}
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]
name: Accessibility-alt-text-bot

on:
discussion:
types: [created, edited]
discussion_comment:
types: [created, edited]

issue_comment:
types: [created, edited]
issues:
types: [edited, opened]
pull_request:
types: [edited, opened]
permissions:
discussions: write
issues: write
pull-requests: write
2 changes: 1 addition & 1 deletion src/steps/writing/creation/dotGitHub/actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ name: Prepare
runs:
steps:
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: '18'
Expand Down
2 changes: 1 addition & 1 deletion src/steps/writing/creation/dotGitHub/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function createDotGitHubActions() {
steps: [
{ uses: "pnpm/action-setup@v2" },
{
uses: "actions/setup-node@v3",
uses: "actions/setup-node@v4",
with: { cache: "pnpm", "node-version": "18" },
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/steps/writing/creation/rootFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function createRootFiles(options: Options) {
},
}),
}),
".nvmrc": `20.8.1\n`,
".nvmrc": `20.9.0\n`,
".prettierignore": formatIgnoreFile([
...(options.excludeAllContributors ? [] : [".all-contributorsrc"]),
...(options.excludeTests ? [] : ["coverage/"]),
Expand Down