From 0c452e7c40b97c9bee97e1bbbd906ad7a6d48753 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Wed, 11 Nov 2026 21:57:26 +0100 Subject: [PATCH] Sync the shared skills and workflows with the nullean template (v1.5.0) - .claude/skills/pr/SKILL.md - .claude/skills/upgrade-deps/SKILL.md - .claude/skills/releasing/SKILL.md - .github/workflows/pr-labels.yml - .github/workflows/dependabot-automerge.yml - .gitattributes Co-Authored-By: Claude Opus 5.5 --- .claude/skills/pr/SKILL.md | 14 +++++++++++++- .claude/skills/releasing/SKILL.md | 11 +++++++---- .claude/skills/upgrade-deps/SKILL.md | 5 +++-- .gitattributes | 10 ++++++++++ .github/workflows/dependabot-automerge.yml | 13 +++++++++++++ .github/workflows/pr-labels.yml | 2 +- 6 files changed, 47 insertions(+), 8 deletions(-) create mode 100644 .gitattributes create mode 100644 .github/workflows/dependabot-automerge.yml diff --git a/.claude/skills/pr/SKILL.md b/.claude/skills/pr/SKILL.md index 69c031b..df89cc6 100644 --- a/.claude/skills/pr/SKILL.md +++ b/.claude/skills/pr/SKILL.md @@ -157,6 +157,18 @@ EOF )" ``` -### 9. Return the PR URL +### 9. Turn on auto-merge + +Every nullean repository squash-merges and requires the release label, zizmor and CI. Once the PR exists, let it merge +itself when those pass, unless the user asked to hold it: + +```bash +gh pr merge --auto --squash +``` + +Say so in your reply: "auto-merge is on; it squash-merges once the required checks pass". Don't merge it with `--admin` +to skip checks. + +### 10. Return the PR URL Always print the URL so the user can open it directly. diff --git a/.claude/skills/releasing/SKILL.md b/.claude/skills/releasing/SKILL.md index ab503f7..6725eef 100644 --- a/.claude/skills/releasing/SKILL.md +++ b/.claude/skills/releasing/SKILL.md @@ -6,8 +6,10 @@ description: Release this repository. Use when the user asks to release, ship a # Release Releases are never cut from a pushed tag. release-drafter keeps a **draft release** up to date from the labels of -merged pull requests; **publishing that draft** creates the tag and runs `.github/workflows/ci.yml` on it, whose `release` job builds -any binary assets, packs at the tag's version (MinVer) and pushes to nuget.org with trusted publishing. +merged pull requests; **publishing that draft** creates the tag and runs `.github/workflows/ci.yml` on it. Its release +jobs pack at the tag's version (MinVer), push to nuget.org with trusted publishing (always from a job of `ci.yml` +itself, which the nuget.org policy names) and, in repositories that ship binaries, attach them to the release. Which +jobs those are, and anything else this repository does on a release, is in the Releasing section of `AGENTS.md`. ## Steps @@ -42,6 +44,7 @@ any binary assets, packs at the tag's version (MinVer) and pushes to nuget.org w - Re-run the failed jobs (`gh run rerun --failed`). The push uses `--skip-duplicate` and asset uploads use `--clobber`, so a re-run is safe. -- `trusted publishing` errors mean nuget.org's policy no longer names this repo's `ci.yml`. Only the maintainer can - fix that on nuget.org. +- `Token exchange failed (HTTP 401)` at the NuGet login means the push ran outside a job of this repo's `ci.yml` (for + example inside a shared workflow), or nuget.org's policy no longer names `ci.yml`. The first is a workflow fix; only + the maintainer can fix the second, on nuget.org. - Never delete a published tag or release to retry. Fix forward with a patch release. diff --git a/.claude/skills/upgrade-deps/SKILL.md b/.claude/skills/upgrade-deps/SKILL.md index 31df9c6..84a014b 100644 --- a/.claude/skills/upgrade-deps/SKILL.md +++ b/.claude/skills/upgrade-deps/SKILL.md @@ -10,7 +10,7 @@ Versions live in one place each: | What | Where | |---|---| | NuGet packages | `Directory.Packages.props` (Central Package Management); never put `Version=` on a `PackageReference` | -| .NET tools | `.config/dotnet-tools.json` | +| .NET tools | `.config/dotnet-tools.json` (or `dotnet-tools.json` at the root) | | .NET SDK | `global.json` only; mise reads it from there | | other CLI tools | `mise.toml` `[tools]` | | GitHub Actions | pinned by commit SHA with a `# vX.Y.Z` comment; reusable workflows from `nullean/.github` likewise | @@ -25,7 +25,8 @@ Versions live in one place each: 5. Label the PR `dependencies` unless the bump forces consumers to change something; then it is `breaking` (see [breaking-changes](../breaking-changes/SKILL.md)). -For dependabot PRs: check CI, read the changelog for majors, merge groups that pass. Do not rebase a dependabot PR by +For dependabot PRs: patch and minor updates merge themselves once CI passes (`dependabot-automerge.yml`). Majors +wait for you: read the changelog, then `gh pr merge --auto --squash`. Do not rebase a dependabot PR by hand; comment `@dependabot rebase`. Pin an action to the commit its release tag points at: diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3240e54 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +# The shared .editorconfig sets end_of_line = lf, and IDE0055 is an error: without this, a Windows checkout gets CRLF +# and every C# line fails the build. Binary files a repository adds need their own `binary` line below. +* text=auto eol=lf +*.png binary +*.jpg binary +*.gif binary +*.ico binary +*.snk binary +*.nupkg binary +*.zip binary diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml new file mode 100644 index 0000000..17cef14 --- /dev/null +++ b/.github/workflows/dependabot-automerge.yml @@ -0,0 +1,13 @@ +name: dependabot-automerge + +on: + pull_request: + +permissions: {} + +jobs: + automerge: + uses: nullean/.github/.github/workflows/dependabot-automerge.yml@d850ce6eee9efa9f81b410d15fcd480409518d19 # v1.5.0 + permissions: + contents: write + pull-requests: write diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml index aa71c32..1551089 100644 --- a/.github/workflows/pr-labels.yml +++ b/.github/workflows/pr-labels.yml @@ -8,5 +8,5 @@ permissions: {} jobs: release-label: - uses: nullean/.github/.github/workflows/pr-labels.yml@6ce0ea47d99c74643d10071025121dd59668e245 # v1.1.0 + uses: nullean/.github/.github/workflows/pr-labels.yml@d850ce6eee9efa9f81b410d15fcd480409518d19 # v1.5.0 permissions: {}