Skip to content

ci: Allow release note enrichment when "closes" is present#5398

Merged
jharvey10 merged 2 commits intomainfrom
jdh/fix-enrich-when-closes-present
Jan 29, 2026
Merged

ci: Allow release note enrichment when "closes" is present#5398
jharvey10 merged 2 commits intomainfrom
jdh/fix-enrich-when-closes-present

Conversation

@jharvey10
Copy link
Contributor

@jharvey10 jharvey10 commented Jan 29, 2026

An interesting thing I discovered with release please is that if a commit has a reference to a closed issue, this will be called out in the changelog 🎉

For example:

* Invalid handling of id in foreach when using discovery components (#5322) (61fe184), closes #5297

The only problem is this breaks the way I wrote the regex for the release not enrichment script. This PR fixes that.

@jharvey10 jharvey10 requested a review from a team as a code owner January 29, 2026 19:40
@jharvey10 jharvey10 added the backport/v1.13 Backport to release/v1.13 label Jan 29, 2026

// commitPattern matches a commit SHA in markdown link format: "([abc1234](https://github.com/.../commit/...))"
// It captures the short SHA from the link text, regardless of surrounding context.
var commitPattern = regexp.MustCompile(`\(\[([a-f0-9]{7,40})\]\(https://github\.com/[^)]+\)\)`)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the main difference is the absence of \s*$

@jharvey10 jharvey10 changed the title ci: allow release note enrichment when "closes" present ci: Allow release note enrichment when "closes" is present Jan 29, 2026
@jharvey10 jharvey10 enabled auto-merge (squash) January 29, 2026 19:58
@jharvey10 jharvey10 merged commit 8cfe2f1 into main Jan 29, 2026
47 of 48 checks passed
@jharvey10 jharvey10 deleted the jdh/fix-enrich-when-closes-present branch January 29, 2026 21:31
grafana-alloybot bot pushed a commit that referenced this pull request Jan 29, 2026
An interesting thing I discovered with release please is that if a
commit has a reference to a closed issue, this will be called out in the
changelog 🎉

For example:

```
* Invalid handling of id in foreach when using discovery components (\#5322) (61fe184), closes \#5297
```

The only problem is this breaks the way I wrote the regex for the
release not enrichment script. This PR fixes that.

(cherry picked from commit 8cfe2f1)
jharvey10 added a commit that referenced this pull request Jan 29, 2026
…#5400)

## Backport of #5398

This PR backports #5398 to release/v1.13.

### Original PR Author
@jharvey10

### Description
An interesting thing I discovered with release please is that if a
commit has a reference to a closed issue, this will be called out in the
changelog 🎉

For example:

```
* Invalid handling of id in foreach when using discovery components (#5322) (61fe184), closes #5297
```

The only problem is this breaks the way I wrote the regex for the
release not enrichment script. This PR fixes that.

---
*This backport was created automatically.*

Co-authored-by: Joe Harvey <51208233+jharvey10@users.noreply.github.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/v1.13 Backport to release/v1.13 frozen-due-to-age

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants