mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
45 lines
No EOL
1.3 KiB
YAML
45 lines
No EOL
1.3 KiB
YAML
name: project-actions
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, assigned, review_requested]
|
|
pull_request_review:
|
|
types: [submitted]
|
|
|
|
jobs:
|
|
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
|
|
runs-on: ubuntu-latest
|
|
if: |
|
|
${{(github.event_name == 'pull_request' && github.event.action == 'synchronize')
|
|
|| (github.event_name == 'pull_request' && github.event.action == 'assigned')}}
|
|
|
|
steps:
|
|
- name: Add size label
|
|
uses: "pascalgn/size-label-action@v0.4.3"
|
|
env:
|
|
GITHUB_TOKEN: "${{ secrets.YNPUT_BOT_TOKEN }}"
|
|
IGNORED: ".gitignore\n*.md\n*.json"
|
|
with:
|
|
sizes: >
|
|
{
|
|
"0": "XS",
|
|
"100": "S",
|
|
"500": "M",
|
|
"1000": "L",
|
|
"1500": "XL",
|
|
"2500": "XXL"
|
|
} |