Comments (5)
well whatdya know, I now found myself needing to know if I'm in a PR or not, so I guess I'm gonna write this one too
from buildhelpers.
Should probably be possible.
AppVeyor has 5 variables that get set in the case of a pull request.
Gitlab CI calls these merge requests and has a bunch of variables like CI_MERGE_REQUEST_*
that are only present for a merge request
Jenkins will set CHANGE_ID if you're using the github plugins, though it may trigger when building a branch as well (this says it's only set for a pull request, this says it would be set for both a PR and building a different branch
TeamCity: what a disaster I have no idea...
Azure pipelines has Build_Reason
which could be PullRequest
.
Bamboo: I'm not sure bamboo even supports builds on pull requests...
GoCD: this appears to be the goto plugin for github pull requests and it sets a number of variables for PRs
Travis CI has TRAVIS_EVENT_TYPE
which could be pull_request
Github Actions has GITHUB_EVENT_NAME
which would be pull_request
@RamblingCookieMonster if you think this is useful I can give it a try, doesn't look like it should be too hard.
from buildhelpers.
@bryan5989 what Ci system do you use?
from buildhelpers.
from buildhelpers.
Well that's two environments I don't use, so that'll be two more environments that some can actually validate
from buildhelpers.
Related Issues (20)
- If you're going to just copy my module into yours .... HOT 1
- Get-BuildVariable: inconsistent commit message detection HOT 3
- Get-BuildVariable: inconsistent PATH parameter usage HOT 11
- Add build checks in Azure Pipelines
- Add support for -Credential <pscredential> in Get-NextNugetPackageVersion and Find-Nugetpackage
- Import-Metadata should be exported
- Strange error when using Set-ModuleFunctions during AppVeyor build HOT 2
- BuildHelpers grabs the wrong variable GitLab CI HOT 1
- Publish a module locally feature request HOT 1
- Get-Buildvariable overwrites CommitMessage on switch default HOT 2
- Include RepoRoot as a BH variable
- Invoke-Git : warning: refname 'x' is ambiguous. HOT 3
- Set-ShieldsIoBadge replaces whole line (until last ')') HOT 1
- Set-BuildEnvironment fails when git is not installed
- Error in Azure Pipeline when Get-ProjectName returns multiple items
- Get-ProjectName fails when alias `git` exists HOT 2
- Return all variables with matching prefix
- Make all environment variables upper-cased?
- Update Set-BuildEnvironment -VariableNamePrefix validation regex HOT 1
- Feature Request: Allow for specifying custom build environment variables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildhelpers.