@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.
@@ -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: build
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: build
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
@@ -687,7 +687,7 @@ dependencies = [
687
687
 
688
688
  [[package]]
689
689
  name = "problems99"
690
- version = "0.2.0"
690
+ version = "0.3.1"
691
691
  dependencies = [
692
692
  "anyhow",
693
693
  "clap",
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "problems99"
3
- version = "0.2.0"
3
+ version = "0.3.1"
4
4
  edition = "2024"
5
5
  description = "GitHub issue conversation fetcher CLI"
6
6
  license = "Apache-2.0"
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH 99problems 1 "99problems 0.2.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.2.0
52
+ v0.3.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mbe24/99problems",
3
- "version": "0.3.0",
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.0",
13
- "@mbe24/99problems-linux-x64": "0.3.0",
14
- "@mbe24/99problems-darwin-x64": "0.3.0",
15
- "@mbe24/99problems-darwin-arm64": "0.3.0",
16
- "@mbe24/99problems-linux-arm64": "0.3.0"
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": {