Skip to content

[Actions] Make sure new files will not be missed in the diff#277

Merged
VeithMetro merged 1 commit into
masterfrom
development/actions-diff-new-files
Jun 9, 2026
Merged

[Actions] Make sure new files will not be missed in the diff#277
VeithMetro merged 1 commit into
masterfrom
development/actions-diff-new-files

Conversation

@VeithMetro

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 9, 2026 08:17
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

LuaGenerator Results

View Results

Changes detected.

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 updates several generator GitHub Actions workflows to produce directory diffs using diff -rN -U5 (instead of git diff --no-index) and to stage baselines in locally-named directories so the resulting diff headers are cleaner and include newly added files.

Changes:

  • Replace git diff --no-index with diff -rN -U5 to include full patches for files that exist only on the generated side.
  • Copy the gh-pages baseline into a local baseline directory (or create an empty baseline dir) before diffing, to avoid absolute paths in diff headers.
  • Apply the same diffing approach across ProxyStubGenerator, LuaGenerator, JsonGenerator, and PluginSkeletonGenerator workflows.

Reviewed changes

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

File Description
.github/workflows/ProxyStubGenerator.yml Switch directory diff generation to diff -rN -U5 with a locally staged baseline directory.
.github/workflows/PluginSkeletonGenerator.yml Switch per-variant diffs to diff -rN -U5 after copying baseline locally (per variant).
.github/workflows/LuaGenerator.yml Switch directory diff generation to diff -rN -U5 with a locally staged baseline directory.
.github/workflows/JsonGenerator.yml Switch directory diff generation to diff -rN -U5 with a locally staged baseline directory.

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

Comment thread .github/workflows/PluginSkeletonGenerator.yml
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

JsonGenerator Results

View Results

Changes detected.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

ProxyStubGenerator Results

View Results

Changes detected.

@sebaszm sebaszm self-requested a review June 9, 2026 08:50
@VeithMetro VeithMetro merged commit 784abb2 into master Jun 9, 2026
148 of 153 checks passed
@VeithMetro VeithMetro deleted the development/actions-diff-new-files branch June 9, 2026 10:29
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants