Skip to content
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

Fix get_fork for Pagure #800

Merged

Conversation

lbarcziova
Copy link
Member

@lbarcziova lbarcziova commented Sep 7, 2023

When getting the fork from existing forks, check for equality of the usernames and not only substring check with 'in' operator. This prevents getting a fork of 'packit-stg' for user 'packit'.

Fixes packit/packit-service#2178

RELEASE NOTES BEGIN
We have fixed a bug in get_fork method for Pagure about checking the usernames for a match when going through existing forks.
RELEASE NOTES END

When getting the fork from existing forks, check for
equality of the usernames and not only substring check with 'in' operator.
This prevents getting a fork of 'packit-stg' for user 'packit'.

Fixes packit/packit-service#2178
@mfocko
Copy link
Member

mfocko commented Sep 7, 2023

I guess we could add release notes to this 😄

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/340a05aa3b154f0bbac0b08c9fc44d82

✔️ pre-commit SUCCESS in 1m 42s
✔️ ogr-tests-rpm SUCCESS in 10m 16s
✔️ ogr-tests-pip-deps SUCCESS in 10m 35s
✔️ ogr-reverse-dep-packit-tests SUCCESS in 15m 55s

@lbarcziova lbarcziova added the mergeit When set, zuul wil gate and merge the PR. label Sep 8, 2023
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/7dedeab3a72941749673cea2c2c2c263

✔️ pre-commit SUCCESS in 2m 15s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 8ebc261 into packit:main Sep 8, 2023
24 checks passed
@lbarcziova lbarcziova deleted the fig-get-fork-pagure branch September 8, 2023 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(Re)triggering pull-from-upstream doesn't seem to work when a dist-git fork doesn't exist yet
2 participants