Repository navigation
Commit 415e957
Follow-up to #69, addressing the three Copilot review points that landed after it was merged:
- **`release.yml` Packagist poll**: Actions runs steps with `bash -e`, so a failed `curl` or `jq` in the `REF=$(…)` assignment ended the step on the first attempt instead of retrying. It now falls back to `REF=''` and the loop tries again. (The v3.0.1 release run was not affected: Packagist answered on the first attempt.)
- **Strict SemVer** in `build.yml`, `release.yml` and `ConfigurationTest`: no leading zeros in numeric pre-release identifiers (`3.0.1-beta.01`), no empty identifiers, and no leading zeros in the core numbers in the test (`03.0.1`).
- **`build.yml`**: rejects a `ConvertApi::VERSION` that is a pre-release of the latest release (e.g. `3.0.1-beta.1` after `v3.0.1`), which SemVer sorts below it.
Checked locally: the regex accepts `3.0.1`, `3.1.0-beta.1`, `3.1.0-rc.0` and `3.1.0-x-1.2a`, and rejects `03.0.1`, `3.0.1-beta.01`, `3.0.1-beta..1` and `3.0.1-`. The offline tests pass.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF2
Strict SemVer checks; keep polling Packagist through transient errors
Addresses the Copilot review of #69: the Packagist poll in release.yml
aborted on the first failed request under bash -e; SemVer validators
accepted leading-zero pre-release identifiers; build.yml let VERSION be a
pre-release of the latest release.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent eb7bc07 commit 415e957
3 files changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
145 | | - | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
0 commit comments