Skip to content

Commit

Permalink
feat: 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Tekiter committed Nov 17, 2023
1 parent 79a55b1 commit 7b71b45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/randomReviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ const headers = {
};

const getPullRequest = async () => {
const response = await fetch(`https://api.github.com/repos/repos/${owner}/${repo}/pulls/${prNumber}`, {
const response = await fetch(`https://api.github.com/repos/${owner}/${repo}/pulls/${prNumber}`, {
method: 'GET',
headers,
});

if (!response.ok) {
console.log(`https://api.github.com/repos/${owner}/${repo}/pulls/${prNumber}`);
console.error(await response.text());
throw new Error('PR 정보를 읽어오는데 실패했어요.');
}
Expand Down

0 comments on commit 7b71b45

Please sign in to comment.