This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new ae3dd3e615 [GHA] Add auto priority labels
     new b0df5d1e52 Merge pull request #2085 from hansva/master
ae3dd3e615 is described below

commit ae3dd3e615100c307bdc255e6136f3b4cda88761
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Mon Dec 19 13:02:45 2022 +0100

    [GHA] Add auto priority labels
---
 .github/issue-rules.yml            | 28 ++++++++++++++++++++++++++++
 .github/workflows/issue_tagger.yml | 31 +++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/.github/issue-rules.yml b/.github/issue-rules.yml
new file mode 100644
index 0000000000..e7f978c073
--- /dev/null
+++ b/.github/issue-rules.yml
@@ -0,0 +1,28 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+rules:
+- valueFor: 'Priority'
+  contains: '0'
+  addLabels: ['P0']
+- valueFor: 'Priority'
+  contains: '1'
+  addLabels: ['P1']
+- valueFor: 'Priority'
+  contains: '2'
+  addLabels: ['P2']
+- valueFor: 'Priority'
+  contains: '3'
+  addLabels: ['P3']
\ No newline at end of file
diff --git a/.github/workflows/issue_tagger.yml 
b/.github/workflows/issue_tagger.yml
new file mode 100644
index 0000000000..c5f4c665c7
--- /dev/null
+++ b/.github/workflows/issue_tagger.yml
@@ -0,0 +1,31 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: IssueTagger
+on:
+  issues:
+    types: [opened]
+
+jobs:
+  label:
+    runs-on: ubuntu-latest
+    permissions:
+      issues: write
+    steps:
+      - uses: actions/checkout@v3
+      - uses: damccorm/tag-ur-it@6fa72bbf1a2ea157b533d7e7abeafdb5855dbea5
+        with:
+          repo-token: "${{ secrets.GITHUB_TOKEN }}"
+          configuration-path: "./.github/issue-rules.yml"
\ No newline at end of file

Reply via email to