Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .claude/skills/pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
11 changes: 7 additions & 4 deletions .claude/skills/releasing/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 <id> --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.
5 changes: 3 additions & 2 deletions .claude/skills/upgrade-deps/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Loading