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

Add getting groups and users with given access rights for Pagure #834

Merged

Conversation

lbarcziova
Copy link
Member

@lbarcziova lbarcziova commented Jan 24, 2024

Needed for packit/packit#2088

RELEASE NOTES BEGIN
For Pagure there are 2 new methods available: one for getting users with specified access rights and one for getting members of a group.
RELEASE NOTES END

Copy link
Contributor

lbarcziova added a commit to lbarcziova/packit-service that referenced this pull request Jan 24, 2024
Introduce aliases `all_admins` and `all_committers` and also support
groups in allowed_pr_authors and allowed_committers config options

Fixes packit/packit#2088
Requires packit/ogr#834
Also refactor the other methods and fix the logic regarding groups.
E.g. can_merge_pr will now return True for users who are members of group
that can merge PR.
Copy link
Contributor

@lbarcziova lbarcziova added the mergeit When set, zuul wil gate and merge the PR. label Jan 25, 2024
Copy link
Contributor

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

✔️ pre-commit SUCCESS in 2m 17s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 1767349 into packit:main Jan 25, 2024
19 of 21 checks passed
@lbarcziova lbarcziova deleted the pagure-group-access branch January 25, 2024 21:04
lbarcziova added a commit to lbarcziova/packit-service that referenced this pull request Jan 25, 2024
Introduce aliases `all_admins` and `all_committers` and also support
groups in allowed_pr_authors and allowed_committers config options

Fixes packit/packit#2088
Requires packit/ogr#834
lbarcziova added a commit to lbarcziova/packit-service that referenced this pull request Jan 26, 2024
Introduce aliases `all_admins` and `all_committers` and also support
groups in allowed_pr_authors and allowed_committers config options

Fixes packit/packit#2088
Requires packit/ogr#834
lbarcziova added a commit to lbarcziova/packit-service that referenced this pull request Jan 26, 2024
Introduce aliases `all_admins` and `all_committers` and also support
groups in allowed_pr_authors and allowed_committers config options

Fixes packit/packit#2088
Requires packit/ogr#834
softwarefactory-project-zuul bot added a commit to packit/packit-service that referenced this pull request Jan 29, 2024
Support aliases and groups in allowed_* config options for Koji

Introduce aliases all_admins and all_committers and also support groups in allowed_pr_authors and allowed_committers config options
Fixes packit/packit#2088
Requires packit/ogr#834
TODO:

 Write new tests or update the old ones to cover new functionality (needs packit/ogr#834)
 Update or write new documentation in packit/packit.dev. (packit/packit.dev#814)


RELEASE NOTES BEGIN
allowed_pr_authors and allowed_committers now allow specifying groups and also aliases all_admins and all_committers (corresponding to the access to the repository).
RELEASE NOTES END

Reviewed-by: Maja Massarini
Reviewed-by: Laura Barcziová
Reviewed-by: Nikola Forró
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.

2 participants