|
1 | 1 | name: "Pull Request Check" |
2 | 2 |
|
3 | 3 | on: |
4 | | - pull_request: |
| 4 | + pull_request_target: |
5 | 5 | types: ["opened", "edited", "reopened", "ready_for_review", "synchronize"] |
6 | 6 |
|
7 | 7 | jobs: |
8 | 8 | pull-request-description: |
9 | 9 | uses: "aeon-php/actions/.github/workflows/automation-pr-description-validate.yml@main" |
10 | 10 | secrets: |
11 | 11 | automation_github_token: "${{ secrets.ACCESS_TOKEN }}" |
12 | | -# |
13 | | -# pull-request-size: |
14 | | -# name: "Label PR Size" |
15 | | -# runs-on: ubuntu-latest |
16 | | -# continue-on-error: true |
17 | | -# steps: |
18 | | -# - uses: codelytv/pr-size-labeler@v1 |
19 | | -# with: |
20 | | -# GITHUB_TOKEN: "${{ secrets.ACCESS_TOKEN }}" |
21 | | -# xs_label: 'size: XS' |
22 | | -# xs_max_size: 50 |
23 | | -# s_label: 'size: S' |
24 | | -# s_max_size: 250 |
25 | | -# m_label: 'size: M' |
26 | | -# m_max_size: 500 |
27 | | -# l_label: 'size: L' |
28 | | -# l_max_size: 1000 |
29 | | -# xl_label: 'size: XL' |
30 | | -# fail_if_xl: false |
31 | | -# message_if_xl: > |
32 | | -# 'This PR exceeds the recommended size of 1000 lines. |
33 | | -# Please make sure you are NOT addressing multiple issues with one PR. |
34 | | -# Note this PR might be rejected due to its size.’ |
35 | | -# |
36 | | -# pull-request-type: |
37 | | -# name: "Label PR Type" |
38 | | -# runs-on: ubuntu-latest |
39 | | -# continue-on-error: true |
40 | | -# steps: |
41 | | -# - uses: actions/labeler@v4 |
42 | | -# with: |
43 | | -# repo-token: "${{ secrets.ACCESS_TOKEN }}" |
44 | | -# sync-labels: true |
| 12 | + |
| 13 | + pull-request-size: |
| 14 | + name: "Label PR Size" |
| 15 | + runs-on: ubuntu-latest |
| 16 | + continue-on-error: true |
| 17 | + steps: |
| 18 | + - uses: codelytv/pr-size-labeler@v1 |
| 19 | + with: |
| 20 | + GITHUB_TOKEN: "${{ secrets.ACCESS_TOKEN }}" |
| 21 | + xs_label: 'size: XS' |
| 22 | + xs_max_size: 50 |
| 23 | + s_label: 'size: S' |
| 24 | + s_max_size: 250 |
| 25 | + m_label: 'size: M' |
| 26 | + m_max_size: 500 |
| 27 | + l_label: 'size: L' |
| 28 | + l_max_size: 1000 |
| 29 | + xl_label: 'size: XL' |
| 30 | + fail_if_xl: false |
| 31 | + message_if_xl: > |
| 32 | + 'This PR exceeds the recommended size of 1000 lines. |
| 33 | + Please make sure you are NOT addressing multiple issues with one PR. |
| 34 | + Note this PR might be rejected due to its size.’ |
| 35 | +
|
| 36 | + pull-request-type: |
| 37 | + name: "Label PR Type" |
| 38 | + runs-on: ubuntu-latest |
| 39 | + continue-on-error: true |
| 40 | + steps: |
| 41 | + - uses: actions/labeler@v4 |
| 42 | + with: |
| 43 | + repo-token: "${{ secrets.ACCESS_TOKEN }}" |
| 44 | + sync-labels: true |
0 commit comments