Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
tot-ra committed Sep 12, 2023
1 parent 34528ab commit a0f421f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11030,7 +11030,8 @@ async function reviewPR() {
const commit_msg = data.repository.pullRequest.commits.edges[0].node.commit.message
RAW_TEXT += `Commit message is "${commit_msg}".`

for(msg of data.repository.pullRequest.commits.edges[0].node.commit.tree.entries){
for(let msg of data.repository.pullRequest.commits.edges[0].node.commit.tree.entries){
console.log(msg)
if (msg.object?.text.length > 0) {
RAW_TEXT += `File "${msg.path}" contents: ${msg.object.text}`
}
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ async function reviewPR() {
const commit_msg = data.repository.pullRequest.commits.edges[0].node.commit.message
RAW_TEXT += `Commit message is "${commit_msg}".`

for(msg of data.repository.pullRequest.commits.edges[0].node.commit.tree.entries){
for(let msg of data.repository.pullRequest.commits.edges[0].node.commit.tree.entries){
console.log(msg)
if (msg.object?.text.length > 0) {
RAW_TEXT += `File "${msg.path}" contents: ${msg.object.text}`
}
Expand Down

0 comments on commit a0f421f

Please sign in to comment.