Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Updated documentation for get workflow origin
  • Loading branch information
potiuk committed Oct 28, 2020
1 parent 763f8d7 commit 15d83ef87a7549dc36622ec5bbe20e15849cecf7
Showing 3 changed files with 5 additions and 4 deletions.
@@ -2,7 +2,7 @@
<img alt="get-workflow-origin status"
src="https://github.com/potiuk/get-workflow-origin/workflows/Test%20the%20build/badge.svg"></a>

# Get Workflow Runs action
# Get Workflow Origin action


<!-- START doctoc generated TOC please keep comment here to allow auto update -->
@@ -24,7 +24,8 @@
# Context and motivation

Get Workflow Origin is an action that provides information about the pull requests that triggered the
workflow for the `workflow_run` and `pull_request` events.
workflow for the `pull_request` and `pull_request_review` events or for the `workflow_run` event
that is triggered by one of those events.

Often in those events you want to get more information about the source run than the
one provided directly via GitHub context.
@@ -1486,7 +1486,7 @@ function findPullRequest(octokit, owner, repo, headRepo, headBranch, headSha) {
return __awaiter(this, void 0, void 0, function* () {
// Finds Pull request for this workflow run
core.info(`\nFinding PR request id for: owner: ${owner}, Repo:${repo}, Head:${headRepo}:${headBranch}.\n`);
const pullRequests = yield octokit.paginate(octokit.pulls.list({
const pullRequests = yield octokit.paginate(yield octokit.pulls.list({
owner,
repo,
head: `${headRepo}:${headBranch}`
@@ -44,7 +44,7 @@ async function findPullRequest(
`\nFinding PR request id for: owner: ${owner}, Repo:${repo}, Head:${headRepo}:${headBranch}.\n`
)
const pullRequests = await octokit.paginate(
octokit.pulls.list({
await octokit.pulls.list({
owner,
repo,
head: `${headRepo}:${headBranch}`

0 comments on commit 15d83ef

Please sign in to comment.