👷 Add PR automation workflow

Will help us label PRs based on their contents, and then that info
can be used to make the whole branch validation a bit more intelligent.

For reasons of consistency, also rename issue labeler to issue
automation.
This commit is contained in:
Gina Häußge committed 2021-01-13 15:46:12 +01:00
1 parent cd424779cb
commit 6698bbf68f
3 files changed
+38 -2

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
docs:
- "docs/*"
- "docs/**/*"
- "README.md"
meta:
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "SECURITY.md"
- ".github/CODEOWNERS"
- ".github/FUNDING.yml"
- ".github/ISSUE_TEMPLATE/*"
- ".github/PULL_REQUEST_TEMPLATE.md"
ci/cd:
- ".github/fixtures/**/*"
- ".github/workflows/*"
- ".github/labeler.yml"
docker:
- ".github/workflows/trigger_docker.yml"
tests:
- "tests/*"
- "tests/**/*"
@@ -1,10 +1,10 @@
name: "Issue Labeler"
name: "Issue Automation"
on:
issues:
types: [opened, edited, closed, reopened]
jobs:
label-opened-and-edited:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v2
+11
View File
@@ -0,0 +1,11 @@
name: "Pull Request Automation"
on:
- pull_request_target
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"