Skip to content

Commit

Permalink
fix: pr review 분배 기능 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
cmj7271 committed Dec 12, 2024
1 parent 0b6b612 commit 0d49de1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/random_reviewer/reviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ async function sendDiscordMsg(reviewer) {
}

function createMsg(reviewer) {
return "리뷰해주세요\n" + "* PR " + `https://github.com/${github.context.repo.owner}/
${github.context.repo.repo}/pulls/${github.context.payload.pull_request.number}`
+ "\n* 담당자: " + member[reviewer]
return "리뷰해주세요\n" + "* PR " + `https://github.com/${github.context.repo.owner}/${github.context.repo.repo}/pulls/${github.context.payload.pull_request.number}`
+ "\n* 담당자: @" + member[reviewer]
}

async function main() {
Expand All @@ -44,7 +43,7 @@ async function main() {
githubClient.rest.pulls.requestReviewers(
{
owner: github.context.repo.owner,
repo: github.context.repo,
repo: github.context.repo.repo,
pull_number: github.context.payload.pull_request.number,
reviewers: [reviewer]
}
Expand Down

0 comments on commit 0d49de1

Please sign in to comment.