Skip to content

Commit

Permalink
revert githubservice renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
HasanHajHasan committed Dec 23, 2024
1 parent aa25ddc commit 7718ab6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/github-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface IFile {
status: string
}

export default class GithubService {
export default class GitHubService {
private readonly octokit

constructor(gitHubToken: string) {
Expand Down
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as core from '@actions/core'
import {context} from '@actions/github'
import {isTrustedAuthor} from './author-checker'
import GithubService, {IFile} from './github-service'
import GitHubService, {IFile} from './github-service'
import {checkChangedFilesAgainstPattern} from './pattern-matcher'

export async function run(): Promise<void> {
Expand All @@ -19,10 +19,10 @@ export async function run(): Promise<void> {
)
}
const githubToken: string = core.getInput('githubToken', {required: true})
const githubService = new GithubService(githubToken)
const gitHubService = new GitHubService(githubToken)
const pullRequestNumber: number = context.payload.pull_request?.number || 0
if (pullRequestNumber) {
const files: IFile[] = await githubService.getChangedFiles(
const files: IFile[] = await gitHubService.getChangedFiles(
context.repo.owner,
context.repo.repo,
pullRequestNumber
Expand All @@ -33,7 +33,7 @@ export async function run(): Promise<void> {
await checkChangedFilesAgainstPattern(
files,
pattern,
githubService,
gitHubService,
context.repo.repo,
context.repo.owner,
pullRequestNumber,
Expand Down
4 changes: 2 additions & 2 deletions src/pattern-matcher.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as core from '@actions/core'
import GithubService, {IFile} from './github-service'
import GitHubService, {IFile} from './github-service'

export async function checkChangedFilesAgainstPattern(
files: IFile[],
pattern: string,
githubService: GithubService,
githubService: GitHubService,
repo: string,
owner: string,
pullRequestNumber: number,
Expand Down

0 comments on commit 7718ab6

Please sign in to comment.