updating project actions for Review in Progress

disabling Changes Requested they will be refactored
This commit is contained in:
Jakub Jezek 2023-04-01 22:31:02 +02:00
parent 73e173b7d7
commit c3e3f592e0
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -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