Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jan 17, 2026

This release updates the logic for processing GitHub event data in scripts/main.ps1, making the workflow more robust and accurate when handling pull request events. The main improvements focus on how event data is retrieved and how pull request states are determined.

Event Data Handling Improvements:

  • Added logic to retrieve and parse GitHub event data more reliably, including a fallback to read and parse the event file if the primary method fails.
  • Introduced a dedicated logging group to output the full event data for easier debugging.

Pull Request State Calculation Enhancements:

  • Refactored how pull request action and merged status are determined, using parsed event data instead of relying solely on environment variables.
  • Updated the conditions for identifying open/updated, abandoned, and merged pull requests to use the improved event data logic, ensuring more accurate state detection.

Copilot AI review requested due to automatic review settings January 17, 2026 15:30
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 patch improves the reliability of pull request event data handling in GitHub Actions workflows by implementing better fallback mechanisms and converting from string-based to boolean-based comparisons for PR state detection.

Changes:

  • Added robust event data retrieval with fallback to reading and parsing the event file directly
  • Converted pull request state detection from string environment variable comparisons to boolean-based logic using parsed event data
  • Added debug logging to output the full event data for troubleshooting

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

@MariusStorhaug MariusStorhaug merged commit 58d80d7 into main Jan 17, 2026
21 checks passed
@MariusStorhaug MariusStorhaug deleted the fix branch January 17, 2026 15:33
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.

Merged PR does not trigger site or module publish

2 participants