Skip to content

Commit

Permalink
chore: empty string test
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Oct 8, 2024
1 parent c372b6e commit c8eaf08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/empty-string-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ async function run() {
const headSha = pullRequest.head.sha;

// Fetch all remote branches and tags
await git.fetch(["--all"]);
await git.fetch(["origin", baseSha, headSha]);

// Get the diff of the pull request using the SHAs
const diff = await git.diff([`origin/${baseRef}...${headSha}`]);
const diff = await git.diff([`${baseSha}...${headSha}`]);

const violations = parseDiffForEmptyStrings(diff);

Expand Down

0 comments on commit c8eaf08

Please sign in to comment.