close
Skip to content

CompletePipeline: publish Pages only from branches the environment admits - #249

Open
pytooling-s-claude-bot[bot] wants to merge 1 commit into
devfrom
claude/pages-branch-guard
Open

CompletePipeline: publish Pages only from branches the environment admits#249
pytooling-s-claude-bot[bot] wants to merge 1 commit into
devfrom
claude/pages-branch-guard

Conversation

@pytooling-s-claude-bot

Copy link
Copy Markdown

Bug Fixes

  • CompletePipeline.yml publishes to GitHub Pages only from branches the github-pages environment actually
    admits - the repository's default branch and dev.

    The environment's protection rules reject a deployment from any other branch before a runner is assigned:
    the job fails after one second, with no step recorded, and the annotation reads

    Branch "claude/dependency-updates" is not allowed to deploy to github-pages due to environment protection rules.
    

    So every feature-branch pipeline shows a red job that has nothing to do with its changes. That is how a real
    failure gets overlooked.

    pyTooling fixed this in its own pipeline (pyTooling#297) with
    a per-job if:. Repositories that call CompletePipeline.yml cannot do the same - they hand over the whole
    pipeline and have no job to guard - so the condition belongs here, where it reaches every consumer at once.

Others

  • ⚠️ This changes the behaviour of every repository calling CompletePipeline.yml, so it wants a release of
    Actions before consumers see it, and a deliberate look at any repository that publishes Pages from a branch
    other than its default or dev - the guard would stop that. I know of none in this workspace.

    The condition is written against github.event.repository.default_branch rather than a hard-coded main, so
    repositories on master are covered too.


Related Issues and Pull-Requests

  • Recorded for pyVHDLModel as Every feature-branch pipeline goes red on PublishToGitHubPages; pyGHDL carries
    the same symptom.

…mits

The 'github-pages' environment admits the default branch and 'dev'
only, so the deploy job on any other branch is failed by GitHub before
a runner is assigned - one second, no steps, no log. Every
feature-branch pipeline therefore shows a red job that has nothing to
do with its changes, which is how a real failure gets overlooked.

pyTooling fixed this in its own pipeline (pyTooling#297) by guarding
the job. Repositories calling 'CompletePipeline.yml' cannot do that -
they have no per-job 'if:' to add - so the guard belongs here, where it
reaches every consumer at once.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@codacy-production

codacy-production Bot commented Aug 21, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage ∅ diff coverage · +0.00% coverage variation

Metric Results
Coverage variation +0.00% coverage variation
Diff coverage diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (3304003) Report Missing Report Missing Report Missing
Head commit (7afa58c) 45 (+0) 41 (+0) 91.11% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#249) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.22%. Comparing base (3304003) to head (7afa58c).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #249   +/-   ##
=======================================
  Coverage   82.22%   82.22%           
=======================================
  Files           1        1           
  Lines          45       45           
  Branches        9        9           
=======================================
  Hits           37       37           
  Misses          4        4           
  Partials        4        4           
Flag Coverage Δ
unittests 82.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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