Giter VIP home page Giter VIP logo

Comments (18)

DavidTanner avatar DavidTanner commented on May 24, 2024

You would do this by using the trigger phrase, and then only building with the trigger

from ghprb-plugin.

s0undt3ch avatar s0undt3ch commented on May 24, 2024

That's not something the plugins exposes is it? Ie, it would have to be implemented?

from ghprb-plugin.

DavidTanner avatar DavidTanner commented on May 24, 2024

There are two settings on the project page for the trigger. They are currently exposed. The trigger phrase is an exact match and didn't use a regex like the test or whitelist phrases.

from ghprb-plugin.

s0undt3ch avatar s0undt3ch commented on May 24, 2024

But that matches against a PR comment right?

from ghprb-plugin.

s0undt3ch avatar s0undt3ch commented on May 24, 2024

I created a flow job which gets all PR triggers which then triggers the exact PR jobs(while a feature to support this is not implemented).

from ghprb-plugin.

DavidTanner avatar DavidTanner commented on May 24, 2024

I am guessing I am not understanding what you are looking for then. How would you decide where the job goes? Are you looking for something in the PR description that the trigger would key off of whether to build or not?

from ghprb-plugin.

s0undt3ch avatar s0undt3ch commented on May 24, 2024

The ghprb incoming payload includes the pull request id, among other information. My idea was to allow matching job names jobs/foo/bar/{ghPrId}/the-build(this would mean searching for all jobs)...

from ghprb-plugin.

DavidTanner avatar DavidTanner commented on May 24, 2024

Maybe a better way would be to put a new extension in the trigger that limits the job to triggering certain PR's only? The problem here is that you have to create a new job per pull request right?

from ghprb-plugin.

s0undt3ch avatar s0undt3ch commented on May 24, 2024

Yes, I create a "set" of jobs per pull request, see an example here. Each of those jobs has a main-build which should get triggered, but only for the matching PR.

from ghprb-plugin.

DavidTanner avatar DavidTanner commented on May 24, 2024

Sounds like a whitelist for PR numbers.

from ghprb-plugin.

s0undt3ch avatar s0undt3ch commented on May 24, 2024

But that needs to be able to be set on each of the necessary jobs(not just globally)...

from ghprb-plugin.

s0undt3ch avatar s0undt3ch commented on May 24, 2024

Is the "Whitelist Target Branches" the implementation of this?

from ghprb-plugin.

s0undt3ch avatar s0undt3ch commented on May 24, 2024

Hmm, don't think so, what I need is to white-list the source, not the target....

from ghprb-plugin.

s0undt3ch avatar s0undt3ch commented on May 24, 2024

Have gave any thoughts on implementing this?

from ghprb-plugin.

benpatterson avatar benpatterson commented on May 24, 2024

@s0undt3ch I'm helping out with this repo. I do think the whitelisting of branches is the feature you're looking for. If this issue is still relevant to you, could you give that a try?

from ghprb-plugin.

s0undt3ch avatar s0undt3ch commented on May 24, 2024

I'm looking at white listing yes, but the source branch, not the destination branch which was what was available last time I looked.

Can we white list the source branch now?

from ghprb-plugin.

benpatterson avatar benpatterson commented on May 24, 2024

Ah, I don't think so. Marking this as an enhancement (but I need to doublecheck, too).

from ghprb-plugin.

gjabouley-invn avatar gjabouley-invn commented on May 24, 2024

Hello
any update on the "Source Branch whitelist" feature?
I could dedicate some time to implement it, do you know if there is ongoing work on it?

from ghprb-plugin.

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.