Code Monkey home page Code Monkey logo

Comments (5)

FISHMANPET avatar FISHMANPET commented on June 27, 2024 1

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.

FISHMANPET avatar FISHMANPET commented on June 27, 2024

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.

FISHMANPET avatar FISHMANPET commented on June 27, 2024

@bryan5989 what Ci system do you use?

from buildhelpers.

SheepReaper avatar SheepReaper commented on June 27, 2024

from buildhelpers.

FISHMANPET avatar FISHMANPET commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.