Skip to content

Commit

Permalink
add issue_number output
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Aug 17, 2023
1 parent cb1e95c commit 7ec1653
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions __tests__/schemas/action.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ outputs:
description:
type: string
required: true
issue_number:
description:
type: string
required: true
continue:
description:
type: string
Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ outputs:
description: The raw parameters that were passed into the IssueOps command
comment_id:
description: The comment id which triggered this action
issue_number:
description: The issue number which this Action was triggered on
initial_reaction_id:
description: The reaction id for the initial reaction on the trigger comment
actor_handle:
Expand Down
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export async function run() {

// Get variables from the event context
const issue_number = context.payload.issue.number
core.setOutput('issue_number', issue_number)

// check if the comment contains the command
if (!(await triggerCheck(body, command))) {
Expand Down

0 comments on commit 7ec1653

Please sign in to comment.