Skip to content

Commit a9c3788

Browse files
committed
open-pr: fix the Git LFS link to use when opening a PR
It has been reported in git-for-windows/git#5276 (comment) that the Git LFS link in the release notes was incorrect. The reason is that we have some special handling of Git LFS so that we do not get the (rather ugly) _tag_ URL but instead the _release_ URL. Example: git-for-windows/git#5266 refers to https://github.com/git-lfs/git-lfs/releases/tag/v3.6.0 because this is the URL from the feed from which the `monitor-components` gets it: https://github.com/git-for-windows/git/blob/v2.47.1.windows.1/.github/workflows/monitor-components.yml#L29-L3 The corresponding PR at git-for-windows/build-extra#581 (opened via `/open pr` at git-for-windows/git#5266 (comment)) has the link https://github.com/git-lfs/git-lfs/releases/tag/3.6.0 (note the missing `v` after the last slash). This commit ensures that future `/open pr`s in Git LFS issues will use the correct link. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 1b40a1b commit a9c3788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/open-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
const version = process.env.UPGRADE_TO_VERSION
170170
171171
if (name === 'mintty') body = `See https://github.com/mintty/mintty/releases/tag/${version} for details.`
172-
else if (name === 'mingw-w64-git-lfs') body = `See https://github.com/git-lfs/git-lfs/releases/tag/${version} for details.`
172+
else if (name === 'mingw-w64-git-lfs') body = `See https://github.com/git-lfs/git-lfs/releases/tag/v${version} for details.`
173173
else if (name === 'mingw-w64-pcre2') body = `See https://github.com/PCRE2Project/pcre2/blob/pcre2-${version}/ChangeLog for details.`
174174
175175
const terms = 'type:issue repo:git-for-windows/git state:open author:app/github-actions label:component-update'

0 commit comments

Comments
 (0)