Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request standardizes GitHub event action access by consistently using github.context.payload.action instead of the inconsistent mix of github.context.action and github.context.payload.action that was previously used throughout the codebase.
- Updated main logic to use
github.context.payload.actionfor event action checks - Updated test setup and assertions to use the standardized payload property
- Moved the action property from the root context to the payload object in fixtures
Reviewed Changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/main.ts | Updated event action check to use payload.action |
| tests/main.test.ts | Updated test setup and assertions to use payload.action |
| fixtures/@actions/github.ts | Moved action property from root context to payload object |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
This pull request standardizes how the GitHub event action is accessed throughout the codebase. Previously, the code sometimes used
github.context.actionand other times usedgithub.context.payload.action, which could lead to inconsistencies and bugs. The updates ensure that all logic and tests consistently referencegithub.context.payload.action.