Skip to content

Commit

Permalink
Update move issues workflow (#3019)
Browse files Browse the repository at this point in the history
* Update move issues workflow

* Update move issues workflow
  • Loading branch information
avidit authored Dec 19, 2023
1 parent 0d153cf commit 3acc356
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/move_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ on:
- assigned

env:
GH_TOKEN: ${{ secrets.DYNAMO_ISSUES_TOKEN }}
gh_organization: ${{ github.repository_owner }}
project_id: 7
project_name: DynamoRevit Issues

Expand All @@ -34,22 +32,24 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.action == 'labeled' }}
steps:
- uses: actions/checkout@v4
- name: Transfer issue to Dynamo Repository
if: ${{ github.event.label.name == 'Dynamo' }}
env:
GH_TOKEN: ${{ secrets.DYNAMO_ISSUES_TOKEN }}
run: |
gh issue edit ${{ github.event.issue.number }} --remove-project "${{ env.project_name }}"
gh issue edit ${{ github.event.issue.number }} --remove-project "${{ env.project_name }}" --repo ${{ github.repository }}
gh issue transfer ${{ github.event.issue.number }} DynamoDS/Dynamo
transfer_issue_labeled_as_wishlist:
name: Transfer issue labeled as Wishlist
runs-on: ubuntu-latest
if: ${{ github.event.action == 'labeled' }}
steps:
- uses: actions/checkout@v4
- name: Transfer issue to DynamoWishlist Repository
if: ${{ github.event.label.name == 'Wishlist' }}
env:
GH_TOKEN: ${{ secrets.DYNAMO_ISSUES_TOKEN }}
run: |
gh issue edit ${{ github.event.issue.number }} --remove-project "${{ env.project_name }}"
gh issue edit ${{ github.event.issue.number }} --remove-project "${{ env.project_name }}" --repo ${{ github.repository }}
gh issue transfer ${{ github.event.issue.number }} DynamoDS/DynamoWishlist
move_issue_labeled_as_tracked:
name: Move issue labeled as tracked
Expand All @@ -60,8 +60,8 @@ jobs:
if: ${{ github.event.label.name == 'tracked' }}
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ env.GH_TOKEN }}
organization: ${{ env.gh_organization }}
gh_token: ${{ secrets.DYNAMO_ISSUES_TOKEN }}
organization: ${{ github.repository_owner }}
project_id: ${{ env.project_id }}
resource_node_id: ${{ github.event.issue.node_id }}
status_value: Todo
Expand All @@ -73,8 +73,8 @@ jobs:
- name: Move issue to In Progress
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ env.GH_TOKEN }}
organization: ${{ env.gh_organization }}
gh_token: ${{ secrets.DYNAMO_ISSUES_TOKEN }}
organization: ${{ github.repository_owner }}
project_id: ${{ env.project_id }}
resource_node_id: ${{ github.event.issue.node_id }}
status_value: In Progress

0 comments on commit 3acc356

Please sign in to comment.