mirror of
https://github.com/actions/github-script.git
synced 2026-02-08 03:57:27 +00:00
Use context.issue and context.repo
This commit is contained in:
parent
966982d0f8
commit
b57a417097
1 changed files with 3 additions and 3 deletions
|
|
@ -38,9 +38,9 @@ jobs:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
github.issues.createComment({
|
github.issues.createComment({
|
||||||
issue_number: context.payload.issue.number,
|
issue_number: context.issue.number,
|
||||||
owner: context.payload.repository.owner.login,
|
owner: context.repo.owner,
|
||||||
repo: context.payload.repository.name,
|
repo: context.repo.repo,
|
||||||
body: '👋 Thanks for reporting!'
|
body: '👋 Thanks for reporting!'
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue