Skip to content

Commit

Permalink
Bump reng to latest version
Browse files Browse the repository at this point in the history
Signed-off-by: Yoriyasu Yano <[email protected]>
  • Loading branch information
yorinasub17 committed Oct 19, 2023
1 parent ce4c86e commit 24bc901
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 15 deletions.
34 changes: 25 additions & 9 deletions deno.lock

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

2 changes: 1 addition & 1 deletion rules/sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

// fensak remove-start
import type { IChangeSetMetadata, IPatch } from "npm:@fensak-io/reng@^1.1.2";
import type { IChangeSetMetadata, IPatch } from "npm:@fensak-io/reng@^1.2.1";
// fensak remove-end

// deno-lint-ignore no-unused-vars
Expand Down
8 changes: 3 additions & 5 deletions rules/sample_test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { assert } from "https://deno.land/[email protected]/testing/asserts.ts";
import {
compileRuleFn,
emptyChangeSetMetadata,
IGitHubRepository,
patchFromGitHubPullRequest,
RuleFnSourceLang,
RuleLogMode,
runRule,
} from "npm:@fensak-io/reng@^1.1.3";
} from "npm:@fensak-io/reng@^1.2.1";
import { Octokit } from "npm:@octokit/rest@^20.0.0";

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

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

Expand Down

0 comments on commit 24bc901

Please sign in to comment.