mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
updating project actions for Review in Progress
disabling Changes Requested they will be refactored
This commit is contained in:
parent
73e173b7d7
commit
c3e3f592e0
1 changed files with 32 additions and 5 deletions
37
.github/workflows/project_actions.yml
vendored
37
.github/workflows/project_actions.yml
vendored
|
|
@ -5,21 +5,48 @@ on:
|
|||
types: [opened, assigned]
|
||||
pull_request_review:
|
||||
types: [submitted]
|
||||
issue_comment:
|
||||
types: [created]
|
||||
pull_request_review_comment:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
pr_review_requested:
|
||||
name: pr_review_requested
|
||||
pr_review_started:
|
||||
name: pr_review_started
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'pull_request_review' && github.event.review.state == 'changes_requested'
|
||||
# -----------------------------
|
||||
# conditions are:
|
||||
# - PR issue comment which is not form Ynbot
|
||||
# - PR review comment which is not Hound (or any other bot)
|
||||
# - PR review submitted which is not from Hound (or any other bot) and is not 'Changes requested'
|
||||
# -----------------------------
|
||||
if: |
|
||||
(github.event_name == 'issue_comment' && github.event.comment.user.id != 82967070) ||
|
||||
(github.event_name == 'pull_request_review_comment' && github.event.comment.user.type != 'Bot') ||
|
||||
(github.event_name == 'pull_request_review' && github.event.review.state != 'changes_requested' && github.event.review.user.type != 'Bot')
|
||||
steps:
|
||||
- name: Move PR to 'Change Requested'
|
||||
- name: Move PR to 'Review In Progress'
|
||||
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
|
||||
with:
|
||||
gh_token: ${{ secrets.YNPUT_BOT_TOKEN }}
|
||||
organization: ynput
|
||||
project_id: 11
|
||||
resource_node_id: ${{ github.event.pull_request.node_id }}
|
||||
status_value: Change Requested
|
||||
status_value: Review In Progress
|
||||
|
||||
# pr_review_requested:
|
||||
# name: pr_review_requested
|
||||
# runs-on: ubuntu-latest
|
||||
# if: github.event_name == 'pull_request_review' && github.event.review.state == 'changes_requested'
|
||||
# steps:
|
||||
# - name: Move PR to 'Change Requested'
|
||||
# uses: leonsteinhaeuser/project-beta-automations@v2.1.0
|
||||
# with:
|
||||
# gh_token: ${{ secrets.YNPUT_BOT_TOKEN }}
|
||||
# organization: ynput
|
||||
# project_id: 11
|
||||
# resource_node_id: ${{ github.event.pull_request.node_id }}
|
||||
# status_value: Change Requested
|
||||
|
||||
size-label:
|
||||
name: pr_size_label
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue