Compare commits

...

2 Commits

Author SHA1 Message Date
Lucas Servén Marín
72872d91fd
Merge 20898b81a5 into 668c092af3 2025-11-27 10:27:00 +01:00
Lucas Servén Marín
20898b81a5
chore: fix GitHub spelling in logs
Whenever there is transient network failure while running this action, I see logs that incorrectly spell/case `GitHub` as `Github`. This PR fixes the issue.
2025-09-05 17:06:49 +02:00

View File

@ -102,7 +102,7 @@ async function getChangedFiles(token: string, base: string, ref: string, initial
// At the same time we don't want to fetch any code from forked repository
throw new Error(`'token' input parameter is required if action is triggered by 'pull_request_target' event`)
}
core.info('Github token is not available - changes will be detected using git diff')
core.info('GitHub token is not available - changes will be detected using git diff')
const baseSha = github.context.payload.pull_request?.base.sha
const defaultBranch = github.context.payload.repository?.default_branch
const currentRef = await git.getCurrentRef()
@ -176,7 +176,7 @@ async function getChangedFilesFromGit(base: string, head: string, initialFetchDe
// Uses github REST api to get list of files changed in PR
async function getChangedFilesFromApi(token: string, pullRequest: PullRequestEvent): Promise<File[]> {
core.startGroup(`Fetching list of changed files for PR#${pullRequest.number} from Github API`)
core.startGroup(`Fetching list of changed files for PR#${pullRequest.number} from GitHub API`)
try {
const client = github.getOctokit(token)
const per_page = 100