Skip to content

Commit 941564b

Browse files
authored
Add regexes for release-notes github reference swapping (#2519)
1 parent 5f35e14 commit 941564b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## PR link
2+
Find: `in https\:\/\/github\.com\/VirtusLab\/scala\-cli\/pull\/(.*?)$` </br>
3+
Replace: `in [#$1](https://github.com/VirtusLab/scala-cli/pull/$1)`
4+
5+
## Contributor link
6+
Find: `by @(.*?) in` </br>
7+
Replace: `by [@$1](https://github.com/$1) in`
8+
9+
## New contributor link
10+
Find: `@(.*?) made` </br>
11+
Replace: `[@$1](https://github.com/$1) made`
12+
13+
## No GH contributor link
14+
Find: `by \[@(.*?).\(.*\) in` </br>
15+
Replace: `by @$1 in`

.github/release/release-procedure.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
create a PR.
1212
- [ ] Make sure the notes render correctly on [the website](https://scala-cli.virtuslab.org/docs/release_notes) - that
1313
includes swapping out GitHub-idiomatic @mentions of users, links to PRs, issues, etc.
14+
When using IntelliJ you can do that using the regexes in [release-notes-regexes.md](release-notes-regexes.md).
1415
- [ ] Copy any fixes over to the draft after getting the PR reviewed and merged.
1516
- [ ] Mark the release draft as `pre-release` and then `Publish Release`
1617
- [ ] Wait for a green release CI build with all the updated versions.

0 commit comments

Comments
 (0)