Skip to content

Commit fb8df2b

Browse files
chore: use conventional commits (#12)
Co-authored-by: ChristophShyper <45788587+ChristophShyper@users.noreply.github.com>
1 parent bbe1735 commit fb8df2b

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/e2e-action-commit-push.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
uses: devops-infra/action-commit-push@master
7575
with:
7676
github_token: ${{ secrets.GITHUB_TOKEN }}
77-
commit_message: "[E2E] Basic commit test"
77+
commit_message: "test(commit-push): basic commit test"
7878
target_branch: test/e2e-commit-push-basic-${{ github.run_id }}
7979

8080
- name: Commit and push via docker image (preview)
@@ -122,8 +122,8 @@ jobs:
122122
uses: devops-infra/action-commit-push@master
123123
with:
124124
github_token: ${{ secrets.GITHUB_TOKEN }}
125-
commit_prefix: "[E2E-PREFIX]"
126-
commit_message: " Custom message test"
125+
commit_prefix: "test(commit-push): "
126+
commit_message: "custom message test"
127127
target_branch: test/e2e-commit-push-prefix-${{ github.run_id }}
128128

129129
- name: Commit via docker image (preview)
@@ -169,7 +169,7 @@ jobs:
169169
with:
170170
github_token: ${{ secrets.GITHUB_TOKEN }}
171171
allow_empty_commit: "true"
172-
commit_message: "[E2E] Empty commit test"
172+
commit_message: "test(commit-push): empty commit test"
173173
target_branch: test/e2e-commit-push-empty-${{ github.run_id }}
174174

175175
- name: Empty commit via docker image (preview)
@@ -216,7 +216,7 @@ jobs:
216216
with:
217217
github_token: ${{ secrets.GITHUB_TOKEN }}
218218
add_timestamp: "true"
219-
commit_message: "[E2E] Timestamp branch test"
219+
commit_message: "test(commit-push): timestamp branch test"
220220
target_branch: test/e2e-commit-push-timestamp
221221

222222
- name: Commit via docker image (preview)
@@ -265,7 +265,7 @@ jobs:
265265
with:
266266
github_token: ${{ secrets.GITHUB_TOKEN }}
267267
repository_path: repo
268-
commit_message: "[E2E] Repository path test"
268+
commit_message: "test(commit-push): repository path test"
269269
target_branch: test/e2e-commit-push-path-${{ github.run_id }}
270270

271271
- name: Commit via docker image (preview)
@@ -318,13 +318,13 @@ jobs:
318318
git checkout -b "${base_branch}"
319319
echo "base" > e2e-reset-base.md
320320
git add e2e-reset-base.md
321-
git commit -m "[E2E] base branch for reset"
321+
git commit -m "test(commit-push): base branch for reset"
322322
git push origin "${base_branch}"
323323
324324
git checkout -b "${target_branch}" "${base_branch}"
325325
echo "legacy" > e2e-reset-legacy.md
326326
git add e2e-reset-legacy.md
327-
git commit -m "[E2E] legacy target branch content"
327+
git commit -m "test(commit-push): legacy target branch content"
328328
git push origin "${target_branch}"
329329
330330
- name: Reset target branch using action
@@ -393,19 +393,19 @@ jobs:
393393
git checkout -b "${base_branch}"
394394
printf 'value=one\n' > e2e-rebase-conflict.md
395395
git add e2e-rebase-conflict.md
396-
git commit -m "[E2E] base commit"
396+
git commit -m "test(commit-push): base commit"
397397
git push origin "${base_branch}"
398398
399399
git checkout -b "${target_branch}" "${base_branch}"
400400
printf 'value=target\n' > e2e-rebase-conflict.md
401401
git add e2e-rebase-conflict.md
402-
git commit -m "[E2E] target diverges"
402+
git commit -m "test(commit-push): target diverges"
403403
git push origin "${target_branch}"
404404
405405
git checkout "${base_branch}"
406406
printf 'value=base\n' > e2e-rebase-conflict.md
407407
git add e2e-rebase-conflict.md
408-
git commit -m "[E2E] base diverges"
408+
git commit -m "test(commit-push): base diverges"
409409
git push origin "${base_branch}"
410410
411411
- name: Run action with strict rebase conflict handling
@@ -463,7 +463,7 @@ jobs:
463463
git checkout -b test/e2e-commit-push-amend-${{ github.run_id }}
464464
echo "v1" > e2e-amend-test.md
465465
git add e2e-amend-test.md
466-
git commit -m "E2E: initial commit for amend test"
466+
git commit -m "test(commit-push): initial commit for amend test"
467467
git push origin test/e2e-commit-push-amend-${{ github.run_id }}
468468
469469
- name: Add more content to file

.github/workflows/e2e-action-pull-request.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
git checkout -b test/e2e-pr-basic-${{ github.run_id }}
7676
echo "E2E PR basic test $(date -u)" > e2e-pr-test.txt
7777
git add e2e-pr-test.txt
78-
git commit -m "[E2E] Basic PR test"
78+
git commit -m "test(pull-request): basic PR test"
7979
git push origin test/e2e-pr-basic-${{ github.run_id }}
8080
8181
- name: Create pull request
@@ -84,7 +84,7 @@ jobs:
8484
uses: devops-infra/action-pull-request@v1
8585
with:
8686
github_token: ${{ secrets.GITHUB_TOKEN }}
87-
title: "[E2E] Basic pull request test - safe to close"
87+
title: "test(pull-request): basic pull request test - safe to close"
8888
body: "Automated end-to-end test pull request. Will be closed automatically."
8989
target_branch: master
9090

@@ -135,7 +135,7 @@ jobs:
135135
git checkout -b test/e2e-pr-custom-${{ github.run_id }}
136136
echo "E2E PR custom title/body test $(date -u)" > e2e-pr-custom-test.txt
137137
git add e2e-pr-custom-test.txt
138-
git commit -m "[E2E] Custom title/body PR test"
138+
git commit -m "test(pull-request): custom title/body PR test"
139139
git push origin test/e2e-pr-custom-${{ github.run_id }}
140140
141141
- name: Create pull request with custom title and body
@@ -144,7 +144,7 @@ jobs:
144144
uses: devops-infra/action-pull-request@v1
145145
with:
146146
github_token: ${{ secrets.GITHUB_TOKEN }}
147-
title: "[E2E] Custom title test - safe to close"
147+
title: "test(pull-request): custom title test - safe to close"
148148
body: |
149149
Automated end-to-end test.
150150
Testing custom title and body fields.
@@ -201,7 +201,7 @@ jobs:
201201
git checkout -b test/e2e-pr-repo-path-${{ github.run_id }}
202202
echo "E2E PR repository_path test $(date -u)" > e2e-pr-path-test.txt
203203
git add e2e-pr-path-test.txt
204-
git commit -m "[E2E] PR repository_path test"
204+
git commit -m "test(pull-request): repository path PR test"
205205
git push origin test/e2e-pr-repo-path-${{ github.run_id }}
206206
207207
- name: Create pull request with repository and repository_path
@@ -212,7 +212,7 @@ jobs:
212212
github_token: ${{ secrets.GITHUB_TOKEN }}
213213
repository: ${{ github.repository }}
214214
repository_path: work/repo
215-
title: "[E2E] Repository path PR test - safe to close"
215+
title: "test(pull-request): repository path PR test - safe to close"
216216
body: "Automated end-to-end test for repository_path input."
217217
target_branch: master
218218

@@ -264,7 +264,7 @@ jobs:
264264
git checkout -b test/e2e-pr-draft-${{ github.run_id }}
265265
echo "E2E draft PR test $(date -u)" > e2e-pr-draft-test.txt
266266
git add e2e-pr-draft-test.txt
267-
git commit -m "[E2E] Draft PR with diff test"
267+
git commit -m "test(pull-request): draft PR with diff test"
268268
git push origin test/e2e-pr-draft-${{ github.run_id }}
269269
270270
- name: Create draft pull request with diff injection
@@ -273,7 +273,7 @@ jobs:
273273
uses: devops-infra/action-pull-request@v1
274274
with:
275275
github_token: ${{ secrets.GITHUB_TOKEN }}
276-
title: "[E2E] Draft PR with diff - safe to close"
276+
title: "test(pull-request): draft PR with diff - safe to close"
277277
body: |
278278
Automated end-to-end test.
279279
<!-- Diff commits - START -->

0 commit comments

Comments
 (0)