File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " github-enricher" ,
3
- "version" : " 1.0.8 " ,
3
+ "version" : " 1.0.9 " ,
4
4
"private" : true ,
5
5
"scripts" : {
6
6
"start" : " node src/index.js" ,
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class CodefreshAPI {
50
50
bigValue : {
51
51
firstCommitDate : pullRequest . firstCommitDate ,
52
52
lastCommitDate : pullRequest . lastCommitDate ,
53
+ prDate : pullRequest . prDate ,
53
54
branch,
54
55
commits : pullRequest . commits ,
55
56
}
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ class GithubApi {
18
18
const prs = await octokit . search . issuesAndPullRequests ( { q : `head:${ branch } +type:pr+repo:${ repo } +is:open` } ) ;
19
19
return Promise . all ( prs . data . items . map ( async ( pr ) => {
20
20
const info = await githubApiCommon . extractCommitsInfo ( pr . number ) ;
21
-
22
21
const result = {
23
22
...info ,
23
+ prDate : pr . closed_at || pr . updated_at ,
24
24
number : pr . number ,
25
25
url : `https://${ configuration . githubHost } /${ repo } /pull/${ pr . number } ` ,
26
26
title : pr . title ,
You can’t perform that action at this time.
0 commit comments