CI: add issue labeller action
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 13 Nov 2023 01:09:57 +0000 (02:09 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 15 Nov 2023 09:59:27 +0000 (10:59 +0100)
Add issue labeler action. This action will parse BUG issue from the
template and will make validation on the insert data.

The action will:
- Tag the issue with SNAPSHOT or release based on the provided release
- Tag the issue with the reported tag
- Tag the issue with the image kind (Official or Self Built)
- Validate the reported version exist
- Validate the reported release exist
- Validate the reported device exist

Will also tag the issue with useful tag or flag the issue as invalid.
Will also comment the issue with the invalid info provided.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
.github/workflows/issue-labeller.yml [new file with mode: 0644]

diff --git a/.github/workflows/issue-labeller.yml b/.github/workflows/issue-labeller.yml
new file mode 100644 (file)
index 0000000..585bd27
--- /dev/null
@@ -0,0 +1,11 @@
+name: Issue Labeller\r
+on:\r
+  issues:\r
+    types: [ opened ]\r
+\r
+jobs:\r
+  label-component:\r
+    name: Validate and Tag Bug Report\r
+    permissions:\r
+      issues: write\r
+    uses: openwrt/actions-shared-workflows/.github/workflows/issue-labeller.yml@main\r