Adding labelling to project action

This commit is contained in:
Jakub Jezek 2023-03-29 14:47:33 +02:00
parent 3fa284f16c
commit 1e6b57209f
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
3 changed files with 45 additions and 1 deletions

View file

@ -20,6 +20,7 @@ jobs:
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
@ -42,4 +43,25 @@ jobs:
"1000": "L",
"1500": "XL",
"2500": "XXL"
}
}
label_prs_branch:
name: pr_branch_label
runs-on: ubuntu-latest
if: github.event.action == 'opened'
steps:
- name: Label PRs - Branch name detection
uses: ffittschen/pr-branch-labeler@v1
with:
repo-token: ${{ secrets.YNPUT_BOT_TOKEN }}
label_prs_globe:
name: pr_globe_label
runs-on: ubuntu-latest
if: github.event.action == 'opened'
steps:
- name: Label PRs - Globe detection
uses: actions/labeler@v4
with:
repo-token: ${{ secrets.YNPUT_BOT_TOKEN }}
configuration-path: ".github/pr-glob-labeler.yml"