-
Notifications
You must be signed in to change notification settings - Fork 845
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 gitlab contributors for issues #2718
Conversation
Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
@@ -689,6 +689,51 @@ def extract_needed_contributor_data(contributor, tool_source, tool_version, data | |||
|
|||
return contributor | |||
|
|||
def extract_needed_gitlab_contributor_data(contributor, tool_source, tool_version, data_source): |
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.
[pylint] reported by reviewdog 🐶
C0116: Missing function or method docstring (missing-function-docstring)
|
||
return contributor | ||
|
||
|
||
def extract_needed_clone_history_data(clone_history_data:List[dict], repo_id:int): |
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.
[pylint] reported by reviewdog 🐶
C0116: Missing function or method docstring (missing-function-docstring)
|
||
return issue_ids | ||
|
||
def process_issue_contributors(issue, tool_source, tool_version, data_source): |
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.
[pylint] reported by reviewdog 🐶
C0116: Missing function or method docstring (missing-function-docstring)
@@ -270,6 +294,7 @@ def process_gitlab_issue_messages(data, task_name, repo_id, logger, augur_db): | |||
issue_number_to_id_map[issue.gh_issue_number] = issue.issue_id | |||
|
|||
message_dicts = [] | |||
contributors = [] | |||
message_ref_mapping_data = {} | |||
for id, messages in data.items(): |
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.
[pylint] reported by reviewdog 🐶
W0622: Redefining built-in 'id' (redefined-builtin)
@@ -318,3 +352,12 @@ def process_gitlab_issue_messages(data, task_name, repo_id, logger, augur_db): | |||
augur_db.insert_data(issue_message_ref_dicts, IssueMessageRef, issue_message_ref_natural_keys) | |||
|
|||
|
|||
def process_gitlab_comment_contributors(message, tool_source, tool_version, data_source): |
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.
[pylint] reported by reviewdog 🐶
C0116: Missing function or method docstring (missing-function-docstring)
@@ -101,14 +101,14 @@ def primary_repo_collect_phase_gitlab(repo_git): | |||
logger = logging.getLogger(primary_repo_collect_phase_gitlab.__name__) |
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.
[pylint] reported by reviewdog 🐶
W0612: Unused variable 'logger' (unused-variable)
@@ -129,6 +129,19 @@ class GithubUUID(AugurUUID): | |||
def __init__(self): | |||
super().__init__(platform = 1) | |||
|
|||
class GitlabUUID(AugurUUID): |
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.
[pylint] reported by reviewdog 🐶
C0115: Missing class docstring (missing-class-docstring)
|
||
def __init__(self): | ||
super().__init__(platform = 2) | ||
|
||
class UnresolvableUUID(GithubUUID): |
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.
[pylint] reported by reviewdog 🐶
C0115: Missing class docstring (missing-class-docstring)
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
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.
LGTM.
Signed-off-by: Isaac Milarsky <krabs@tilde.team>
@@ -312,8 +312,10 @@ def process_mr_metadata(data, task_name, repo_id, logger, augur_db): | |||
for id, metadata in data.items(): |
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.
[pylint] reported by reviewdog 🐶
W0622: Redefining built-in 'id' (redefined-builtin)
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.
Tested and works! LGTM
Description
Signed commits