Skip to content

Commit 0317fe1

Browse files
thenabeelvmcj
authored andcommitted
Fixed the build
1 parent 650668e commit 0317fe1

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

Diff for: .gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,6 @@ Thumbs.db
9696

9797
# Ignore built ts files
9898
__tests__/runner/*
99-
lib/**/*
99+
lib/**/*
100+
101+
.idea

Diff for: action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'action-php-codesniffer'
1+
name: 'action-phpcs'
22
description: 'Runs PHP_CodeSniffer on files changed in current PR or even only on lines by author of PR'
33
author: 'Konstantin Vyatkin <[email protected]>'
44
inputs:

Diff for: src/get-changed-file.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export async function getChangedFiles(): Promise<ChangedFiles> {
1919
const globs = pattern.length ? pattern.split(',') : ['**.php'];
2020
const isMatch = picomatch(globs);
2121
console.log('Filter patterns:', globs, isMatch('src/test.php'));
22-
const payload = github.context.payload as Webhooks.WebhookPayloadPullRequest;
22+
const payload = github.context
23+
.payload as Webhooks.EventPayloads.WebhookPayloadPullRequest;
2324

2425
/*
2526
getting them from Git

Diff for: src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ async function run(): Promise<void> {
3737
}
3838
}
3939

40-
run();
40+
void run();

Diff for: src/run-on-blame.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export async function runOnBlame(files: string[]): Promise<void> {
2727
}
2828

2929
// blame files and output relevant errors
30-
const payload = github.context
31-
.payload as Webhooks.WebhookPayloadPullRequest;
30+
// const payload = github.context
31+
// .payload as Webhooks.EventPayloads.WebhookPayloadPullRequest;
3232
// get email of author of first commit in PR
3333
const authorEmail = execFileSync(
3434
'git',

0 commit comments

Comments
 (0)