-
Notifications
You must be signed in to change notification settings - Fork 125
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
Improve template url generations #3108
Conversation
@LecrisUT we would love to merge this, would it be a big ask to add some unit tests for the improved checkout logic pls?? |
Looking at it, seems doable. I guess there aren't unit tests around it to hook to? I'll be incapacitated due to a cold probably until Monday though |
I believe this (alongside #2489) would be more suitable to be merged after the 1.35 release anyway, wdyt? |
91fb249
to
68c2686
Compare
Initial unit tests added. Right now commit checkouts and detached merged commits behave the same, haven't checked how to mimic Github's The linkcheck might fail with 404 if it points to a commit that is only available on a fork. |
68c2686
to
fcb0193
Compare
/packit build |
fcb0193
to
a6e2370
Compare
I don't understand the changes either, that's why I'm hoping smarter reviewers would take a look... But I think we do need full tests in any case. |
/packit build |
To try to summarize:
|
ffb8a27
to
77dc76e
Compare
7cfe667
to
dc590ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for improving this! Looks good. Proposing just a couple minor changes in dc590ba.
@LecrisUT, would mind adding a short release note about the change? |
/packit test |
/packit build |
I'll try to think of some words tomorrow. I guess the part that should be mentioned is when it is run with |
dc590ba
to
13c80bd
Compare
The release note looks great, thanks! |
/packit build |
Signed-off-by: Cristian Le <[email protected]>
1. Check that a git repository is defined and get the basic facts 2. Try to get a fully-qualified reference from branch(rev-parse --symbolic-full-name), tag (describe --tags), or the first entry of for-each-ref 3. Set fmf_id.ref to a short name if possible. Depends on if we are a branch or tag. 4. Get all remaining facts from the fully-qualified reference and for-each-ref Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]> Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Consistent docs. Deeper log level. Plus a minor typo.
Signed-off-by: Cristian Le <[email protected]>
d13023c
to
0825bfe
Compare
/packit build |
Failures are irrelevant, merging. |
1. Check that a git repository is defined and get the basic facts 2. Try to get a fully-qualified reference from branch (rev-parse --symbolic-full-name), tag (describe --tags), or the first entry of for-each-ref 3. Set fmf_id.ref to a short name if possible. Depends on if we are a branch or tag. 4. Get all remaining facts from the fully-qualified reference and for-each-ref Signed-off-by: Cristian Le <[email protected]> Signed-off-by: Cristian Le <[email protected]> Co-authored-by: Petr Šplíchal <[email protected]>
Blocks #2489