Skip to content

Commit

Permalink
내부 로직 오류 해결
Browse files Browse the repository at this point in the history
sendDiscordMsg 의 pr.data.title 의
pr 변수 선언을 제거했던 것을 복구
  • Loading branch information
cmj7271 committed Jan 9, 2025
1 parent 3054e71 commit a57e95a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/random_reviewer/reviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ async function main() {
});
} else {console.log("already assigned reviewer exist.")}

const pr = await githubClient.rest.pulls.get(
{
owner: owner,
repo: repo,
pull_number: github.context.payload.pull_request.number
}
)

sendDiscordMsg(reviewer, pr.data.title)
.then(() => console.log("message send success"))
.catch(() => {
Expand Down

0 comments on commit a57e95a

Please sign in to comment.