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 8fb33a37f3 [BUILD] Issue tagger, PR Tagger and commands
new 181bb17563 Merge pull request #2123 from hansva/gh-issues
8fb33a37f3 is described below
commit 8fb33a37f3b43f9934f080f9bfb1a437fbe95ae7
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Tue Jan 3 11:07:55 2023 +0100
[BUILD] Issue tagger, PR Tagger and commands
Expand the Issue tagger and add a PR Tagger. Add some extra information
about the commands you can use
---
.github/ISSUE_TEMPLATE/bug.yml | 80 ++++++++++------------
.github/ISSUE_TEMPLATE/feature.yml | 80 ++++++++++------------
.github/ISSUE_TEMPLATE/task.yml | 80 ++++++++++------------
.github/issue-rules.yml | 71 ++++++++++++++++++-
.github/{issue-rules.yml => pr-rules.yml} | 26 ++++---
.../{issue-rules.yml => workflows/pr_tagger.yml} | 31 +++++----
6 files changed, 208 insertions(+), 160 deletions(-)
diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml
index 99255faacb..3f35e9e53a 100644
--- a/.github/ISSUE_TEMPLATE/bug.yml
+++ b/.github/ISSUE_TEMPLATE/bug.yml
@@ -86,48 +86,40 @@ body:
attributes:
label: Issue Component
options:
- - "Component: Actions"
- - "Component: Api"
- - "Component: Architecture"
- - "Component: Beam"
- - "Component: Bigquery"
- - "Component: Bigtable"
- - "Component: Build"
- - "Component: Cli"
- - "Component: Containers"
- - "Component: Database"
- - "Component: Dataflow"
- - "Component: Docker"
- - "Component: Documentation"
- - "Component: Execution Information"
- - "Component: Flink"
- - "Component: Git"
- - "Component: Graph"
- - "Component: Gui"
- - "Component: Hop Config"
- - "Component: Hop Gui"
- - "Component: Hop Run"
- - "Component: Hop Search"
- - "Component: Hop Server"
- - "Component: Hop Web"
- - "Component: Import"
- - "Component: Infrastructure"
- - "Component: Integration Testing"
- - "Component: Kafka"
- - "Component: Metadata"
- - "Component: Pipelines"
- - "Component: Plugins"
- - "Component: Projects"
- - "Component: Samples"
- - "Component: Snowflake"
- - "Component: Spark"
- - "Component: Technology"
- - "Component: Transforms"
- - "Component: Translations"
- - "Component: Unit Test"
- - "Component: Vfs"
- - "Component: Website"
- - "Component: Workflows"
- - "Component: Other"
+ - "Component: Actions"
+ - "Component: Beam"
+ - "Component: CLI"
+ - "Component: Containers"
+ - "Component: Database"
+ - "Component: Documentation"
+ - "Component: Hop Config"
+ - "Component: Hop Gui"
+ - "Component: Hop Run"
+ - "Component: Hop Server"
+ - "Component: Hop Web"
+ - "Component: Import"
+ - "Component: Infrastructure"
+ - "Component: Integration Testing"
+ - "Component: Metadata"
+ - "Component: Neo4j"
+ - "Component: Pipelines"
+ - "Component: Samples"
+ - "Component: Transforms"
+ - "Component: Translations"
+ - "Component: VFS"
+ - "Component: Website"
+ - "Component: Workflows"
+ - "Component: Other"
validations:
- required: true
\ No newline at end of file
+ required: true
+ - type: markdown
+ attributes:
+ value: |
+ You can manipulate these issues by making a comment containing one of
the following commands. \
+ Command List: \
+ .take-issue self-assign the issue to you \
+ .close-issue Close this issue \
+ .reopen-issue Reopen a closed issue \
+ .add-labels label1,label2,'label 3 with spaces' \
+ .remove-labels label1,label2,'label 3 with spaces' \
+ .set-labels label1,label2,'label 3 with spaces' (which removes any
labels not in that set)
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/feature.yml
b/.github/ISSUE_TEMPLATE/feature.yml
index a49ad40989..f5a3c2ef4c 100644
--- a/.github/ISSUE_TEMPLATE/feature.yml
+++ b/.github/ISSUE_TEMPLATE/feature.yml
@@ -51,48 +51,40 @@ body:
attributes:
label: Issue Component
options:
- - "Component: Actions"
- - "Component: Api"
- - "Component: Architecture"
- - "Component: Beam"
- - "Component: Bigquery"
- - "Component: Bigtable"
- - "Component: Build"
- - "Component: Cli"
- - "Component: Containers"
- - "Component: Database"
- - "Component: Dataflow"
- - "Component: Docker"
- - "Component: Documentation"
- - "Component: Execution Information"
- - "Component: Flink"
- - "Component: Git"
- - "Component: Graph"
- - "Component: Gui"
- - "Component: Hop Config"
- - "Component: Hop Gui"
- - "Component: Hop Run"
- - "Component: Hop Search"
- - "Component: Hop Server"
- - "Component: Hop Web"
- - "Component: Import"
- - "Component: Infrastructure"
- - "Component: Integration Testing"
- - "Component: Kafka"
- - "Component: Metadata"
- - "Component: Pipelines"
- - "Component: Plugins"
- - "Component: Projects"
- - "Component: Samples"
- - "Component: Snowflake"
- - "Component: Spark"
- - "Component: Technology"
- - "Component: Transforms"
- - "Component: Translations"
- - "Component: Unit Test"
- - "Component: Vfs"
- - "Component: Website"
- - "Component: Workflows"
- - "Component: Other"
+ - "Component: Actions"
+ - "Component: Beam"
+ - "Component: CLI"
+ - "Component: Containers"
+ - "Component: Database"
+ - "Component: Documentation"
+ - "Component: Hop Config"
+ - "Component: Hop Gui"
+ - "Component: Hop Run"
+ - "Component: Hop Server"
+ - "Component: Hop Web"
+ - "Component: Import"
+ - "Component: Infrastructure"
+ - "Component: Integration Testing"
+ - "Component: Metadata"
+ - "Component: Neo4j"
+ - "Component: Pipelines"
+ - "Component: Samples"
+ - "Component: Transforms"
+ - "Component: Translations"
+ - "Component: VFS"
+ - "Component: Website"
+ - "Component: Workflows"
+ - "Component: Other"
validations:
- required: true
\ No newline at end of file
+ required: true
+ - type: markdown
+ attributes:
+ value: |
+ You can manipulate these issues by making a comment containing one of
the following commands. \
+ Command List: \
+ .take-issue self-assign the issue to you \
+ .close-issue Close this issue \
+ .reopen-issue Reopen a closed issue \
+ .add-labels label1,label2,'label 3 with spaces' \
+ .remove-labels label1,label2,'label 3 with spaces' \
+ .set-labels label1,label2,'label 3 with spaces' (which removes any
labels not in that set)
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/task.yml b/.github/ISSUE_TEMPLATE/task.yml
index 0690f3bc3e..7159b969df 100644
--- a/.github/ISSUE_TEMPLATE/task.yml
+++ b/.github/ISSUE_TEMPLATE/task.yml
@@ -51,48 +51,40 @@ body:
attributes:
label: Issue Component
options:
- - "Component: Actions"
- - "Component: Api"
- - "Component: Architecture"
- - "Component: Beam"
- - "Component: Bigquery"
- - "Component: Bigtable"
- - "Component: Build"
- - "Component: Cli"
- - "Component: Containers"
- - "Component: Database"
- - "Component: Dataflow"
- - "Component: Docker"
- - "Component: Documentation"
- - "Component: Execution Information"
- - "Component: Flink"
- - "Component: Git"
- - "Component: Graph"
- - "Component: Gui"
- - "Component: Hop Config"
- - "Component: Hop Gui"
- - "Component: Hop Run"
- - "Component: Hop Search"
- - "Component: Hop Server"
- - "Component: Hop Web"
- - "Component: Import"
- - "Component: Infrastructure"
- - "Component: Integration Testing"
- - "Component: Kafka"
- - "Component: Metadata"
- - "Component: Pipelines"
- - "Component: Plugins"
- - "Component: Projects"
- - "Component: Samples"
- - "Component: Snowflake"
- - "Component: Spark"
- - "Component: Technology"
- - "Component: Transforms"
- - "Component: Translations"
- - "Component: Unit Test"
- - "Component: Vfs"
- - "Component: Website"
- - "Component: Workflows"
- - "Component: Other"
+ - "Component: Actions"
+ - "Component: Beam"
+ - "Component: CLI"
+ - "Component: Containers"
+ - "Component: Database"
+ - "Component: Documentation"
+ - "Component: Hop Config"
+ - "Component: Hop Gui"
+ - "Component: Hop Run"
+ - "Component: Hop Server"
+ - "Component: Hop Web"
+ - "Component: Import"
+ - "Component: Infrastructure"
+ - "Component: Integration Testing"
+ - "Component: Metadata"
+ - "Component: Neo4j"
+ - "Component: Pipelines"
+ - "Component: Samples"
+ - "Component: Transforms"
+ - "Component: Translations"
+ - "Component: VFS"
+ - "Component: Website"
+ - "Component: Workflows"
+ - "Component: Other"
validations:
- required: true
\ No newline at end of file
+ required: true
+ - type: markdown
+ attributes:
+ value: |
+ You can manipulate these issues by making a comment containing one of
the following commands. \
+ Command List: \
+ .take-issue self-assign the issue to you \
+ .close-issue Close this issue \
+ .reopen-issue Reopen a closed issue \
+ .add-labels label1,label2,'label 3 with spaces' \
+ .remove-labels label1,label2,'label 3 with spaces' \
+ .set-labels label1,label2,'label 3 with spaces' (which removes any
labels not in that set)
\ No newline at end of file
diff --git a/.github/issue-rules.yml b/.github/issue-rules.yml
index e7f978c073..6aab2346dd 100644
--- a/.github/issue-rules.yml
+++ b/.github/issue-rules.yml
@@ -25,4 +25,73 @@ rules:
addLabels: ['P2']
- valueFor: 'Priority'
contains: '3'
- addLabels: ['P3']
\ No newline at end of file
+ addLabels: ['P3']
+- valueFor: 'Component'
+ contains: 'Beam'
+ addLabels: ['Beam']
+- valueFor: 'Component'
+ contains: 'CLI'
+ addLabels: ['CLI']
+- valueFor: 'Component'
+ contains: 'Containers'
+ addLabels: ['Containers']
+- valueFor: 'Component'
+ contains: 'Database'
+ addLabels: ['Database']
+- valueFor: 'Component'
+ contains: 'Documentation'
+ addLabels: ['Documentation']
+- valueFor: 'Component'
+ contains: 'Hop Config'
+ addLabels: ['Hop Config']
+- valueFor: 'Component'
+ contains: 'Hop Gui'
+ addLabels: ['Hop Gui']
+- valueFor: 'Component'
+ contains: 'Hop Run'
+ addLabels: ['Hop Run']
+- valueFor: 'Component'
+ contains: 'Hop Server'
+ addLabels: ['Hop Server']
+- valueFor: 'Component'
+ contains: 'Hop Web'
+ addLabels: ['Hop Web']
+- valueFor: 'Component'
+ contains: 'Import'
+ addLabels: ['Import']
+- valueFor: 'Component'
+ contains: 'Infrastructure'
+ addLabels: ['Infrastructure']
+- valueFor: 'Component'
+ contains: 'Integration Testing'
+ addLabels: ['Integration Testing']
+- valueFor: 'Component'
+ contains: 'Metadata'
+ addLabels: ['Metadata']
+- valueFor: 'Component'
+ contains: 'Neo4j'
+ addLabels: ['Neo4j']
+- valueFor: 'Component'
+ contains: 'Pipelines'
+ addLabels: ['Pipelines']
+- valueFor: 'Component'
+ contains: 'Samples'
+ addLabels: ['Samples']
+- valueFor: 'Component'
+ contains: 'Transforms'
+ addLabels: ['Transforms']
+- valueFor: 'Component'
+ contains: 'Translations'
+ addLabels: ['Translations']
+- valueFor: 'Component'
+ contains: 'VFS'
+ addLabels: ['VFS']
+- valueFor: 'Component'
+ contains: 'Website'
+ addLabels: ['Website']
+- valueFor: 'Component'
+ contains: 'Workflows'
+ addLabels: ['Workflows']
+- valueFor: 'Component'
+ contains: 'Other'
+ addLabels: ['Other']
\ No newline at end of file
diff --git a/.github/issue-rules.yml b/.github/pr-rules.yml
similarity index 67%
copy from .github/issue-rules.yml
copy to .github/pr-rules.yml
index e7f978c073..3cb8e024a1 100644
--- a/.github/issue-rules.yml
+++ b/.github/pr-rules.yml
@@ -1,3 +1,4 @@
+#
# 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.
@@ -5,24 +6,21 @@
# (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
+# https://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.
+#
+
+# Please keep the entries sorted lexicographically in each category.
-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
+# General
+Beam: ["engine-beam/**/*"]
+Containers: ["docker/**/*", "helm/**/*"]
+Documentation: ["docs/**/*"]
+Hop Gui: ["rap/**/*", "rcp/**/*", "ui/**/*"]
+Integration Testing: ["integration-tests/**/*"]
+Neo4j: ["plugins/tech/neo4j/**/*"]
\ No newline at end of file
diff --git a/.github/issue-rules.yml b/.github/workflows/pr_tagger.yml
similarity index 59%
copy from .github/issue-rules.yml
copy to .github/workflows/pr_tagger.yml
index e7f978c073..b4de2a06f0 100644
--- a/.github/issue-rules.yml
+++ b/.github/workflows/pr_tagger.yml
@@ -13,16 +13,21 @@
# 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
+# This workflow will triage pull requests and apply a label based on the
+# paths that are modified in the pull request.
+
+name: LabelPrs
+on: [pull_request_target]
+permissions: read-all
+jobs:
+ label:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ pull-requests: write
+ steps:
+ - uses: actions/labeler@v4
+ with:
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"
+ configuration-path: '.github/pr-rules.yml'
+ sync-labels: true # Remove labels when matching files are reverted
\ No newline at end of file