@r5n/sisyphus 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/dist/cli.js +151 -144
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ sisyphus roll --resume
|
|
|
96
96
|
- `-p, --push` — push commits and tags (default from `release.push`)
|
|
97
97
|
- `-r, --createRelease` — create a release on the git provider (default from `release.createRelease`)
|
|
98
98
|
- `--noCommit` — skip the release commit (also disables tags, push, and provider release)
|
|
99
|
-
- `--preview` — write changelogs,
|
|
99
|
+
- `--preview` — write changelogs, list their paths, then offer to revert; `--yes`, `--json` and non-interactive runs automatically restore the original files
|
|
100
100
|
- `--publishOnly` — publish from `currentRelease` recorded by `actions release-pr`, without touching files
|
|
101
101
|
- `-j, --json` — print a machine-readable release report on stdout instead of the interactive output; the report carries a required `warnings` string array listing ignore exclusions, cycle-order caveats, and channel problems
|
|
102
102
|
- `--resume` — reconcile and continue the active incomplete release
|
|
@@ -115,7 +115,9 @@ Npm publication requires a release commit, so it cannot be combined with `--noCo
|
|
|
115
115
|
|
|
116
116
|
### `sisyphus pr`
|
|
117
117
|
|
|
118
|
-
Create a stone from a pull request (GitHub via
|
|
118
|
+
Create a stone from a pull or merge request (GitHub via authenticated `gh`; GitLab via `GITLAB_TOKEN` or `glab`). Reads title, body, labels, commits, and changed files; the bump type comes from labels via `pr.labelMapping`, the title, `-b/--bump`, or a prompt. Explicit `--bump` accepts `major`, `minor`, or `patch`. PRs matching `pr.skip` (labels, authors, title patterns) are ignored.
|
|
119
|
+
|
|
120
|
+
Provider file analysis preserves both sides of renames. It stops before writing a stone when it cannot establish a complete file list, including GitHub's [3,000-file response limit](https://docs.github.com/en/rest/pulls/pulls#list-pull-requests-files) and [GitLab overflow responses](https://docs.gitlab.com/api/merge_requests/#retrieve-merge-request-changes).
|
|
119
121
|
|
|
120
122
|
```bash
|
|
121
123
|
sisyphus pr -u https://github.com/org/repo/pull/123 -y
|
|
@@ -123,13 +125,13 @@ sisyphus pr -u https://github.com/org/repo/pull/123 -y
|
|
|
123
125
|
|
|
124
126
|
### `sisyphus migrate`
|
|
125
127
|
|
|
126
|
-
Convert an existing `.changeset/` directory to stones and map supported changeset config (`ignore`, `commit`, `access`, `changelog`) onto the Sisyphus config. `-d, --dryRun
|
|
128
|
+
Convert an existing `.changeset/` directory to stones and map supported changeset config (`ignore`, `commit`, `access`, `changelog`) onto the Sisyphus config. `-d, --dryRun` previews without writing; non-interactive migration requires `-y, --yes`.
|
|
127
129
|
|
|
128
130
|
### `sisyphus actions`
|
|
129
131
|
|
|
130
132
|
CI integration. `actions init` detects your provider (GitHub Actions or GitLab CI) and installs workflow templates: a create-stone workflow that turns merged PRs into stones and maintains a release PR, and a release workflow that publishes when the release PR merges (`--all`, `--createStone`, `--release`, `-d`, `-y`). `actions release-pr` creates or updates the `sisyphus/release` branch and PR from pending stones, archives the stones to `.sisyphus/released/<timestamp>/`, and records `currentRelease` in the config for a later `roll --publishOnly`.
|
|
131
133
|
|
|
132
|
-
Run `actions release-pr` from a clean working tree; commit or stash local changes first. It
|
|
134
|
+
Run `actions release-pr` from a clean working tree; commit or stash local changes first. It restores the original branch or detached checkout after preparing or previewing the release PR. `--dryRun` previews the fetched base without creating or resetting the local release branch.
|
|
133
135
|
|
|
134
136
|
The generated GitLab workflows require `GITLAB_TOKEN` with API access and repository write permission; `SIS_PUSH_TOKEN` can supply a separate repository write credential. They configure a credential-free origin URL and a credential helper for both stone and release-branch pushes. Automatic MR detection expects GitLab's standard merge commit title and `See merge request <project>!<number>` footer. Use merge commits for release merge requests; squash, rebase and custom commit messages require adapting the rules or running the release job manually.
|
|
135
137
|
|