Skip to content

Commit

Permalink
chore: added OWNER as a collborator status
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Aug 18, 2024
1 parent d404c11 commit b6b4f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function getMergeTimeoutAndApprovalRequiredCount(context: Context,
mergeTimeout: context.config.mergeTimeout.contributor,
requiredApprovalCount: context.config.approvalsRequired.contributor,
};
return authorAssociation === "COLLABORATOR" || authorAssociation === "MEMBER" ? timeoutCollaborator : timeoutContributor;
return ["COLLABORATOR", "MEMBER", "OWNER"].includes(authorAssociation) ? timeoutCollaborator : timeoutContributor;
}

export async function getApprovalCount({ octokit, logger }: Context, { owner, repo, issue_number: pullNumber }: IssueParams) {
Expand Down Expand Up @@ -151,7 +151,7 @@ export async function getOpenPullRequests(context: Context, targets: ReposWatchS
}

export async function mergePullRequest(context: Context, { repo, owner, issue_number: pullNumber }: IssueParams) {
await context.octokit.pulls.merge({
await context.octokit.rest.pulls.merge({
owner,
repo,
pull_number: pullNumber,
Expand Down

0 comments on commit b6b4f0e

Please sign in to comment.