Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ outputs:

runs:
using: 'docker'
image: 'docker://ghcr.io/paritytech/review-bot/action:2.7.1'
image: 'docker://ghcr.io/paritytech/review-bot/action:2.7.2'
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ module.exports = {
preset: "ts-jest",
testEnvironment: "node",
testMatch: [__dirname + "/src/**/test/**/*.test.ts"],
testPathIgnorePatterns: ["/node_modules/", "/src/test/fellows\\.test\\.ts"],
};
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "review-bot",
"version": "2.7.1",
"version": "2.7.2",
"description": "Have custom review rules for PRs with auto assignment",
"main": "src/index.ts",
"scripts": {
Expand All @@ -27,26 +27,27 @@
"homepage": "https://github.com/paritytech/review-bot#readme",
"devDependencies": {
"@eng-automation/js-style": "^3.1.0",
"@octokit/webhooks-types": "^7.3.1",
"@types/jest": "^29.5.11",
"@vercel/ncc": "^0.38.1",
"@octokit/webhooks-types": "^7.6.1",
"@types/jest": "^29.5.14",
"@vercel/ncc": "^0.38.4",
"jest": "^29.7.0",
"jest-mock-extended": "^3.0.5",
"ts-jest": "^29.1.2",
"typescript": "^5.4.5"
"jest-mock-extended": "^3.0.7",
"ts-jest": "^29.4.5",
"typescript": "^5.9.3"
},
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.1",
"@eng-automation/js": "^2.2.0",
"@polkadot-api/descriptors": "portal:.papi/descriptors",
"joi": "^17.13.1",
"polkadot-api": "^1.13.0",
"smoldot": "^2.0.35",
"yaml": "^2.3.4"
"joi": "^17.13.3",
"polkadot-api": "^1.20.0",
"smoldot": "^2.0.39",
"yaml": "^2.8.1"
},
"packageManager": "[email protected]",
"resolutions": {
"@polkadot-api/descriptors": "portal:./.papi/descriptors"
"@polkadot-api/descriptors": "portal:./.papi/descriptors",
"joi": "^17.13.3"
}
}
1 change: 1 addition & 0 deletions src/test/rules/andDistinct.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe("'AndDistinctRule' rule parsing", () => {
let teamsApi: MockProxy<PolkadotFellows>;
beforeEach(() => {
api = mock<PullRequestApi>();
teamsApi = mock<PolkadotFellows>();
runner = new ActionRunner(api, teamsApi, mock<PolkadotFellows>(), mock<GitHubChecksApi>(), mock<ActionLogger>());
});
test("should get minimal config", async () => {
Expand Down
1 change: 1 addition & 0 deletions src/test/rules/andRule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe("'And' rule parsing", () => {
let teamsApi: MockProxy<PolkadotFellows>;
beforeEach(() => {
api = mock<PullRequestApi>();
teamsApi = mock<PolkadotFellows>();
runner = new ActionRunner(api, teamsApi, mock<PolkadotFellows>(), mock<GitHubChecksApi>(), mock<ActionLogger>());
});
test("should get minimal config", async () => {
Expand Down
1 change: 1 addition & 0 deletions src/test/rules/basicRule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe("Basic rule parsing", () => {
let teamsApi: MockProxy<PolkadotFellows>;
beforeEach(() => {
api = mock<PullRequestApi>();
teamsApi = mock<PolkadotFellows>();
runner = new ActionRunner(api, teamsApi, mock<PolkadotFellows>(), mock<GitHubChecksApi>(), mock<ActionLogger>());
});
test("should get minimal config", async () => {
Expand Down
1 change: 1 addition & 0 deletions src/test/rules/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe("Config Parsing", () => {
beforeEach(() => {
logger = mock<ActionLogger>();
api = mock<PullRequestApi>();
teamsApi = mock<TeamApi>();
runner = new ActionRunner(api, teamsApi, mock<PolkadotFellows>(), mock<GitHubChecksApi>(), logger);
});
test("should get minimal config", async () => {
Expand Down
1 change: 1 addition & 0 deletions src/test/rules/or.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe("'Or' rule parsing", () => {
let teamsApi: MockProxy<TeamApi>;
beforeEach(() => {
api = mock<PullRequestApi>();
teamsApi = mock<TeamApi>();
runner = new ActionRunner(api, teamsApi, mock<PolkadotFellows>(), mock<GitHubChecksApi>(), mock<ActionLogger>());
});
test("should get minimal config", async () => {
Expand Down
Loading