feat(renovate): tag every PR/issue with 'renovate' forge-wide #7
No reviewers
Labels
No labels
dependencies
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
alex/.profile!7
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/dashboard-labels"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal (per review on #7)
Two problems with the original proposal:
dependencyDashboardLabelsonly tags the Dependency Dashboard issue, and used the label namedependencies. We want all PRs/issues, labelledrenovate.renovate.jsonis per-repo, so it only ever affects.profile. To reach every repo the rule must live in the self-hosted Renovate global config (alex/renovate-bot), not a single repo's file.What changed here
renovate.json:labels→ applied to every PR/issue Renovate creates (this is the option the review actually asked for).dependencyDashboardLabels→ also pinsrenovateto the Dependency Dashboard issue specifically (the dashboard is an issue, andlabelsis PR-centric, so this covers it). It silently no-ops on repos where the dashboard isn't enabled, so it's safe to ship forge-wide.dependencyDashboard: true— forcing a dashboard onto every repo is a separate decision and was out of scope for "label everything".renovatelabel was created on this repo via the API (id 2,#63a0e4).How this becomes forge-wide (the missing piece)
This
renovate.jsonis deliberately written as a Renovate preset. The one-line wiring that makes it apply to all repos lives in the self-hosted bot config (alex/renovate-bot), which this token can't touch:local>alex/.profileresolves to this repo'srenovate.json, so every repository the bot processes inheritslabels/dependencyDashboardLabels. The policy stays version-controlled in git here; only theextendsreference lives server-side.Prerequisite that can't ship in a PR
Renovate applies labels but cannot create them — the option no-ops wherever
renovatedoesn't exist. The label exists on.profilealready; for the other repos (pi-coding-agent-action,pi-shared,opengist-viewer,renovate-bot,base-template) it needs creating once each (UI → Issue Labels, or a quick API loop). The now-unuseddependencieslabel on.profilecan be deleted.Refs #6.
/pi what I want is renovate to apply the renovate label to every issue/pr it creates in every repository, the proposal seems to affect only this repo
feat(renovate): label the Dependency Dashboard issueto feat(renovate): tag every PR/issue with 'renovate' forge-wideLet me examine the actual PR branch content and the environment.I have access to the Forgejo API. Let me probe the environment to understand the forge scope and current labels.There's an
alex/renovate-botrepo — that's likely where the self-hosted Renovate global config lives. Let me inspect it.Confirmed: the workflow token is scoped to.profileonly, so the global Renovate config (which lives inalex/renovate-bot) is the real lever for forge-wide behavior — a per-reporenovate.jsoncan't do that on its own. Let me make the changes: fix the option/label, create therenovatelabel here, and restructure.profile/renovate.jsonas a forge-wide preset.Label created (id 2) andrenovate.jsonrewritten. Now commit and push to the PR branch.Now update the PR title and description to reflect the corrected direction.Pusheda4129b4to the PR. Summary of what I changed and what's still needed:What was wrong with the original proposal
dependencyDashboardLabelsonly tags the Dependency Dashboard issue, and used the labeldependencies. You want every PR/issue taggedrenovate.renovate.jsononly ever affects that one repo. To reach all repos, the rule must come from the self-hosted Renovate global config, not a per-repo file.Changed in this PR
renovate.jsonnow uses the right option and label name, written as a reusable preset:labels→ every PR/issue Renovate creates (what you actually asked for).dependencyDashboardLabels→ also covers the dashboard issue specifically (it's an issue, andlabelsis PR-centric); it no-ops on repos without a dashboard, so it's safe forge-wide.dependencyDashboard: true(forcing a dashboard onto every repo is a separate decision and out of scope here).renovatelabel on.profilevia the API (id 2,#63a0e4).The missing piece — forge-wide wiring (I can't reach it from here)
This workflow token is scoped to
.profile, so it can't editalex/renovate-bot, where your global Renovate config lives. Add one line there so every repo inherits this preset:local>alex/.profilereads this repo'srenovate.json, so the policy stays version-controlled in git while applying everywhere. (If you'd rather skip the preset, you can instead putlabels/dependencyDashboardLabelsstraight in thatconfig.js— same effect, just not in git.)One prerequisite
Renovate applies labels but can't create them — the option silently no-ops wherever
renovatedoesn't exist. It's on.profilenow; it still needs creating once on each other repo (pi-coding-agent-action,pi-shared,opengist-viewer,renovate-bot,base-template). The unuseddependencieslabel on.profilecan be deleted.Refs #6.
View action run | Model: zai/glm-5.2 (thinking: xhigh) | Time: 7m 44s | Tokens: 182.5K | Pi SDK v0.80.3 | Action v2.25.0-develop (develop @ 0e171ae)
Pull request closed