Skip to content

Commit

Permalink
fix: Test fix1
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisek committed Oct 17, 2024
1 parent 21414b2 commit 0118f26
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/vet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ export class Vet {
}

private async pullRequestGetChangedFiles(): Promise<PullRequestFile[]> {
const comparison = `${this.pullRequestBaseRef()}..${this.pullRequestHeadRef()}`
const comparison = `${this.pullRequestBaseRef()}...${this.pullRequestHeadRef()}`
core.info(`Pull request comparing: ${comparison}`)

const response = await this.octokit.rest.repos.compareCommitsWithBasehead({
Expand Down Expand Up @@ -518,6 +518,11 @@ export class Vet {
private pullRequestHeadRef(): string {
const fullName = context.payload.pull_request?.head?.repo
?.full_name as string

if ((process.env.GITHUB_REPOSITORY as string) === fullName) {
return process.env.GITHUB_HEAD_REF as string
}

return fullName.replaceAll('/', ':')
}

Expand Down

0 comments on commit 0118f26

Please sign in to comment.