mirror of
https://github.com/actions/github-script.git
synced 2026-02-08 20:17:24 +00:00
Use fields on context.payload
This commit is contained in:
parent
5bc9a17b5e
commit
966982d0f8
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.issue,
|
issue_number: context.payload.issue.number,
|
||||||
owner: context.owner,
|
owner: context.payload.repository.owner.login,
|
||||||
repo: context.repo,
|
repo: context.payload.repository.name,
|
||||||
body: '👋 Thanks for reporting!'
|
body: '👋 Thanks for reporting!'
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue