Skip to content

Commit

Permalink
chore: bump everything (#254)
Browse files Browse the repository at this point in the history
#### What this PR does / why we need it:

Bump everything.
  • Loading branch information
fuxingloh authored Feb 13, 2024
1 parent 8bcc0bf commit 4ce3024
Show file tree
Hide file tree
Showing 14 changed files with 63,177 additions and 38,638 deletions.
24 changes: 13 additions & 11 deletions __tests__/checks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ import * as fs from 'fs';
import { checks, is, StatusCheck } from '../src/checks';

const client: InstanceType<typeof GitHub> = {
repos: {
// @ts-ignore
getContent(params) {
if (params?.path) {
return {
data: {
content: fs.readFileSync(params.path, 'utf8'),
encoding: 'utf-8',
},
};
}
rest: {
repos: {
// @ts-ignore
getContent(params) {
if (params?.path) {
return {
data: {
content: fs.readFileSync(params.path, 'utf8'),
encoding: 'utf-8',
},
};
}
},
},
},
};
Expand Down
50 changes: 26 additions & 24 deletions __tests__/labeler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,35 @@ import { Config, getConfig } from '../src/config';
import * as fs from 'fs';

const client: InstanceType<typeof GitHub> = {
repos: {
// @ts-ignore
getContent(params) {
if (params?.path) {
return {
data: {
content: fs.readFileSync(params.path, 'utf8'),
encoding: 'utf-8',
},
};
}
rest: {
repos: {
// @ts-ignore
getContent(params) {
if (params?.path) {
return {
data: {
content: fs.readFileSync(params.path, 'utf8'),
encoding: 'utf-8',
},
};
}
},
},
},
pulls: {
listCommits: {
endpoint: {
// @ts-ignore
merge() {
return {};
pulls: {
listCommits: {
endpoint: {
// @ts-ignore
merge() {
return {};
},
},
},
},
listFiles: {
endpoint: {
// @ts-ignore
merge() {
return {};
listFiles: {
endpoint: {
// @ts-ignore
merge() {
return {};
},
},
},
},
Expand Down
14 changes: 8 additions & 6 deletions __tests__/matcher/commits.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import { Config } from '../../src/config';
async function getMatchedLabels(config: Config): Promise<string[]> {
return match(
{
pulls: {
listCommits: {
endpoint: {
// @ts-ignore
merge(params) {
return { pull_number: params.pull_number };
rest: {
pulls: {
listCommits: {
endpoint: {
// @ts-ignore
merge(params) {
return { pull_number: params.pull_number };
},
},
},
},
Expand Down
14 changes: 8 additions & 6 deletions __tests__/matcher/files.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import { Config } from '../../src/config';
async function getMatchedLabels(config: Config): Promise<string[]> {
return match(
{
pulls: {
listFiles: {
endpoint: {
// @ts-ignore
merge(params) {
return { pull_number: params.pull_number };
rest: {
pulls: {
listFiles: {
endpoint: {
// @ts-ignore
merge(params) {
return { pull_number: params.pull_number };
},
},
},
},
Expand Down
Loading

0 comments on commit 4ce3024

Please sign in to comment.