Skip to content

pr_deployed_date field in project_pr_metrics table #8447

Answered by dosubot bot
boraer asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @boraer! I'm Dosu, a bot here to help you solve bugs, answer questions, and become a contributor. I'm ready to assist you while we wait for a human maintainer. How can I help you today?

The pr_deployed_date field in the project_pr_metrics table is populated by retrieving deployment information for a pull request and calculating the PR deploy time. Specifically, the pr_deployed_date is set to deployment.FinishedDate if a deployment is found and its FinishedDate is not nil. Here's a snippet of the relevant code:

// Get the deployment for the PR
deployment, err := getDeploymentCommit(pr.MergeCommitSha, data.Options.ProjectName, db)
if err != nil {
    return nil, err
}

// Calculate P…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by boraer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant