Skip to content

Commit 2933c18

Browse files
Update GitHub Actions to use latest github-script version
Upgraded to `actions/github-script@v7.0.1` and updated the method call to `github.rest.issues.createComment` for compatibility with the newer version. This ensures better performance and alignment with the latest API changes.
1 parent c5f124d commit 2933c18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-welcome.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525

2626
- name: Comment on PR (if not the maintainer)
2727
#if: env.AUTHOR != 'HichemTab-tech'
28-
uses: actions/github-script@v6
28+
uses: actions/github-script@v7.0.1
2929
with:
3030
github-token: ${{secrets.GITHUB_TOKEN}}
3131
script: |
32-
github.issues.createComment({
32+
github.rest.issues.createComment({
3333
issue_number: context.issue.number,
3434
owner: context.repo.owner,
3535
repo: context.repo.repo,

0 commit comments

Comments
 (0)