We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d71a579 commit 4583273Copy full SHA for 4583273
.changeset/chilled-items-fail.md
@@ -0,0 +1,5 @@
1
+---
2
+"builder-util": patch
3
4
+
5
+feat: add Github Actions environment variable to isPullRequest method to detect if build is a PR
packages/builder-util/src/util.ts
@@ -327,7 +327,11 @@ export function isPullRequest() {
327
}
328
329
return (
330
- isSet(process.env.TRAVIS_PULL_REQUEST) || isSet(process.env.CIRCLE_PULL_REQUEST) || isSet(process.env.BITRISE_PULL_REQUEST) || isSet(process.env.APPVEYOR_PULL_REQUEST_NUMBER)
+ isSet(process.env.TRAVIS_PULL_REQUEST) ||
331
+ isSet(process.env.CIRCLE_PULL_REQUEST) ||
332
+ isSet(process.env.BITRISE_PULL_REQUEST) ||
333
+ isSet(process.env.APPVEYOR_PULL_REQUEST_NUMBER) ||
334
+ isSet(process.env.GITHUB_BASE_REF)
335
)
336
337
0 commit comments