mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-14 12:31:14 +00:00
Add output definitions
This commit is contained in:
parent
7748c8f507
commit
17db3d5bd2
2 changed files with 6 additions and 1 deletions
|
|
@ -78,6 +78,11 @@ inputs:
|
|||
description: "The GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ github.token }}."
|
||||
default: "${{ github.token }}"
|
||||
required: false
|
||||
outputs:
|
||||
previous_comment_id:
|
||||
description: "ID of previous comment, if found"
|
||||
created_comment_id:
|
||||
description: "ID of newly created comment, if any"
|
||||
runs:
|
||||
using: "node16"
|
||||
main: "dist/index.js"
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ export async function createComment(
|
|||
if (!body && !previousBody)
|
||||
return core.warning("Comment body cannot be blank")
|
||||
|
||||
await octokit.rest.issues.createComment({
|
||||
let x = await octokit.rest.issues.createComment({
|
||||
...repo,
|
||||
issue_number,
|
||||
body: previousBody
|
||||
|
|
|
|||
Loading…
Reference in a new issue