WIP new animated graph on homepage #216
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
# inspired by https://github.com/systeminit/si/blob/main/.github/workflows/community-check.yml | |
name: Label community PR | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
pr-labeler: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Label PR | |
uses: actions/github-script@v5 | |
with: | |
script: | | |
const MAINTAINERS = 'theoephraim philmillman'.split(' '); | |
await github.rest.issues.addLabels({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.issue.number, | |
labels: [ | |
MAINTAINERS.includes(context.payload.pull_request.user.login) ? 'maintainer' : 'community' | |
] | |
}); |