mirror of
https://github.com/actions/github-script.git
synced 2026-02-07 19:47:26 +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}}
|
||||
script: |
|
||||
github.issues.createComment({
|
||||
issue_number: context.payload.issue.number,
|
||||
owner: context.payload.repository.owner.login,
|
||||
repo: context.payload.repository.name,
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: '👋 Thanks for reporting!'
|
||||
})
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue