Commit 77035cc
authored
chore(ci): Improve Craft config with title stripping and artifact filtering (#5444)
## Summary
- Add named regex capture groups to `commit_patterns` in
`.github/release.yml` for Craft's [title
stripping](https://craft.sentry.dev/configuration/#title-stripping-default-behavior)
feature
- Remove the CI `merge` job by switching to Craft 2.21.1's
[workflow-scoped artifact
filtering](https://craft.sentry.dev/configuration/#github-artifact-provider-configuration)
(same approach as getsentry/cli#215)
- Modernize `.craft.yml` changelog config to object format
- Modernize `scripts/bump-version.sh` to use Craft env vars
## Changes
### `.github/release.yml`
- All `commit_patterns` now use `(?<type>...)` and `(?<scope>...)` named
capture groups so Craft strips conventional commit prefixes from
changelog entries
- Added **Breaking Changes** category (`semver: major`) from Craft
defaults
- Expanded Internal Changes patterns to include `refactor|meta|perf`
from Craft defaults
### `.craft.yml`
- Bumped `minVersion` from `2.17.0` to `2.21.1`
- Added `artifactProvider` config to fetch `artifact-*` directly from
`ci.yml` workflow
- Modernized changelog from separate keys to object format
- Added explicit `preReleaseCommand` (was relying on the implicit
default)
### `.github/workflows/ci.yml`
- Removed the `merge` job (no longer needed with Craft 2.21.1 artifact
filtering)
- Removed `compression-level: '0'` from upload steps (was only needed
for merging)
### `scripts/bump-version.sh`
- Use `CRAFT_OLD_VERSION` / `CRAFT_NEW_VERSION` env vars instead of
positional arguments (recommended by Craft docs)1 parent 1eeb5df commit 77035cc
File tree
4 files changed
+25
-32
lines changed- .github
- workflows
- scripts
4 files changed
+25
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
12 | | - | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | | - | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | | - | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
| 40 | + | |
37 | 41 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| |||
85 | 83 | | |
86 | 84 | | |
87 | 85 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 12 | + | |
| 13 | + | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments