@jens_astrup/release-manager 0.1.0-alpha.3 → 0.1.0-alpha.4
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.
|
@@ -4,12 +4,14 @@ import Spinner from 'ink-spinner';
|
|
|
4
4
|
import { ProgressBar } from './ProgressBar.js';
|
|
5
5
|
/**
|
|
6
6
|
* Render a vertical list of steps. Running steps show a spinner; if a step
|
|
7
|
-
* exposes a numeric progress value
|
|
8
|
-
* the label.
|
|
9
|
-
*
|
|
7
|
+
* exposes a numeric progress value (or null for indeterminate), render a
|
|
8
|
+
* progress bar beneath the label. Steps are spaced vertically so bars and
|
|
9
|
+
* wrapped labels do not collide with the next row. Completed steps show a green
|
|
10
|
+
* check, failed steps show a red x, skipped steps show a gray dash.
|
|
10
11
|
*/
|
|
11
12
|
export function StepList({ steps }) {
|
|
12
|
-
|
|
13
|
+
const stepCount = steps.length;
|
|
14
|
+
return (React.createElement(Box, { flexDirection: "column" }, steps.map((step, stepIndex) => (React.createElement(Box, { key: step.id, flexDirection: "column", marginBottom: stepIndex < stepCount - 1 ? 1 : 0 },
|
|
13
15
|
React.createElement(Box, null,
|
|
14
16
|
React.createElement(Box, { width: 3 }, step.status === 'running' ? (React.createElement(Text, { color: "cyan" },
|
|
15
17
|
React.createElement(Spinner, { type: "dots" }))) : step.status === 'done' ? (React.createElement(Text, { color: "green" }, "\u2713")) : step.status === 'failed' ? (React.createElement(Text, { color: "red" }, "\u2717")) : step.status === 'skipped' ? (React.createElement(Text, { color: "gray" }, "\u2014")) : (React.createElement(Text, { color: "gray" }, "\u00B7"))),
|
package/dist/src/lib/openai.js
CHANGED
|
@@ -11,7 +11,8 @@ You should take the title and description of each issue and write a concise summ
|
|
|
11
11
|
The release notes should be in the following format:
|
|
12
12
|
|
|
13
13
|
## v1.0.0
|
|
14
|
-
-
|
|
14
|
+
- Issue Description (Closes [ISSUE-ID](Issue URL))
|
|
15
|
+
- Issue 2 Description (Closes [ISSUE-ID-2](Issue 2 URL))
|
|
15
16
|
|
|
16
17
|
------
|
|
17
18
|
Example:
|
|
@@ -97,7 +97,7 @@ export async function createReleaseFlow(args) {
|
|
|
97
97
|
const url = await createPullRequest({
|
|
98
98
|
owner: config.github.owner,
|
|
99
99
|
repo: config.github.repo,
|
|
100
|
-
title:
|
|
100
|
+
title: version,
|
|
101
101
|
body: notes,
|
|
102
102
|
head: config.github.developBranch,
|
|
103
103
|
base: config.github.mainBranch
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jens_astrup/release-manager",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.4",
|
|
4
4
|
"description": "Interactive CLI for creating release version bump PRs and releases with AI-generated notes. Built with Ink.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "jens_astrup",
|