Skip to content

Commit 5dd46eb

Browse files
Exui 3114 tool to improve pr review v13 (#18)
* fix for typos * updated release version
1 parent b1475eb commit 5dd46eb

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

prBot/RELEASE-NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Version 1.0.8
2+
EXUI-3114 Investigate automation tool to improve PR review process
3+
14
Version 1.0.7
25
EXUI-3114 Investigate automation tool to improve PR review process
36

prBot/dist/prBot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ const github = {
9393
};
9494

9595
const reviews = await httpRequest(CONFIG.GITHUB_API_BASE, path, 'GET', headers),
96-
approved = reviews.filter(review => review.state === 'APPROVED').length,
97-
changesRequested = reviews.filter(review => review.state === 'CHANGES_REQUESTED').length;
96+
approvedCount = reviews.filter(review => review.state === 'APPROVED').length,
97+
changesRequestedCount = reviews.filter(review => review.state === 'CHANGES_REQUESTED').length;
9898

99-
return { approved, changesRequested };
99+
return { approvedCount, changesRequestedCount };
100100
}
101101
};
102102

prBot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hmcts/pr-bot",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "A bot to be used in Github Actions which posts to Slack contextual information about pull requests.",
55
"main": "dist/index.js",
66
"bin": {

0 commit comments

Comments
 (0)