Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/project_automation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Project automations

on:
issues:
types:
- opened
- assigned
pull_request_target:
types:
- opened
Expand All @@ -9,9 +13,41 @@ on:

# map fields with customized labels
env:
new: New
todo: Todo
done: Done
in_progress: In Progress
in_review: In Review

jobs:
issue_opened:
name: issue_opened
runs-on: ubuntu-latest
if: github.event_name == 'issues' && (github.event.action == 'opened')
steps:
- name: Move issue to ${{ env.new }}
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
# user: ghostbsd
organization: ghostbsd
project_id: 5
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.new }}
issue_assigned:
name: issue_assigned
runs-on: ubuntu-latest
if: github.event_name == 'issues' && (github.event.action == 'assigned')
steps:
- name: Move issue to ${{ env.in_progress }}
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
# user: ghostbsd
organization: ghostbsd
project_id: 5
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.in_progress }}
pr_opened:
name: pr_opened
runs-on: ubuntu-latest
Expand Down