Skip to content

Commit

Permalink
DYN-6172 Update issues workflow (#2965)
Browse files Browse the repository at this point in the history
- remove issue from DynamoRevitIssues before transfer
- add step to move issue to DynamoWishlist repository
  • Loading branch information
avidit authored Sep 8, 2023
1 parent 72404a7 commit a64df79
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Issues workflow
# This workflow transfers or moves issues based upon assigned labels.

# DynamoRevitIssues project https://github.com/orgs/DynamoDS/projects/7
# Built-in workflow https://github.com/orgs/DynamoDS/projects/7/workflows/11382076

Expand All @@ -10,6 +12,7 @@ name: Issues workflow

# This workflow complements the built in workflow and
# - moves issues labeled as 'Dynamo' to 'DynamoDS/Dynamo' repository
# - moves issues labeled as 'Wishlist' to 'DynamoDS/DynamoWishlist' repository
# - moves issues labeled as 'tracked' to 'Todo' column the project
# - moves assigned issues to 'In Progress' column the project

Expand All @@ -23,17 +26,27 @@ env:
gh_token: ${{ secrets.DYNAMO_ISSUES_TOKEN }}
gh_organization: DynamoDS
project_id: 7
project_name: DynamoRevitIssues

jobs:
issue_labeled:
name: issue labeled
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'labeled'
if: github.event.action == 'labeled'
steps:
- uses: actions/checkout@v3
- name: Move issue to Dynamo Repository
if: github.event.label.name == 'Dynamo'
run: gh issue transfer ${{ github.event.issue.number }} DynamoDS/Dynamo
run: |
gh issue edit ${{ github.event.issue.number }} --remove-project ${{ env.project_name }}
gh issue transfer ${{ github.event.issue.number }} DynamoDS/Dynamo
env:
GITHUB_TOKEN: ${{ env.gh_token }}
- name: Move issue to DynamoWishlist Repository
if: github.event.label.name == 'Wishlist'
run: |
gh issue edit ${{ github.event.issue.number }} --remove-project ${{ env.project_name }}
gh issue transfer ${{ github.event.issue.number }} DynamoDS/DynamoWishlist
env:
GITHUB_TOKEN: ${{ env.gh_token }}
- name: Move issue to Todo
Expand All @@ -49,7 +62,7 @@ jobs:
issue_assigned:
name: issue assigned
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'assigned'
if: github.event.action == 'assigned'
steps:
- name: Move issue to In Progress
uses: leonsteinhaeuser/[email protected]
Expand Down

0 comments on commit a64df79

Please sign in to comment.