Skip to content

Update about.html

Update about.html #20

Workflow file for this run

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']
});
}