Skip to content

Commit

Permalink
Rename pullRequestsMatching to pullRequestsForCommit.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Dec 9, 2020
1 parent b30e753 commit 29335cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function isDoNotMergeLabel(string: string): boolean {
return match != null
}

async function pullRequestsMatching(
async function pullRequestsForCommit(
octokit: Octokit,
repo: Repo,
branch: String | null,
Expand Down Expand Up @@ -170,7 +170,7 @@ export async function pullRequestsForCheckSuite(octokit: Octokit, checkSuite: Ch
let pullRequests = checkSuite.pull_requests?.map(({ number }) => number) ?? []

if (pullRequests.length === 0)
pullRequests = await pullRequestsMatching(
pullRequests = await pullRequestsForCommit(
octokit,
checkSuite.repository,
checkSuite.head_branch,
Expand All @@ -187,7 +187,7 @@ export async function pullRequestsForWorkflowRun(
let pullRequests = workflowRun.pull_requests?.map(({ number }) => number) ?? []

if (pullRequests.length === 0)
pullRequests = await pullRequestsMatching(
pullRequests = await pullRequestsForCommit(
octokit,
workflowRun.head_repository,
workflowRun.head_branch,
Expand Down

0 comments on commit 29335cb

Please sign in to comment.