Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/staging-deploy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,18 @@ jobs:
name: prRepoName
}
} = run
const headLabel = `${prRepoOwner}:${headBranch}`

const prIsInternal = owner === prRepoOwner && repo === prRepoName
let headLabel = `${prRepoOwner}:${headBranch}`

// If the PR is external, prefix its head branch name with the
// forked repo owner's login and their fork repo name e.g.
// "octocat/my-fork:docs". We need to include the fork repo
// name as well to account for an API issue (this will work fine
// if they don't have a different fork repo name).
if (!prIsInternal) {
headLabel = `${prRepoOwner}/${prRepoName}:${headBranch}`
}

// If the PR is external, prefix its head branch name with the
// forked repo owner's login, e.g. "octocat:docs"
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"eslint-plugin-promise": "^5.1.0",
"event-to-promise": "^0.8.0",
"glob": "^7.2.0",
"graphql": "^15.5.3",
"graphql": "^15.6.1",
"heroku-client": "^3.1.0",
"http-status-code": "^2.1.0",
"husky": "^7.0.2",
Expand All @@ -163,7 +163,7 @@
"npm-merge-driver-install": "^2.0.1",
"object-hash": "^2.2.0",
"postcss": "^8.3.6",
"prettier": "^2.4.0",
"prettier": "^2.4.1",
"replace": "^1.2.1",
"rimraf": "^3.0.2",
"robots-parser": "^2.3.0",
Expand Down