|
1 | 1 | name: Smart Commenting
|
| 2 | + |
2 | 3 | on:
|
3 |
| - pull_request: |
4 |
| - types: |
5 |
| - - labeled |
| 4 | + pull_request: |
| 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' |
| 18 | +permissions: |
| 19 | + issues: write |
| 20 | + pull-requests: write |
| 21 | + contents: read |
6 | 22 | jobs:
|
7 | 23 |
|
8 | 24 | 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]. |
| 25 | + uses: codeigniter4/.github/.github/workflows/label-signing.yml@main |
23 | 26 |
|
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 |
| 27 | + add-comment-for-conflict: |
| 28 | + uses: codeigniter4/.github/.github/workflows/label-add-conflict-all-pr.yml@main |
26 | 29 |
|
27 | 30 | add-comment-for-tests:
|
28 | 31 | if: github.event.label.name == 'tests needed'
|
|
43 | 46 | See [unit testing][1] for more info.
|
44 | 47 |
|
45 | 48 | [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 | 49 |
|
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