Skip to content

Cura 13207 get diff#54

Open
HellAholic wants to merge 6 commits into
mainfrom
CURA-13207_get_diff
Open

Cura 13207 get diff#54
HellAholic wants to merge 6 commits into
mainfrom
CURA-13207_get_diff

Conversation

@HellAholic

@HellAholic HellAholic commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces a new Action (get-diff) for detecting changed files in workflows. It updates the linting workflows to use this new action, improving consistency and maintainability. The main changes include adding the new action, updating workflow steps to use its outputs, and making minor improvements to workflow logic. It utilizes a public action and formats the output for consumption.

Introduction of custom get-diff action:

  • Added .github/actions/get-diff/action.yml, a composite action that detects changed files based on glob patterns, supports inclusion of deleted files, and exposes outputs for downstream workflow steps.
  • Workflow updates to use new action
  • Improvements to workflow logic and output handling

bugfix

  • Updated the version reference for platisd/clang-tidy-pr-comments in the lint-tidier (missing v)

CURA-13207

We are using the get diff in different workflows and the output of the new reusable workflow needs to be prepared for consumption. This also switches the approach from github env to github output.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 introduces a first-party composite GitHub Action (.github/actions/get-diff) to standardize how reusable workflows in this repo determine which files changed, and updates the existing linting workflows to use the new action outputs instead of the previous third-party diff action.

Changes:

  • Added a new composite action .github/actions/get-diff that filters changed files by glob patterns and exports them as step outputs.
  • Updated lint-tidier and lint-formatter reusable workflows to consume the new action outputs (files, files_quoted) and simplified workflow logic accordingly.
  • Fixed the platisd/clang-tidy-pr-comments action reference to include the v tag prefix.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/actions/get-diff/action.yml Adds the new composite action for changed-file detection and exporting outputs.
.github/workflows/lint-tidier.yml Switches clang-tidy workflow to use the new get-diff action and fixes action version tag.
.github/workflows/lint-formatter.yml Switches formatting workflow to use the new get-diff outputs and removes the conversion step.

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

Comment thread .github/actions/get-diff/action.yml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread .github/actions/get-diff/action.yml Outdated
Comment thread .github/actions/get-diff/action.yml
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.

2 participants