Skip to content

Commit

Permalink
Bump reng to the latest version to show example of targetBranch
Browse files Browse the repository at this point in the history
Signed-off-by: Yoriyasu Yano <[email protected]>
  • Loading branch information
yorinasub17 committed Oct 18, 2023
1 parent a3d7af9 commit ce4c86e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions deno.lock

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

7 changes: 5 additions & 2 deletions rules/sample_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
RuleFnSourceLang,
RuleLogMode,
runRule,
} from "npm:@fensak-io/reng@^1.1.2";
} from "npm:@fensak-io/reng@^1.1.3";
import { Octokit } from "npm:@octokit/rest@^20.0.0";

const __dirname = new URL(".", import.meta.url).pathname;
Expand All @@ -24,7 +24,10 @@ const testRepo: IGitHubRepository = {
const opts = { logMode: RuleLogMode.Console };

Deno.test("No changes should be approved", async () => {
const result = await runRule(ruleFn, [], { sourceBranch: "foo" }, opts);
const result = await runRule(ruleFn, [], {
sourceBranch: "foo",
targetBranch: "bar",
}, opts);
assert(result.approve);
});

Expand Down

0 comments on commit ce4c86e

Please sign in to comment.