Skip to content

open-pr: try harder to find a corresponding component-update ticket #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 2, 2023

Conversation

dscho
Copy link
Member

@dscho dscho commented Jan 1, 2023

When opening a Pull Request, we would like to automatically close the corresponding component-update ticket, if there is any.

Unfortunately, it is not quite trivial to search for such tickets. One frustrating aspect is that some updates have the version number prefixed with v while others do not. And the search on GitHub is a bit strict about that: if you search for 0.10.1, you won't find a ticket mentioning v0.10.1 and the opposite is also true.

We already started to special-case at least Git LFS, but it's a bit of a whack-a-mole to do that for all components we track in Git for Windows.

Let's instead search for the version in both forms: both prefixed with v as well as without.

This addresses
git-for-windows/gfw-helper-github-app#18

When opening a Pull Request, we would like to automatically close the
corresponding `component-update` ticket, if there is any.

Unfortunately, it is not _quite_ trivial to search for such tickets. One
frustrating aspect is that some updates have the version number prefixed
with `v` while others do not. And the search on GitHub is a bit strict
about that: if you search for `0.10.1`, you won't find a ticket
mentioning `v0.10.1` and the opposite is also true.

We already started to special-case at least Git LFS, but it's a bit of a
whack-a-mole to do that for all components we track in Git for Windows.

Let's instead search for the version in both forms: both prefixed with
`v` as well as without.

This addresses
git-for-windows/gfw-helper-github-app#18

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho merged commit f5c6930 into git-for-windows:main Jan 2, 2023
@dscho dscho deleted the postelize-open-pr branch January 2, 2023 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants