Skip to content

Commit fe1a256

Browse files
Exui 3114 tool to improve pr review v15 (#20)
* backwards compatibility fix for pr approvals for prs not in state.json * updated release version
1 parent 0d11eff commit fe1a256

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-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.10
2+
EXUI-3114 Investigate automation tool to improve PR review process
3+
14
Version 1.0.9
25
EXUI-3114 Investigate automation tool to improve PR review process
36

prBot/dist/prBot.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,15 @@ async function handlePRReview(event) {
403403
// remove from state
404404
await stateManager.removePR(repo, prNumber)
405405
} else {
406-
await stateManager.updatePR(repo, prNumber, {
406+
await stateManager.updatePR(repo, prNumber, {
407+
number: prNumber,
408+
title: prTitle,
409+
author: prAuthor,
410+
url: `https://github.com/${repo}/pull/${prNumber}`,
411+
changesRequested: changesRequestedCount > 0,
407412
approvals: approvedCount,
408-
changesRequested: changesRequestedCount > 0
409-
})
413+
createdAt: new Date().toISOString()
414+
});
410415
}
411416

412417
await repostApprovalList();

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.9",
3+
"version": "1.0.10",
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)