Skip to content

ci: Use github-script to determine workflow context#131

Merged
ReenigneArcher merged 1 commit into
masterfrom
ci/Use-github-script-to-determine-workflow-context
May 16, 2026
Merged

ci: Use github-script to determine workflow context#131
ReenigneArcher merged 1 commit into
masterfrom
ci/Use-github-script-to-determine-workflow-context

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

Replace the previous shell-based "Determine Context" step with actions/github-script to robustly determine workflow_run context. The new script validates PR numbers, attempts to resolve missing pull request IDs by querying the GitHub API (matching by head owner:branch, head SHA or base repo), and sets outputs (event_name, head_branch, is_pr, pr_number, is_master_push) with improved logging and error handling. Also pins the github-script and checkout action SHAs for reproducibility.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

Replace the previous shell-based "Determine Context" step with actions/github-script to robustly determine workflow_run context. The new script validates PR numbers, attempts to resolve missing pull request IDs by querying the GitHub API (matching by head owner:branch, head SHA or base repo), and sets outputs (event_name, head_branch, is_pr, pr_number, is_master_push) with improved logging and error handling. Also pins the github-script and checkout action SHAs for reproducibility.
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented May 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.75%. Comparing base (ce3806b) to head (c4d7f5f).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #131      +/-   ##
==========================================
+ Coverage   63.51%   63.75%   +0.23%     
==========================================
  Files           4        4              
  Lines         858      858              
  Branches      313      313              
==========================================
+ Hits          545      547       +2     
+ Misses        210      205       -5     
- Partials      103      106       +3     
Flag Coverage Δ
Linux-qt5 57.11% <ø> (ø)
Linux-qt6 57.11% <ø> (ø)
Windows 70.67% <ø> (ø)
macOS 59.29% <ø> (+1.76%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce3806b...c4d7f5f. Read the comment docs.

@github-actions

Copy link
Copy Markdown
Last Updated 2026-05-16 14:57:53 UTC
Source Run CI Run #580
Commit c4d7f5f8e86d454713d964125767a6cdffc83d7e

Screenshot Comparison

PR #131 screenshots vs screenshots baseline.

Matrix: Linux-qt5

Image Baseline PR
tray_icon_initial.png
tray_icon_svg.png
tray_icon_themed.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_left_click.png
tray_menu_shown.png
tray_notification_displayed.png
tray_notification_themed_icon.png

Matrix: Linux-qt6

Image Baseline PR
tray_icon_initial.png
tray_icon_svg.png
tray_icon_themed.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_left_click.png
tray_menu_shown.png
tray_notification_displayed.png
tray_notification_themed_icon.png

Matrix: Windows

Image Baseline PR
tray_icon_initial.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_shown.png
tray_notification_displayed.png

Matrix: macOS

Image Baseline PR
tray_icon_initial.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_shown.png
tray_notification_displayed.png

@ReenigneArcher ReenigneArcher merged commit 4befc16 into master May 16, 2026
19 checks passed
@ReenigneArcher ReenigneArcher deleted the ci/Use-github-script-to-determine-workflow-context branch May 16, 2026 14:58
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.

1 participant