Skip to content

Commit b4d1c91

Browse files
committed
chore: use organization workflows for improve actions
1 parent d55fc08 commit b4d1c91

File tree

1 file changed

+22
-35
lines changed

1 file changed

+22
-35
lines changed
+22-35
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
11
name: Smart Commenting
2+
23
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
622
jobs:
723

824
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
2326

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
2629

2730
add-comment-for-tests:
2831
if: github.event.label.name == 'tests needed'
@@ -43,20 +46,4 @@ jobs:
4346
See [unit testing][1] for more info.
4447
4548
[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.
6149
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

Comments
 (0)