Skip to content

Commit

Permalink
Add regexes for release-notes github reference swapping (#2519)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejG604 authored Nov 8, 2023
1 parent 5f35e14 commit 941564b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/release/release-notes-regexes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## PR link
Find: `in https\:\/\/github\.com\/VirtusLab\/scala\-cli\/pull\/(.*?)$` </br>
Replace: `in [#$1](https://github.com/VirtusLab/scala-cli/pull/$1)`

## Contributor link
Find: `by @(.*?) in` </br>
Replace: `by [@$1](https://github.com/$1) in`

## New contributor link
Find: `@(.*?) made` </br>
Replace: `[@$1](https://github.com/$1) made`

## No GH contributor link
Find: `by \[@(.*?).\(.*\) in` </br>
Replace: `by @$1 in`
1 change: 1 addition & 0 deletions .github/release/release-procedure.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
create a PR.
- [ ] Make sure the notes render correctly on [the website](https://scala-cli.virtuslab.org/docs/release_notes) - that
includes swapping out GitHub-idiomatic @mentions of users, links to PRs, issues, etc.
When using IntelliJ you can do that using the regexes in [release-notes-regexes.md](release-notes-regexes.md).
- [ ] Copy any fixes over to the draft after getting the PR reviewed and merged.
- [ ] Mark the release draft as `pre-release` and then `Publish Release`
- [ ] Wait for a green release CI build with all the updated versions.
Expand Down

0 comments on commit 941564b

Please sign in to comment.