Add missing alt tag to all images #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Label Issues and PRs | |
on: | |
issues: | |
types: [opened, reopened, edited] | |
pull_request: | |
types: [opened] | |
jobs: | |
label_issue_pr: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Label Issues or PRs | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
const { issue, pull_request } = context.payload; | |
if (issue) { | |
// Label issues when opened, reopened, or edited | |
await github.rest.issues.addLabels({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: issue.number, | |
labels: ['hacktoberfest-accepted', 'hacktoberfest'] | |
}); | |
} | |
if (pull_request) { | |
// Label pull requests when opened | |
await github.rest.issues.addLabels({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: pull_request.number, | |
labels: ['hacktoberfest-accepted', 'hacktoberfest'] | |
}); | |
} |