Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jan 17, 2026

  • Handle Action/PullRequest casing in event payloads when determining PR action and merged status.

Fixes

Testing

  • Not run (logic-only change).

Copilot AI review requested due to automatic review settings January 17, 2026 16:38
Copy link
Contributor

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 addresses case-sensitivity issues in GitHub event payload parsing by adding support for PascalCase property names (Action and PullRequest) alongside the existing lowercase variants (action and pull_request).

Changes:

  • Added fallback checks for PascalCase Action property when determining pull request action
  • Added fallback checks for PascalCase PullRequest property and extracted it to a dedicated variable for cleaner code
  • Refactored the merged status check to use the extracted pullRequest variable

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

@MariusStorhaug MariusStorhaug merged commit 5be8144 into main Jan 17, 2026
15 checks passed
@MariusStorhaug MariusStorhaug deleted the fix-event-payload-casing branch January 17, 2026 17:05
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.

Handle PullRequest/Action casing in event payloads to detect merged PRs

2 participants