Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jan 16, 2026

This release updates the logic for determining pull request states in the scripts/main.ps1 script, making the conditions for open, updated, abandoned, and merged pull requests more precise and adding improved logging for GitHub event inputs.

Improvements to PR state detection:

  • Refined the $isOpenOrUpdatedPR condition to trigger only for 'opened', 'reopened', or 'synchronize' actions, making it more accurate than the previous logic.
  • Updated the $isMergedPR condition to require both the 'closed' action and that the PR is marked as merged, preventing false positives.

Logging enhancements:

  • Added output of relevant GitHub event environment variables at the start of the job run conditions calculation for easier debugging and traceability.

Copilot AI review requested due to automatic review settings January 16, 2026 22:57
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 improves diagnostic logging and refines pull request event detection logic in the main PowerShell script. The changes ensure that only specific PR action types are recognized as "open or updated" PRs and add diagnostic output for GitHub event context.

Changes:

  • Added logging of GitHub event input environment variables (event name, action, and PR merged status)
  • Changed isOpenOrUpdatedPR condition from excluding 'closed' to explicitly listing valid actions ('opened', 'reopened', 'synchronize')
  • Added explicit 'closed' action check to isMergedPR condition for consistency

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

@MariusStorhaug MariusStorhaug changed the title Refine PR event conditions and log inputs Fix repo linting on merge to main Jan 17, 2026
@MariusStorhaug MariusStorhaug changed the title Fix repo linting on merge to main patch: Fix repo linting on merge to main Jan 17, 2026
@MariusStorhaug MariusStorhaug changed the title patch: Fix repo linting on merge to main 🩹[Patch]: Fix repo linting on merge to main Jan 17, 2026
Copilot AI review requested due to automatic review settings January 17, 2026 01:11
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


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

@MariusStorhaug MariusStorhaug merged commit 9c811d0 into main Jan 17, 2026
21 checks passed
@MariusStorhaug MariusStorhaug deleted the fix_linting branch January 17, 2026 01:13
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.

🪲[Bug]: Repo linting runs on merge to main and fails (missing merge ref)

2 participants