Skip to content

Conversation

@dsmiley
Copy link
Contributor

@dsmiley dsmiley commented Oct 28, 2025

The branch might look like aaa/bbb/SOLR-XXXX-blah -- the leading path portions interfere with creating the yaml change file. I ended up adding a .replaceAll(".*/", "") to the branch

The branch might look like `aaa/bbb/SOLR-XXXX-blah` -- the leading path portions interfere with creating THE yaml change file.  I ended up adding a `.replaceAll(".*/", "")` to the branch
@dsmiley dsmiley requested a review from janhoy October 28, 2025 12:41
def gitBranch = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim()
def jiraMatcher = gitBranch.toUpperCase() =~ /SOLR-\d\d\d+/
def jiraRef = jiraMatcher ? jiraMatcher[0] : "SOLR-XXXX"
def gitBranch = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim().replaceFirst(/^.*\//, "")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this specific line is the substance. I also tweaked some other things...

Comment on lines +35 to +36
def jiraMatcher = gitBranch =~ /(?i)SOLR-\d\d\d+/
def jiraRef = jiraMatcher ? jiraMatcher[0].toUpperCase() : "SOLR-XXXX"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use the same regexp as further below; case insensitive match. then normalize what we find to uppercase

janhoy added a commit to janhoy/solr that referenced this pull request Oct 30, 2025
@dsmiley
Copy link
Contributor Author

dsmiley commented Oct 30, 2025

Incorporated into #3820

@dsmiley dsmiley closed this Oct 30, 2025
janhoy added a commit that referenced this pull request Oct 30, 2025
* SOLR-17619 Cleanup after logchange cutover
* Exclude generated archive.md files from license checks
* Fix generate-filename
* Incorporate David's suggestion.
* Fixes precommit

 Fixes #3818
janhoy added a commit that referenced this pull request Oct 30, 2025
* SOLR-17619 Cleanup after logchange cutover
* Exclude generated archive.md files from license checks
* Fix generate-filename
* Incorporate David's suggestion.
* Fixes precommit

 Fixes #3818

(cherry picked from commit fb74fa8)
janhoy added a commit that referenced this pull request Oct 30, 2025
* SOLR-17619 Cleanup after logchange cutover
* Exclude generated archive.md files from license checks
* Fix generate-filename
* Incorporate David's suggestion.
* Fixes precommit

 Fixes #3818

(cherry picked from commit fb74fa8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant