feat(input): support additional triggers#732
Open
avivkeller wants to merge 3 commits intogithub:mainfrom
Open
Conversation
There was a problem hiding this comment.
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_requestandpull_request_targetevents - Adds a new
issue-numberinput 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.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR lets this action support additional triggers, such as
workflow_runby supporting aissue-numberinput