@mbe24/99problems 0.3.0 → 0.3.1
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/.github/workflows/release.yml +42 -2
- package/Cargo.lock +1 -1
- package/Cargo.toml +1 -1
- package/artifacts/binary-aarch64-apple-darwin/99problems +0 -0
- package/artifacts/binary-aarch64-unknown-linux-gnu/99problems +0 -0
- package/artifacts/binary-x86_64-apple-darwin/99problems +0 -0
- package/artifacts/binary-x86_64-pc-windows-msvc/99problems.exe +0 -0
- package/artifacts/binary-x86_64-unknown-linux-gnu/99problems +0 -0
- package/docs/man/99problems.1 +2 -2
- package/package.json +6 -6
|
@@ -17,8 +17,44 @@ env:
|
|
|
17
17
|
RELEASE_VERSION: ${{ github.event_name == 'workflow_dispatch' && inputs.version || github.ref_name }}
|
|
18
18
|
|
|
19
19
|
jobs:
|
|
20
|
+
validate-release-version:
|
|
21
|
+
name: Validate release version
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v6
|
|
25
|
+
|
|
26
|
+
- name: Validate release tag format
|
|
27
|
+
shell: bash
|
|
28
|
+
run: |
|
|
29
|
+
if [[ ! "${RELEASE_VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+([.-][0-9A-Za-z]+)*$ ]]; then
|
|
30
|
+
echo "Release version '${RELEASE_VERSION}' is invalid."
|
|
31
|
+
echo "Expected format like v0.3.0 (optional prerelease/build suffix allowed)."
|
|
32
|
+
exit 1
|
|
33
|
+
fi
|
|
34
|
+
|
|
35
|
+
- name: Ensure Cargo.toml version matches release tag
|
|
36
|
+
shell: bash
|
|
37
|
+
run: |
|
|
38
|
+
set -euo pipefail
|
|
39
|
+
release_version="${RELEASE_VERSION#v}"
|
|
40
|
+
cargo_version="$(sed -n 's/^version = "\([^"]*\)"/\1/p' Cargo.toml | head -n1)"
|
|
41
|
+
|
|
42
|
+
if [[ -z "${cargo_version}" ]]; then
|
|
43
|
+
echo "Could not read package version from Cargo.toml."
|
|
44
|
+
exit 1
|
|
45
|
+
fi
|
|
46
|
+
|
|
47
|
+
if [[ "${cargo_version}" != "${release_version}" ]]; then
|
|
48
|
+
echo "Version mismatch:"
|
|
49
|
+
echo " tag version: ${release_version}"
|
|
50
|
+
echo " Cargo.toml: ${cargo_version}"
|
|
51
|
+
echo "Update Cargo.toml before creating/pushing the release tag."
|
|
52
|
+
exit 1
|
|
53
|
+
fi
|
|
54
|
+
|
|
20
55
|
build:
|
|
21
56
|
name: Build ${{ matrix.target }}
|
|
57
|
+
needs: validate-release-version
|
|
22
58
|
runs-on: ${{ matrix.os }}
|
|
23
59
|
strategy:
|
|
24
60
|
matrix:
|
|
@@ -78,7 +114,9 @@ jobs:
|
|
|
78
114
|
|
|
79
115
|
publish-crates:
|
|
80
116
|
name: Publish to crates.io
|
|
81
|
-
needs:
|
|
117
|
+
needs:
|
|
118
|
+
- validate-release-version
|
|
119
|
+
- build
|
|
82
120
|
runs-on: ubuntu-latest
|
|
83
121
|
steps:
|
|
84
122
|
- uses: actions/checkout@v6
|
|
@@ -93,7 +131,9 @@ jobs:
|
|
|
93
131
|
|
|
94
132
|
publish-npm:
|
|
95
133
|
name: Publish npm packages
|
|
96
|
-
needs:
|
|
134
|
+
needs:
|
|
135
|
+
- validate-release-version
|
|
136
|
+
- build
|
|
97
137
|
runs-on: ubuntu-latest
|
|
98
138
|
steps:
|
|
99
139
|
- uses: actions/checkout@v6
|
package/Cargo.lock
CHANGED
package/Cargo.toml
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/man/99problems.1
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ie \n(.g .ds Aq \(aq
|
|
2
2
|
.el .ds Aq '
|
|
3
|
-
.TH 99problems 1 "99problems 0.
|
|
3
|
+
.TH 99problems 1 "99problems 0.3.1"
|
|
4
4
|
.SH NAME
|
|
5
5
|
99problems \- Fetch issue and pull request conversations
|
|
6
6
|
.SH SYNOPSIS
|
|
@@ -49,4 +49,4 @@ Examples:
|
|
|
49
49
|
99problems get \-q "repo:github/gitignore is:pr 2402" \-\-include\-review\-comments
|
|
50
50
|
99problems man \-\-output docs/man
|
|
51
51
|
.SH VERSION
|
|
52
|
-
v0.
|
|
52
|
+
v0.3.1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mbe24/99problems",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "GitHub issue conversation fetcher CLI",
|
|
5
5
|
"bin": {
|
|
6
6
|
"99problems": "./npm/bin/99problems.js"
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"postinstall": "node npm/install.js"
|
|
10
10
|
},
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@mbe24/99problems-win32-x64": "0.3.
|
|
13
|
-
"@mbe24/99problems-linux-x64": "0.3.
|
|
14
|
-
"@mbe24/99problems-darwin-x64": "0.3.
|
|
15
|
-
"@mbe24/99problems-darwin-arm64": "0.3.
|
|
16
|
-
"@mbe24/99problems-linux-arm64": "0.3.
|
|
12
|
+
"@mbe24/99problems-win32-x64": "0.3.1",
|
|
13
|
+
"@mbe24/99problems-linux-x64": "0.3.1",
|
|
14
|
+
"@mbe24/99problems-darwin-x64": "0.3.1",
|
|
15
|
+
"@mbe24/99problems-darwin-arm64": "0.3.1",
|
|
16
|
+
"@mbe24/99problems-linux-arm64": "0.3.1"
|
|
17
17
|
},
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"repository": {
|