Skip to content

Commit 61f87a1

Browse files
squatsaschabratton
andauthored
chore: fix GitHub spelling in logs (#278)
* chore: fix GitHub spelling in logs * fix: rebuild dist --------- Co-authored-by: Sascha Bratton <sascha@queen.one>
1 parent b82ff81 commit 61f87a1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ async function getChangedFiles(token, base, ref, initialFetchDepth) {
640640
// At the same time we don't want to fetch any code from forked repository
641641
throw new Error(`'token' input parameter is required if action is triggered by 'pull_request_target' event`);
642642
}
643-
core.info('Github token is not available - changes will be detected using git diff');
643+
core.info('GitHub token is not available - changes will be detected using git diff');
644644
const baseSha = (_a = github.context.payload.pull_request) === null || _a === void 0 ? void 0 : _a.base.sha;
645645
const defaultBranch = (_b = github.context.payload.repository) === null || _b === void 0 ? void 0 : _b.default_branch;
646646
const currentRef = await git.getCurrentRef();
@@ -710,7 +710,7 @@ async function getChangedFilesFromGit(base, head, initialFetchDepth) {
710710
}
711711
// Uses github REST api to get list of files changed in PR
712712
async function getChangedFilesFromApi(token, pullRequest) {
713-
core.startGroup(`Fetching list of changed files for PR#${pullRequest.number} from Github API`);
713+
core.startGroup(`Fetching list of changed files for PR#${pullRequest.number} from GitHub API`);
714714
try {
715715
const client = github.getOctokit(token);
716716
const per_page = 100;

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async function getChangedFiles(token: string, base: string, ref: string, initial
107107
// At the same time we don't want to fetch any code from forked repository
108108
throw new Error(`'token' input parameter is required if action is triggered by 'pull_request_target' event`)
109109
}
110-
core.info('Github token is not available - changes will be detected using git diff')
110+
core.info('GitHub token is not available - changes will be detected using git diff')
111111
const baseSha = github.context.payload.pull_request?.base.sha
112112
const defaultBranch = github.context.payload.repository?.default_branch
113113
const currentRef = await git.getCurrentRef()
@@ -194,7 +194,7 @@ async function getChangedFilesFromGit(base: string, head: string, initialFetchDe
194194

195195
// Uses github REST api to get list of files changed in PR
196196
async function getChangedFilesFromApi(token: string, pullRequest: PullRequest): Promise<File[]> {
197-
core.startGroup(`Fetching list of changed files for PR#${pullRequest.number} from Github API`)
197+
core.startGroup(`Fetching list of changed files for PR#${pullRequest.number} from GitHub API`)
198198
try {
199199
const client = github.getOctokit(token)
200200
const per_page = 100

0 commit comments

Comments
 (0)