Repository navigation
ci: notify Pubgrade only once registered - #157
Conversation
PUBGRADE_URL is an organization variable, so it alone gates nothing: the release job Notify Pubgrade now also needs the repository variable PUBGRADE_REPOSITORY_ID, as in tesk-api and drs-filer (D-516). CI's Lint job pins the condition with yq. The development guide says where each setting goes, and the example in "Notify Pubgrade from CI" uses the same condition, so that callers copy the two-variable gate. Closes #156 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewer's GuideConfigurationGate Pubgrade notifications on both the organization URL and the repository registration ID, and have CI enforce that the release workflow keeps the same condition.
DocumentationExplain the new registration gate, setting locations, and release-environment behavior for Pubgrade notifications.
Update the caller example and guidance to use both variables, especially when an environment approval is required.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
📖 2 files modified Preview · build overview · Pubgrade · built Dec. 2, 2026, 12:46 a.m. UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #157 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 19 19
Lines 1772 1772
=========================================
Hits 1772 1772 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Linked issuesChecked at commit f1b9349 #156 ci: notify Pubgrade only once registered · 4 of 5 met · 1 to check by hand
|
Summary
Notify Pubgraderuns only when bothvars.PUBGRADE_URL(organization variable) and the repository variablevars.PUBGRADE_REPOSITORY_IDare set: the same expression as ci: notify Pubgrade only once registered tesk-api#242 and ci: notify Pubgrade of released images drs-filer#141.PUBGRADE_URLalone gates nothing, because it is an organization variable.Lintjob has a new step,Check Pubgrade condition, that pins this condition withyq(as in tesk-api#242).docs/development.mdsays where each setting goes, thatPUBGRADE_REPOSITORY_IDswitches the job on, and that an identifier set only in thereleaseenvironment now leaves the job skipped (up to 0.3.1,PUBGRADE_URLalone switched it on).docs/usage.md) uses the same condition, and says to put it on the job when the job needs an environment approval, so that other repositories copy the two-variable gate.Pubgrade is registered at its own instance:
PUBGRADE_REPOSITORY_IDis a repository variable (gh variable list), so releases keep notifying Pubgrade.Closes #156
Verification
The body of the new lint step fails on the
release.ymloforigin/devand passes on this branch (run locally withyqv4.53.6).pre-commit run --all-filespasses; actionlint ran without shellcheck (not installed locally), CI's Lint job runs it with shellcheck.mkdocs build --strictpasses (with theexternal/pubgrade-sidecarsubmodule).No Python code changed; the test suites run in CI.
Full review lane (release workflow change): neither reviewer found a high or medium finding. Low findings fixed: rewrapped comment and docs lines, and the Lint job descriptions in
ci.ymlnow name the new check.CI on ci: notify Pubgrade only once registered #157: all checks pass (CI passed), including the new Check Pubgrade condition step in Lint.
Declined review findings
docs/releases/0.3.1.mdstill describes the one-variable gate: 0.3.1 is released and those notes describe that release. The change goes into the next release's curated notes.🤖 Generated with Claude Code
Summary by Sourcery
Gate Pubgrade release notifications on repository registration as well as the configured service URL.
Bug Fixes:
CI:
Documentation: