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

[enriched] Add code to calculate github pull requests enriched data #401

Merged
merged 1 commit into from
Jul 12, 2018

Conversation

aswanipranjal
Copy link
Contributor

Added code to calculate

  • Enriched PR data
  • The following GMD code development metrics:
    • forks
    • code merge duration
    • number of review comments
    • Maintainer Response to Merge Request Duration

closes #394

@aswanipranjal
Copy link
Contributor Author

@acs, @valeriocos, @jgbarah Please review?

@valeriocos valeriocos self-requested a review July 11, 2018 13:21
Copy link
Member

@valeriocos valeriocos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @acs if you agree, we can merge this PR

rich_pr['user_login'] = pull_request['user']['login']
user = pull_request['user_data']

if user is not None and user:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the participants data must come from SH directly, We must not add it here unless we need data that is not included in SH.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@acs that data is also being added when we enrich an issue. Should I remove that too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, in both cases we need to generate the identities information from SH, like we do in the rest of enrichers. At least, the information that it is included in SH. Using the git enriched, this is done using:

I need to take a look to fix how identities are filled in github enricher for issues. If you want to play with this idea and reach a PR; I will be happy to review it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I'll try to understand better how identities are being added in the github enricher and make a PR.

Can we merge this for now, then? Because I'd also like to add the fields for the GMD code development metrics which are dependent on github pull request enrich data.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think so. If it is following what is done in github issues enricher. once we fix the current one, we can fix the new one.

@acs acs merged commit ac7c8e9 into chaoss:master Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[github pull requests] Add support for github pull requests
3 participants