Update recompile workflow no-change gate to include untracked generated files#1285
Open
Copilot wants to merge 5 commits into
Open
Update recompile workflow no-change gate to include untracked generated files#1285Copilot wants to merge 5 commits into
Copilot wants to merge 5 commits into
Conversation
Agent-Logs-Url: https://github.com/plengauer/Philbot/sessions/d72d08d8-64f7-437c-836b-9f0b34528946 Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Inspect and update workflows in plengauer repositories
Update recompile workflow no-change gate to include untracked generated files
May 10, 2026
plengauer
approved these changes
May 10, 2026
There was a problem hiding this comment.
Pull request overview
Updates the “no changes” early-exit gate in the agentic workflow recompilation GitHub Action so that newly generated untracked workflow files are treated as changes (preventing false “no changes” exits after gh aw compile).
Changes:
- Replace tracked-diff-only change detection (
git diff --quiet HEAD) with a clean-working-tree check based ongit status --porcelain.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
| on: | ||
| workflow_run: | ||
| workflows: [.github/workflows/copilot-setup-steps.yml, Automatic Rerun, Automatic Version Bump, CodeQL, Copilot cloud agent, Copilot code review, Copilot coding agent, Greetings, Publish Debian Baremetal, Publish Debian Configuration, Publish Debian Containerized, Publish Debian Recommended, Publish Debian Root, Publish Image Backend, Publish Image Collector, Publish Image Discord Gateway 2 HTTP, Publish Image Discord Gateway 2 HTTP Master, Publish Image Scheduler, Publish Image Voice, Publish Package Backend, Publish Package Discord Gateway 2 HTTP, Publish Package Scheduler, Publish Package Voice, Recompile Agentic Workflows, Renovate, Test Integration, Update Package Repository] | ||
| workflows: [.github/workflows/copilot-setup-steps.yml, Automatic Rerun, Automatic Version Bump, CodeQL, Copilot cloud agent, Copilot code review, Copilot coding agent, Dependency Graph, Greetings, Publish Debian Baremetal, Publish Debian Configuration, Publish Debian Containerized, Publish Debian Recommended, Publish Debian Root, Publish Image Backend, Publish Image Collector, Publish Image Discord Gateway 2 HTTP, Publish Image Discord Gateway 2 HTTP Master, Publish Image Scheduler, Publish Image Voice, Publish Package Backend, Publish Package Discord Gateway 2 HTTP, Publish Package Scheduler, Publish Package Voice, Recompile Agentic Workflows, Renovate, Test Integration, Update Package Repository] |
| @@ -0,0 +1 @@ | |||
| .github/workflows/*.lock.yml linguist-generated=true merge=ours No newline at end of file | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This updates the agentic workflow recompilation gate to match the behavior introduced in
plengauer/plengauer.github.io#139: no-change detection now considers untracked/new files, not just tracked diffs.Scope is limited to the existing
recompile_agentic_workflows.ymlworkflow in this repository.Workflow gate logic
.github/workflows/recompile_agentic_workflows.ymlfrom tracked-diff-only detection to porcelain status detection.Behavior impact
gh aw compileproduces newly added workflow files.Original prompt
Inspect and update all listed repositories owned by plengauer that contain
.github/workflows/recompile_agentic_workflows.ymland still use the old early-exit conditionif git diff --quiet HEAD; then exit 0; fiin that workflow.Reference change: the behavior merged in
plengauer/plengauer.github.io#139changed the no-change gate to treat newly added/untracked generated files as changes.Required workflow change:
Apply this exact logic only in repositories where the old condition is still present. Do not change repositories that already use the new porcelain-based check. Do not modify repositories that do not contain the workflow.
Repositories to inspect from the provided list:
From prior inspection in this conversation:
plengauer/plengauer.github.ioalready has the fix via PR Update plengauer/opentelemetry-bash action to v4.10.1 #139 and should be left unchanged.git diff --quiet HEADcondition, so they likely need the update:plengauer/Thothalready uses the new porcelain check and should be left unchanged.plengauer/abom-http,plengauer/yourtube, andplengauer/Thoth-testdo not appear to contain this workflow and should be left unchanged.plengauer/lgtmcould not be inspected from prior tool results; if accessible, inspect it too and apply the same rule.Open pull requests for every repository that needs this change. Use concise PR titles indicating that the recompile workflow should include untracked/new files in the no-change gate.
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Check the changes here. A workflow to recompile agentic workflows exists in almost any of my repositories. Iterate through all (dont forget any) of the repositories owned by me, check if such a workflow exists, check if the changes there @plengauer/plengauer.github.io/pull/139 shall be made in the same manner here, and if so, open a pull request
Assistant: I can do this, but I’m missing one thing I need before I can safely proceed: the full list of repositories owned by
plengauer.I was able to inspect the reference PR:
plengauer/plengauer.github.io#139git diff --quiet HEADif [ -z "$(git status --porcelain)" ]; then exit 0; fiWhat I cannot reliably do with the available tools right now is enumerate all repositories owned by
plengauer; the GitHub API endpoint for listing user repos is not available in this environment. Since you explicitly said “don’t forget any,” I shouldn’t guess or proceed with a partial set.If you send me either:
plengauer,then I can:
recompile_agentic_workflowsworkflow,Reference PR checked:
If you want, paste the repo list and I’ll start checking them one by one immed...
This pull request was created from Copilot chat.