Skip to content

Commit

Permalink
Move to official github action for project issue automation (#653)
Browse files Browse the repository at this point in the history
* Changing to use the github action for this workflow

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wayne Starr <me@racer159.com>
  • Loading branch information
renovate[bot] and Racer159 committed Aug 2, 2022
1 parent 1f353c5 commit f7cb1a0
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/auto-assign-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,14 @@ on:
types:
- opened

# map fields with customized labels
env:
todo: New Requests

jobs:
issue_opened:
name: issue_opened
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'opened'
steps:
- name: Move issue to ${{ env.todo }}
uses: leonsteinhaeuser/project-beta-automations@v1.2.1
- name: Move issue to Zarf Project
uses: actions/add-to-project@v0.3.0
with:
gh_token: ${{ secrets. ZARF_ORG_PROJECT_TOKEN }}
# user: sample-user
organization: defenseunicorns
project_id: 1
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.todo }} # Target status
project-url: https://github.com/orgs/defenseunicorns/projects/1
github-token: ${{ secrets. ZARF_ORG_PROJECT_TOKEN }}

0 comments on commit f7cb1a0

Please sign in to comment.