Skip to content

Conversation

@avivkeller
Copy link

This PR lets this action support additional triggers, such as workflow_run by supporting a issue-number input

@avivkeller avivkeller requested a review from a team as a code owner October 28, 2025 20:10
@avivkeller avivkeller requested review from bteng22 and Copilot October 28, 2025 20:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modifies the action to allow it to be triggered by non-pull_request events by making the issue number configurable via an input parameter instead of deriving it from the event context.

  • Removes the event type validation that restricted the action to only pull_request and pull_request_target events
  • Adds a new issue-number input parameter with a default value that attempts to extract the issue number from various event types
  • Updates the code to read the issue number from the input instead of the event context

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 3 comments.

File Description
src/main.ts Removes event type check and extracts issue number from input instead of context
dist/index.js Compiled JavaScript output reflecting the TypeScript changes
action.yml Adds new issue-number input with default value from event context
README.md Documents the new issue-number input parameter in the inputs table

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

avivkeller and others added 2 commits October 28, 2025 16:13
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant