Skip to content

Commit

Permalink
fix: pass default parameters for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
fpicalausa committed May 19, 2022
1 parent 506c92b commit b649484
Show file tree
Hide file tree
Showing 8 changed files with 6,051 additions and 1,398 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inputs:
description: "Regular expression defining branches name that are exempt from cleanup. Defaults to `^(main|master)$`."
required: false
default: "^(main|master)$"
exempt-protected-braches:
exempt-protected-branches:
description: "Whether protected branches are exempted"
required: false
default: "true"
Expand Down
4 changes: 2 additions & 2 deletions dist/commitComments.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Octokit } from "@octokit/core";
import { Repo, Branch } from "./types";
import { Repo, Branch, Params } from "./types";
declare type Commit = {
commitSHA: string;
};
Expand All @@ -17,7 +17,7 @@ export declare class TaggedCommitComments {
private readonly octokit;
private readonly headers;
constructor(repo: Repo, octokit: Octokit, headers: any);
static formatCommentMessage(messageTemplate: string, branch: Branch, repo: Repo): string;
static formatCommentMessage(messageTemplate: string, branch: Branch, config: Pick<Params, "daysBeforeBranchStale" | "daysBeforeBranchDelete">, repo: Repo): string;
getCommitCommentsWithTag({ commentTag, commitSHA, }: Commit & CommentTag): Promise<{
html_url: string;
url: string;
Expand Down
Loading

0 comments on commit b649484

Please sign in to comment.