Skip to content

Commit

Permalink
fix types?
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen1 committed Oct 24, 2024
1 parent 97871eb commit fc3135f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 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.

11 changes: 4 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,13 @@ function statusToMessage(status: Status): string {
}

function combinedStatusToStatus(
status: GetResponseDataTypeFromEndpointMethod<
statuses: GetResponseDataTypeFromEndpointMethod<
Octokit['rest']['repos']['getCombinedStatusForRef']
>,
>['statuses'],
ignored: string
): Status {
const statusByContext: Record<
string,
[typeof status['statuses'][number], Status]
> = {};
status.statuses.forEach(simpleStatus => {
const statusByContext: Record<string, [typeof statuses[number], Status]> = {};
statuses.forEach(simpleStatus => {
if (shouldIgnoreCheck(ignored, simpleStatus.context)) {
return;
}
Expand Down

0 comments on commit fc3135f

Please sign in to comment.