From 399c1007c8bf31cc8ab6facaffa68cc46c668040 Mon Sep 17 00:00:00 2001 From: Aabishkar KC Date: Tue, 7 Nov 2023 08:45:04 -0500 Subject: [PATCH] Add issue labeler workflow (#256) --- .github/ISSUE_TEMPLATE/wishlist.yml | 2 +- .github/labeler.yml | 32 +++++++++++++++++++ .github/workflows/label_issues.yml | 20 ++++++++++++ .../workflows/{issues.yml => move_issues.yml} | 4 +-- 4 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label_issues.yml rename .github/workflows/{issues.yml => move_issues.yml} (96%) diff --git a/.github/ISSUE_TEMPLATE/wishlist.yml b/.github/ISSUE_TEMPLATE/wishlist.yml index 8863e15..6405792 100644 --- a/.github/ISSUE_TEMPLATE/wishlist.yml +++ b/.github/ISSUE_TEMPLATE/wishlist.yml @@ -1,6 +1,6 @@ name: Dynamo Wishlist description: File an improvement request -title: ':feat: ' +title: '<title>' labels: [needs triage] projects: [DynamoDS/3] assignees: diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..7bdee05 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,32 @@ +DesignScript: + - designscript +Documentation: + - (documentation|docs) +Dynamo Player: + - player +Engine: + - engine +Extensions: + - extension +Geometry: + - geometry +Graphics: + - graphics +Nodes: + - node +Python: + - python +Package Manager: + - package +Revit: + - revit +Search: + - search +Wishlist: + - (wish|wishlist|improvement|suggestion|enhancement|feature|request) +UI: + - ui +UX: + - ux +VM: + - vm diff --git a/.github/workflows/label_issues.yml b/.github/workflows/label_issues.yml new file mode 100644 index 0000000..dcc44c5 --- /dev/null +++ b/.github/workflows/label_issues.yml @@ -0,0 +1,20 @@ +name: Label Issues +# This workflow add labels to new issues based on the title of the issue with regex defined in .github/labeler.yml + +on: + issues: + types: + - opened + +jobs: + label_issues: + name: Label Issues + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v3.2 + with: + repo-token: ${{ github.token }} + configuration-path: .github/labeler.yml + enable-versioned-regex: 0 + include-title: 1 + include-body: 0 diff --git a/.github/workflows/issues.yml b/.github/workflows/move_issues.yml similarity index 96% rename from .github/workflows/issues.yml rename to .github/workflows/move_issues.yml index e21d9af..4bb5cbf 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/move_issues.yml @@ -1,4 +1,4 @@ -name: Issues workflow +name: Move Issues # DynamoWishlist project https://github.com/orgs/DynamoDS/projects/3 # Built-in workflow https://github.com/orgs/DynamoDS/projects/3/workflows @@ -19,7 +19,7 @@ on: env: gh_token: ${{ secrets.DYNAMO_ISSUES_TOKEN }} - gh_organization: DynamoDS + gh_organization: ${{ github.repository_owner }} project_id: 3 jobs: