mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Add Automatic Project Actions
[ci skip]
This commit is contained in:
parent
0979f3c5c3
commit
6f7aaba7fa
44
.github/workflows/project-actions.yml
vendored
Normal file
44
.github/workflows/project-actions.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
name: Project automations
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
|
||||||
|
# map fields with customized labels
|
||||||
|
env:
|
||||||
|
todo: Todo
|
||||||
|
done: Done
|
||||||
|
in_progress: In Progress
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
issue_opened_or_reopened:
|
||||||
|
name: issue_opened_or_reopened
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened')
|
||||||
|
steps:
|
||||||
|
- name: Move issue to ${{ env.todo }}
|
||||||
|
uses: leonsteinhaeuser/project-beta-automations@v1.2.1
|
||||||
|
with:
|
||||||
|
gh_token: ${{ secrets.GH_TOKEN }}
|
||||||
|
organization: paperless-ngx
|
||||||
|
project_id: 2
|
||||||
|
resource_node_id: ${{ github.event.issue.node_id }}
|
||||||
|
status_value: ${{ env.todo }} # Target status
|
||||||
|
pr_opened_or_reopened_or_reviewrequested:
|
||||||
|
name: pr_opened_or_reopened_or_reviewrequested
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'review_requested')
|
||||||
|
steps:
|
||||||
|
- name: Move PR to ${{ env.in_progress }}
|
||||||
|
uses: leonsteinhaeuser/project-beta-automations@v1.2.1
|
||||||
|
with:
|
||||||
|
gh_token: ${{ secrets.GH_TOKEN }}
|
||||||
|
organization: paperless-ngx
|
||||||
|
project_id: 2
|
||||||
|
resource_node_id: ${{ github.event.pull_request.node_id }}
|
||||||
|
status_value: ${{ env.in_progress }} # Target status
|
Loading…
x
Reference in New Issue
Block a user