mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-26 10:07:34 -05:00
chore(skills): follow the AI guideline in the bump skills
The bumping-web and bumping-reva skills asked for a commit with an empty body, which leaves no room for the Assisted-by trailer the org's AI guideline asks for. The commit now carries that trailer, and the PR body ends with a line on which AI did the bump. The PRs also get Status:Needs-Review and their author as assignee, as the other PRs in this repository do. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
1 parent
7be14e1ee9
commit
f6b9e0e4dc
2 files changed
+16
-8
No files matched your search
@@ -112,19 +112,23 @@ Confirm the reva line in `go.mod` is exactly `github.com/opencloud-eu/reva/v2 RE
|
||||
|
||||
- Create a branch (do not commit on `main`), e.g. `reva-bump-2.48.0`.
|
||||
- Stage everything the bump touched: `git add go.mod go.sum vendor pkg/version/version.go`.
|
||||
- One commit, conventional-commits format, **empty body**:
|
||||
- One commit, conventional-commits format, with no body other than the `Assisted-by:` trailer that the org's [AI guideline](https://github.com/opencloud-eu/.github/blob/main/profile/AI_GUIDELINE.md) asks for. Name the agent and the model actually used, and never add a `Co-authored-by` trailer for an AI tool:
|
||||
```
|
||||
chore: bump reva to 2.48.0
|
||||
|
||||
Assisted-by: Claude Code:claude-opus-5-5
|
||||
```
|
||||
- PR base: **`main`** (reva bumps always target main).
|
||||
- PR title: `[full-ci] chore: bump reva to 2.48.0` (the commit message prefixed with `[full-ci] `).
|
||||
- PR body: the file from step 4.
|
||||
- Add the label `Type:Maintenance`.
|
||||
- End the PR body with one line saying which AI did the bump, e.g. `AI assistance: Claude Code (claude-opus-5-5) did the bump.`
|
||||
- Add the labels `Type:Maintenance` and `Status:Needs-Review`, and assign the PR to yourself.
|
||||
|
||||
```bash
|
||||
gh pr create --base main \
|
||||
--title "[full-ci] chore: bump reva to $REVA_VERSION_NO_V" \
|
||||
--label "Type:Maintenance" \
|
||||
--label "Type:Maintenance,Status:Needs-Review" \
|
||||
--assignee @me \
|
||||
--body-file <body-file>
|
||||
```
|
||||
|
||||
@@ -148,6 +152,6 @@ gh api "repos/opencloud-eu/reva/contents/CHANGELOG.md?ref=$REVA_VERSION" --jq '.
|
||||
- Forgetting to re-run `go mod vendor` after `go mod tidy`, leaving `vendor/` out of sync with `go.mod`.
|
||||
- Asking for or hardcoding `OC_VERSION` — always derive it from the open `next-release/main` release PR (step 3); it can even be a new major after a breaking change.
|
||||
- Reading the changelog from reva `main` instead of the tag (`?ref=$REVA_VERSION`). Always pin to the tag.
|
||||
- Missing the `[full-ci] ` prefix in the PR title, the `Type:Maintenance` label, or the two summary bullets at the top of the body.
|
||||
- Missing the `[full-ci] ` prefix in the PR title, the `Type:Maintenance` and `Status:Needs-Review` labels, or the two summary bullets at the top of the body.
|
||||
- Dumping the full `vendor/` diff at the confirmation step instead of `go.mod` + `version.go` + a `--stat` summary.
|
||||
- Committing before the user confirms the diff.
|
||||
@@ -83,19 +83,23 @@ Show the user the diff of both files and the target branch, and ask them to conf
|
||||
### 7. Commit, push, open PR
|
||||
|
||||
- Create a branch (do not commit on `main`).
|
||||
- One commit, conventional-commits format, **empty body**:
|
||||
- One commit, conventional-commits format, with no body other than the `Assisted-by:` trailer that the org's [AI guideline](https://github.com/opencloud-eu/.github/blob/main/profile/AI_GUIDELINE.md) asks for. Name the agent and the model actually used, and never add a `Co-authored-by` trailer for an AI tool:
|
||||
```
|
||||
chore: bump web to v7.0.0
|
||||
|
||||
Assisted-by: Claude Code:claude-opus-5-5
|
||||
```
|
||||
- PR title: `[full-ci] chore: bump web to v7.0.0` (the commit message prefixed with `[full-ci] `).
|
||||
- PR base: the branch chosen in step 5.
|
||||
- PR body: the trimmed changelog from step 3.
|
||||
- Add the label `Type:Dependencies`.
|
||||
- End the PR body with one line saying which AI did the bump, e.g. `AI assistance: Claude Code (claude-opus-5-5) did the bump.`
|
||||
- Add the labels `Type:Dependencies` and `Status:Needs-Review`, and assign the PR to yourself.
|
||||
|
||||
```bash
|
||||
gh pr create --base <target-branch> \
|
||||
--title "[full-ci] chore: bump web to $VERSION" \
|
||||
--label "Type:Dependencies" \
|
||||
--label "Type:Dependencies,Status:Needs-Review" \
|
||||
--assignee @me \
|
||||
--body-file <changelog-file>
|
||||
```
|
||||
|
||||
@@ -114,5 +118,5 @@ gh api "repos/opencloud-eu/web/contents/CHANGELOG.md?ref=$VERSION" --jq '.conten
|
||||
|
||||
- Reading `WEB_COMMITID` or the changelog from web `main` instead of from the version tag (`?ref=$VERSION`). Always pin to the tag.
|
||||
- Leaving `WEB_ASSETS_BRANCH`/`WEB_BRANCH` on `main` for a patch that belongs on a stable line.
|
||||
- Forgetting `[full-ci] ` in the PR title or adding a commit body.
|
||||
- Forgetting `[full-ci] ` in the PR title, or adding a commit body beyond the `Assisted-by:` trailer.
|
||||
- Committing before the user confirms the diff and target branch.
|
||||
Reference in new issue
Block a user