Skip to content

fix: Fix nolyfill for renovate#37537

Merged
silverwind merged 6 commits into
go-gitea:mainfrom
silverwind:renovate-nolyfill
May 4, 2026
Merged

fix: Fix nolyfill for renovate#37537
silverwind merged 6 commits into
go-gitea:mainfrom
silverwind:renovate-nolyfill

Conversation

@silverwind
Copy link
Copy Markdown
Member

@silverwind silverwind commented May 4, 2026

Run nolyfill as a renovate post-upgrade step alongside make svg, so npm dep bumps keep pnpm.overrides in sync.


This PR was written with the help of Claude Opus 4.7

Add a `nolyfill` Makefile target that applies `pnpm exec nolyfill install`
followed by `pnpm install` to relock, and wire it into renovate's npm
postUpgradeTasks before `make svg`. Without this, renovate-generated npm
upgrades could leave pnpm overrides out of sync until the next manual
`make update-js`.

Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 4, 2026
@silverwind silverwind added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label May 4, 2026
silverwind and others added 2 commits May 4, 2026 21:24
Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
…ased

Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
@silverwind silverwind changed the title Run nolyfill as renovate post-upgrade step Fix nolyfill for renovate, tighten urfave/cli pin May 4, 2026
@silverwind silverwind requested a review from Copilot May 4, 2026 20:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates dependency automation to keep frontend polyfill overrides in sync after npm upgrades, and constrains a problematic Go dependency version range to avoid known CLI regressions.

Changes:

  • Tighten Renovate’s github.com/urfave/cli/v3 allowed version range to <=3.4.1.
  • Run nolyfill as part of Renovate’s npm postUpgradeTasks alongside make svg, and expand file filters to include package.json + pnpm-lock.yaml.
  • Add a dedicated nolyfill Make target and invoke it from update-js.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
renovate.json5 Adjusts Renovate rules to pin urfave/cli and run make svg nolyfill for npm updates while allowing lock/package changes to be committed.
Makefile Introduces a nolyfill target and integrates it into update-js to keep pnpm.overrides/lockfile consistent after JS dependency updates.

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

Comment thread Makefile
Comment thread Makefile Outdated
Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
Comment thread renovate.json5 Outdated
Signed-off-by: silverwind <me@silverwind.io>
@silverwind silverwind changed the title Fix nolyfill for renovate, tighten urfave/cli pin fix: Fix nolyfill for renovate, tighten urfave/cli pin May 4, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 4, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 4, 2026
@silverwind silverwind changed the title fix: Fix nolyfill for renovate, tighten urfave/cli pin fix: Fix nolyfill for renovate May 4, 2026
@silverwind silverwind enabled auto-merge (squash) May 4, 2026 21:12
@silverwind silverwind added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label May 4, 2026
@silverwind silverwind merged commit 762154c into go-gitea:main May 4, 2026
22 checks passed
@silverwind silverwind deleted the renovate-nolyfill branch May 4, 2026 21:39
@GiteaBot GiteaBot added this to the 1.27.0 milestone May 4, 2026
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label May 4, 2026
silverwind added a commit to McMichalK/gitea that referenced this pull request May 5, 2026
* origin/main: (49 commits)
  ci: lint PR titles with commitlint (go-gitea#37498)
  Make ServeSetHeaders default to download attachment if filename exists (go-gitea#37552)
  fix(actions): validate workflow param to prevent 500 error (go-gitea#37546)
  Fix various problems (go-gitea#37547)
  docs: fix 4 typos in CHANGELOG.md (go-gitea#37549)
  [skip ci] Updated translations via Crowdin
  chore(deps): update action dependencies (go-gitea#37540)
  fix: Fix `nolyfill` for renovate (go-gitea#37537)
  Refactor pull request view (7) (go-gitea#37524)
  Update go js py dependencies (go-gitea#37525)
  Don't unblock run-level-concurrency-blocked runs in the resolver (go-gitea#37461)
  Refactor pull request view (6) (go-gitea#37522)
  Refactor pull request view (5) (go-gitea#37517)
  fix: persist mirror repository metadata (go-gitea#37519)
  fix(packages): use file names for generic web downloads (go-gitea#37514)
  fix: merge autodetect can't close other PRs but only the last one when multiple PRs are pushed at once (go-gitea#37512)
  Fix update branch protection order (go-gitea#37508)
  Refactor "flex-list" to "flex-divided-list" (go-gitea#37505)
  fix: redirect early CLI console logger to stderr (go-gitea#37507)
  Fix mCaptcha broken after Vite migration (go-gitea#37492)
  ...

# Conflicts:
#	templates/repo/diff/box.tmpl
zjjhot added a commit to zjjhot/gitea that referenced this pull request May 6, 2026
* main: (36 commits)
  refactor(deps): migrate from `nektos/act` fork to `gitea/runner` (go-gitea#37557)
  ci: lint PR titles with commitlint (go-gitea#37498)
  Make ServeSetHeaders default to download attachment if filename exists (go-gitea#37552)
  fix(actions): validate workflow param to prevent 500 error (go-gitea#37546)
  Fix various problems (go-gitea#37547)
  docs: fix 4 typos in CHANGELOG.md (go-gitea#37549)
  [skip ci] Updated translations via Crowdin
  chore(deps): update action dependencies (go-gitea#37540)
  fix: Fix `nolyfill` for renovate (go-gitea#37537)
  Refactor pull request view (7) (go-gitea#37524)
  Update go js py dependencies (go-gitea#37525)
  Don't unblock run-level-concurrency-blocked runs in the resolver (go-gitea#37461)
  Refactor pull request view (6) (go-gitea#37522)
  Refactor pull request view (5) (go-gitea#37517)
  fix: persist mirror repository metadata (go-gitea#37519)
  fix(packages): use file names for generic web downloads (go-gitea#37514)
  fix: merge autodetect can't close other PRs but only the last one when multiple PRs are pushed at once (go-gitea#37512)
  Fix update branch protection order (go-gitea#37508)
  Refactor "flex-list" to "flex-divided-list" (go-gitea#37505)
  fix: redirect early CLI console logger to stderr (go-gitea#37507)
  ...
silverwind added a commit that referenced this pull request May 6, 2026
…_COMMANDS (#37565)

1. Sync `RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS` with the recent
`renovate.json5` change (#37537) — the npm group now runs `make svg
nolyfill`, but the workflow allowlist still only matched `^make
(tidy|svg)$`, so the post-upgrade task was being rejected.
2. Bump the cron from daily at 01:00 UTC to hourly at :23, matching the
cadence of Mend's hosted Renovate App. Hourly gives sub-hour
responsiveness to dependency-dashboard checkbox interactions and
PR-close reactions; the `:23` offset avoids the GHA scheduler congestion
at multiples of 15.

Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants