thoth-station / mi

an experiment on Source Operation Metrics
GNU General Public License v3.0
6 stars 10 forks source link

Add commenters and crossref metadata #576

Closed xtuchyna closed 2 years ago

xtuchyna commented 2 years ago

Related Issues and Dependencies

Closes #575

This introduces a breaking change

This should yield a new module release

This Pull Request implements

Comments metadata

Description

New metadata added for issue entity:

            "first_response_at"
            "commenters_number"
            "comments_number"
            "comments"
            "cross_references"
            "cross_references_number"

Example

Example of one entry inside the collected entity:

{
...
"first_comment_response_at":1618954258,
"commenters_number":3,
"comments_number":4,

"comments":[{"created_at":1618954258.0,"created_by":"sesheta","body":"Issues go stale after 90d of inactivity.\nMark the issue as fresh with `\/remove-lifecycle stale`.\nStale issues rot after an additional 30d of inactivity and eventually close.\n\nIf this issue is safe to close now please do so with `\/close`.\n\n\/lifecycle stale"},{"created_at":1621552864.0,"created_by":"sesheta","body":"Stale issues rot after 30d of inactivity.\nMark the issue as fresh with `\/remove-lifecycle rotten`.\nRotten issues close after an additional 30d of inactivity.\n\nIf this issue is safe to close now please do so with `\/close`.\n\n\/lifecycle rotten"},{"created_at":1623745720.0,"created_by":"goern","body":"\/priority awaiting-more-evidence "},{"created_at":1623839149.0,"created_by":"xtuchyna","body":"I think that this can be closed. We want to analyze all of kebechet repos, not just the active ones. Then we can derive speicific information on which managers are used."}],

"cross_references":["https:\/\/api.github.com\/repos\/thoth-station\/mi-scheduler\/issues\/61","https:\/\/api.github.com\/repos\/thoth-station\/mi-scheduler\/issues\/149"],
"cross_references_number":2,
...
}

Data File Example

From mi-scheduler repository: Issue.zip

xtuchyna commented 2 years ago

/hold

xtuchyna commented 2 years ago

/unhold

xtuchyna commented 2 years ago

/approve

sesheta commented 2 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: xtuchyna

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/thoth-station/mi/blob/master/OWNERS)~~ [xtuchyna] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment