From 3fa284f16ca8ac21fef535467289e1ca3e6607ac Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Wed, 29 Mar 2023 14:09:52 +0200 Subject: [PATCH] adding size labeling to project workflow --- .github/workflows/project_actions.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/project_actions.yml b/.github/workflows/project_actions.yml index 26bc2b8a1f..dc68a9dc0e 100644 --- a/.github/workflows/project_actions.yml +++ b/.github/workflows/project_actions.yml @@ -2,7 +2,7 @@ name: project-actions on: pull_request: - types: [review_requested] + types: [opened, synchronize, assigned, review_requested] pull_request_review: types: [submitted] @@ -20,3 +20,26 @@ 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 + 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" + } \ No newline at end of file