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

[Oztechan/CCC#2098] Add PR automations #2099

Merged
merged 1 commit into from
Feb 23, 2023
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
40 changes: 40 additions & 0 deletions .github/workflows/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ on:
issues:
types:
- opened
pull_request:
types:
- opened
- ready_for_review
- reopened
- closed
- converted_to_draft

jobs:
ProjectAutomations:
Expand All @@ -17,3 +24,36 @@ jobs:
project_id: 2
resource_node_id: ${{ github.event.issue.node_id }}
custom_field_values: ${{ secrets.CUSTOM_FIELD_VALUES }}

- name: 'Move Related Issue to "🏗 PR Review"'
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'reopened')
uses: leonsteinhaeuser/project-beta-automations@feat/move-related-issues
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 2
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "🏗 PR Review"
move_related_issues: true

- name: 'Move Related Issue to "🚧 In Progress"'
if: github.event_name == 'pull_request' && github.event.action == 'converted_to_draft'
uses: leonsteinhaeuser/project-beta-automations@feat/move-related-issues
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 2
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "🚧 In Progress"
move_related_issues: true

- name: 'Move Related Issue to "✅ Done"'
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
uses: leonsteinhaeuser/project-beta-automations@feat/move-related-issues
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 2
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "✅ Done"
move_related_issues: true