|
1 | 1 | name: Smart Commenting
|
| 2 | + |
2 | 3 | on:
|
3 | 4 | pull_request:
|
4 |
| - types: |
5 |
| - - labeled |
| 5 | + branches: |
| 6 | + - develop |
| 7 | + paths: |
| 8 | + - '**.php' |
| 9 | + - 'composer.*' |
| 10 | + - '.github/workflows/smart-commenting.yml' |
| 11 | + push: |
| 12 | + branches: |
| 13 | + - develop |
| 14 | + paths: |
| 15 | + - '**.php' |
| 16 | + - 'composer.*' |
| 17 | + - '.github/workflows/smart-commenting.yml' |
6 | 18 | jobs:
|
7 | 19 |
|
8 | 20 | add-comment-for-GPG-Signing:
|
9 |
| - if: github.event.label.name == 'GPG-Signing needed' |
10 |
| - runs-on: ubuntu-latest |
11 |
| - permissions: |
12 |
| - pull-requests: write |
13 |
| - steps: |
14 |
| - - name: Add comment for GPG-sign |
15 |
| - uses: peter-evans/create-or-update-comment@v4 |
16 |
| - with: |
17 |
| - issue-number: ${{ github.event.pull_request.number }} |
18 |
| - body: | |
19 |
| - You must GPG-sign your work, certifying that you either wrote the work or otherwise have the right to pass it on to an open-source project. See Developer's Certificate of Origin. |
20 |
| - See [signing][1]. |
21 |
| -
|
22 |
| - **Note that all your commits must be signed.** If you have an unsigned commit, you can sign the previous commits by referring to [gpg-signing-old-commits][2]. |
23 |
| -
|
24 |
| - [1]: https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#signing |
25 |
| - [2]: https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#gpg-signing-old-commits |
| 21 | + uses: codeigniter4/.github/.github/workflows/label-signing.yml@main |
26 | 22 |
|
| 23 | + add-comment-for-conflict: |
| 24 | + uses: codeigniter4/.github/.github/workflows/label-add-conflict-all-pr.yml@main |
| 25 | + |
27 | 26 | add-comment-for-tests:
|
28 | 27 | if: github.event.label.name == 'tests needed'
|
29 | 28 | runs-on: ubuntu-latest
|
|
43 | 42 | See [unit testing][1] for more info.
|
44 | 43 |
|
45 | 44 | [1]: https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#unit-testing
|
46 |
| - |
47 |
| - add-comment-for-conflict: |
48 |
| - if: github.event.label.name == 'stale' |
49 |
| - runs-on: ubuntu-latest |
50 |
| - permissions: |
51 |
| - pull-requests: write |
52 |
| - steps: |
53 |
| - - name: Add comment for resolving a merge conflict |
54 |
| - uses: peter-evans/create-or-update-comment@v4 |
55 |
| - with: |
56 |
| - issue-number: ${{ github.event.pull_request.number }} |
57 |
| - body: | |
58 |
| - We detected conflicts in your PR against the base branch :speak_no_evil: |
59 |
| - You may want to sync :arrows_counterclockwise: your branch with upstream! |
60 |
| - See [resolving a merge conflict using the Git][1] for more info. |
61 | 45 |
|
62 |
| - [1]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/addressing-merge-conflicts/resolving-a-merge-conflict-using-the-command-line |
0 commit comments