Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to official github action for project issue automation #653

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 }}