ci: Add an automatic labeler action
authorColin Walters <walters@verbum.org>
Thu, 7 Sep 2023 21:38:59 +0000 (17:38 -0400)
committerColin Walters <walters@verbum.org>
Thu, 7 Sep 2023 21:38:59 +0000 (17:38 -0400)
To automate a bit.

.github/labeler.yml [new file with mode: 0644]
.github/workflows/labeler.yml [new file with mode: 0644]

diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644 (file)
index 0000000..e626115
--- /dev/null
@@ -0,0 +1,6 @@
+area/prepare-root:
+- src/switchroot/**
+- src/boot
+
+area/rust-bindings:
+- rust-bindings/**
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
new file mode 100644 (file)
index 0000000..270c6df
--- /dev/null
@@ -0,0 +1,12 @@
+name: "Pull Request Labeler"
+on:
+- pull_request_target
+
+jobs:
+  triage:
+    permissions:
+      contents: read
+      pull-requests: write
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/labeler@v4
\ No newline at end of file