-
Notifications
You must be signed in to change notification settings - Fork 71
user's permissions on Issues/PRs #100
Copy link
Copy link
Open
Labels
area/githubGitHub-forge relatedGitHub-forge relatedarea/gitlabGitLab-forge relatedGitLab-forge relatedevents/HacktoberfestParticipation in HacktoberfestParticipation in Hacktoberfestgood-first-issueGood for newcomersGood for newcomerskind/featureA request, idea, or new functionalityA request, idea, or new functionalitykind/technical-debtConsequences of previous decisionsConsequences of previous decisionspagureRelated to Pagure implementation.Related to Pagure implementation.
Description
Activity
Metadata
Metadata
Assignees
Labels
area/githubGitHub-forge relatedGitHub-forge relatedarea/gitlabGitLab-forge relatedGitLab-forge relatedevents/HacktoberfestParticipation in HacktoberfestParticipation in Hacktoberfestgood-first-issueGood for newcomersGood for newcomerskind/featureA request, idea, or new functionalityA request, idea, or new functionalitykind/technical-debtConsequences of previous decisionsConsequences of previous decisionspagureRelated to Pagure implementation.Related to Pagure implementation.
Type
Projects
- StatusShow more project fieldsbacklog
Updated by @lachmanfrantisek :
We have a lot of methods related to the permissions (e.g. who can merge/close,..)
It's not consistent, let's clean that!
Feel free to solve this in smaller parts. Just write on what you are going to work...
AC:
abstract.py(raising the
NotImplementedError)https://github.com/packit-service/ogr/blob/89435655150b8dd79ef93209c3463585d0715e0d/ogr/services/github/project.py#L219-L220
The progress is tracked in the following tables. (Any update in the comments is appreciated.)
who_can_close_issue() -> Set[str]who_can_merge_pr() -> Set[str]can_close_issue(username: str) -> boolcan_merge_pr(username: str) -> boolIssueargumentwho_can_close() -> Set[str]can_close(username: str) -> boolwho_can_close() -> Set[str]who_can_merge() -> Set[str]can_close(username: str) -> boolcan_merge(username: str) -> bool