summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-11-15 13:56:00 -0600
committerGravatar GitHub <noreply@github.com> 2021-11-15 13:56:00 -0600
commit1579dd7ff9b28fd96d45e0ab5a06a6ffec5e9015 (patch)
tree9fae2359d143f7205524968d2f8e10e9630038b6
parent4e55be9006bf4b4dba94171388f6cbb7f5ec63f3 (diff)
downloadastro-1579dd7ff9b28fd96d45e0ab5a06a6ffec5e9015.tar.gz
astro-1579dd7ff9b28fd96d45e0ab5a06a6ffec5e9015.tar.zst
astro-1579dd7ff9b28fd96d45e0ab5a06a6ffec5e9015.zip
Automatically add PR labels (#1835)
* chore: add PR labeler * chore: update labeler config * chore: add action label * refactor: use terse syntax
-rw-r--r--.github/labeler.yml21
-rw-r--r--.github/workflows/label.yml12
2 files changed, 33 insertions, 0 deletions
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 000000000..0f39cc3eb
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,21 @@
+# See https://github.com/actions/labeler
+
+example:
+- examples/**/*
+
+action:
+- .github/workflows/**
+
+docs:
+- docs/**
+
+www:
+- www/**
+
+i18n:
+- any:
+ - 'docs/src/pages/*/**'
+ - '!docs/src/pages/core-concepts/**'
+ - '!docs/src/pages/guides/**'
+ - '!docs/src/pages/migration/**'
+ - '!docs/src/pages/reference/**'
diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml
new file mode 100644
index 000000000..39929e9bc
--- /dev/null
+++ b/.github/workflows/label.yml
@@ -0,0 +1,12 @@
+name: Label PRs
+
+on:
+ - pull_request_target
+
+jobs:
+ triage:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/labeler@v3
+ with:
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"