Skip to content

Commit d0b823a

Browse files
Merge pull request #29 from codefresh-plugins/CR-6758-v2
Cr 6758 v2
2 parents 72b9d03 + 4ae9653 commit d0b823a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-enricher",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"private": true,
55
"scripts": {
66
"start": "node src/index.js",

src/codefresh.api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class CodefreshAPI {
5050
bigValue: {
5151
firstCommitDate: pullRequest.firstCommitDate,
5252
lastCommitDate: pullRequest.lastCommitDate,
53+
prDate: pullRequest.prDate,
5354
branch,
5455
commits: pullRequest.commits,
5556
}

src/pull-request/github/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class GithubApi {
1818
const prs = await octokit.search.issuesAndPullRequests({ q: `head:${branch}+type:pr+repo:${repo}+is:open` });
1919
return Promise.all(prs.data.items.map(async (pr) => {
2020
const info = await githubApiCommon.extractCommitsInfo(pr.number);
21-
2221
const result = {
2322
...info,
23+
prDate: pr.closed_at || pr.updated_at,
2424
number: pr.number,
2525
url: `https://${configuration.githubHost}/${repo}/pull/${pr.number}`,
2626
title: pr.title,

0 commit comments

Comments
 (0)