Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
datpmt committed Dec 2, 2024
1 parent 627df08 commit 78a32da
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ console.log(`REPO: ${repo}`);
console.log(`PULL_NUMBER: ${pullNumber}`);
console.log(`COMMIT_ID: ${commitId}`);

async function sendPostRequest({ githubToken, repo, pullNumber, commitId, body, path, line }) {
async function sendPostRequest({ body, path, line }) {
const url = `https://api.github.com/repos/${repo}/pulls/${pullNumber}/comments`;

const data = {
Expand Down Expand Up @@ -82,10 +82,6 @@ async function processTypos() {
if (parsedTypos) {
for (const typo of parsedTypos) {
const response = await sendPostRequest({
owner,
repo,
pullNumber,
commitId,
body: `Please check this code. Replace '${typo.incorrectWord}' with '${typo.correctWord}'`,
path: typo.file,
line: typo.line
Expand Down

0 comments on commit 78a32da

Please sign in to comment.