mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 16:16:21 +00:00
Use fields on context.payload
This commit is contained in:
@@ -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!'
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user