Skip to content

Commit f5031e1

Browse files
committed
Making a test - improve GH job
TBD
1 parent 84c46b6 commit f5031e1

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/commit-message-validator.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,31 @@ name: Check if commit message body is not too short
33
on:
44
pull_request:
55
types: [opened, synchronize, edited, reopened]
6+
pull_request_target:
7+
types: [opened, synchronize, edited, reopened]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
612

713
jobs:
814
verify-body-length:
915
runs-on: ubuntu-latest
1016
# set as non-voting for now.
1117
continue-on-error: true
1218

13-
permissions:
14-
contents: write
15-
pull-requests: write
16-
repository-projects: write
17-
1819
steps:
20+
- name: Post comment
21+
uses: actions/github-script@v7
22+
with:
23+
script: |
24+
github.rest.issues.createComment({
25+
owner: context.repo.owner,
26+
repo: context.repo.repo,
27+
issue_number: context.issue.number,
28+
body: 'thanks for the PR'
29+
})
30+
1931
- name: Checkout repository
2032
uses: actions/checkout@v4
2133
with:

0 commit comments

Comments
 (0)