“OR” Condition in branch protection rules in GithubHow to clone all remote branches in Git?Make an existing Git branch track a remote branch?Delete commits from a branch in GitMove the most recent commit(s) to a new branch with GitHow do I check out a remote Git branch?How do I delete a Git branch locally and remotely?What is the best (and safest) way to merge a Git branch into master?How do I rename a local Git branch?How do I update a GitHub forked repository?Remove tracking branches no longer on remote

Multi tool use
Multi tool use

Ex-contractor published company source code and secrets online

What word can be used to describe a bug in a movie?

Why can I log in to my Facebook account with a misspelled email/password?

Do other countries guarantee freedoms that the United States does not have?

Is it really ~648.69 km/s delta-v to "land" on the surface of the Sun?

English - Acceptable use of parentheses in an author's name

What are good ways to improve as a writer other than writing courses?

Why does this Pokémon I just hatched need to be healed?

Reusing story title as chapter title

Are any jet engines used in combat aircraft water cooled?

How to mark beverage cans in a cooler for a blind person?

A question about 'reptile and volatiles' to describe creatures

Yajilin minicubes: the Hullabaloo, the Brouhaha, the Bangarang

Why is there a need to prevent a racist, sexist, or otherwise bigoted vendor from discriminating who they sell to?

How to translate this word-play with the word "bargain" into French?

Why does Intel's Haswell chip allow multiplication to be twice as fast as addition?

Improving software when the author can see no need for improvement

Geometric programming: Why are the constraints defined to be less than/equal to 1?

sed delete all the words before a match

Best gun to modify into a monsterhunter weapon?

Why should public servants be apolitical?

Why did the RAAF procure the F/A-18 despite being purpose-built for carriers?

Is this cheap "air conditioner" able to cool a room?

What happen if I gain the control of aura that enchants an opponent's creature? Would the aura stay attached?



“OR” Condition in branch protection rules in Github


How to clone all remote branches in Git?Make an existing Git branch track a remote branch?Delete commits from a branch in GitMove the most recent commit(s) to a new branch with GitHow do I check out a remote Git branch?How do I delete a Git branch locally and remotely?What is the best (and safest) way to merge a Git branch into master?How do I rename a local Git branch?How do I update a GitHub forked repository?Remove tracking branches no longer on remote






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have a repository with some task specific branches say



  1. dev

  2. test

  3. release

  4. master

And project is synced with CI/CD tool.



I have two conditions in my release and master branch



  1. Codes can be merged only by PR which is approved at least by one reviewer.

  2. Push can be made only by verified source i.e. the CI/CD (this step is required because there are few code changes on successful build and it has to be pushed back by CI/CD tool).

Now when I approve the PR, Github shows me warning of pending condition (Condition #2)



Is there any way to put "OR" condition for these protections rules, like if it either PR approved or Pushed by CI/CD accept the changes without warning?










share|improve this question
























  • How does your CI capture changes?

    – evolutionxbox
    Mar 27 at 9:26











  • It has triggers based on PR and Tags @evolutionxbox

    – Mohammed Atif
    Mar 27 at 10:15











  • Surely a PR can only be raised if the branch has already been pushed?

    – evolutionxbox
    Mar 27 at 10:17











  • PR can be created, but merged only using Admin rights or when pushed from CI @evolutionxbox

    – Mohammed Atif
    Mar 27 at 10:20












  • What do you mean by "when pushed from CI"? Are you merging in your CI?

    – evolutionxbox
    Mar 27 at 11:16

















0















I have a repository with some task specific branches say



  1. dev

  2. test

  3. release

  4. master

And project is synced with CI/CD tool.



I have two conditions in my release and master branch



  1. Codes can be merged only by PR which is approved at least by one reviewer.

  2. Push can be made only by verified source i.e. the CI/CD (this step is required because there are few code changes on successful build and it has to be pushed back by CI/CD tool).

Now when I approve the PR, Github shows me warning of pending condition (Condition #2)



Is there any way to put "OR" condition for these protections rules, like if it either PR approved or Pushed by CI/CD accept the changes without warning?










share|improve this question
























  • How does your CI capture changes?

    – evolutionxbox
    Mar 27 at 9:26











  • It has triggers based on PR and Tags @evolutionxbox

    – Mohammed Atif
    Mar 27 at 10:15











  • Surely a PR can only be raised if the branch has already been pushed?

    – evolutionxbox
    Mar 27 at 10:17











  • PR can be created, but merged only using Admin rights or when pushed from CI @evolutionxbox

    – Mohammed Atif
    Mar 27 at 10:20












  • What do you mean by "when pushed from CI"? Are you merging in your CI?

    – evolutionxbox
    Mar 27 at 11:16













0












0








0








I have a repository with some task specific branches say



  1. dev

  2. test

  3. release

  4. master

And project is synced with CI/CD tool.



I have two conditions in my release and master branch



  1. Codes can be merged only by PR which is approved at least by one reviewer.

  2. Push can be made only by verified source i.e. the CI/CD (this step is required because there are few code changes on successful build and it has to be pushed back by CI/CD tool).

Now when I approve the PR, Github shows me warning of pending condition (Condition #2)



Is there any way to put "OR" condition for these protections rules, like if it either PR approved or Pushed by CI/CD accept the changes without warning?










share|improve this question














I have a repository with some task specific branches say



  1. dev

  2. test

  3. release

  4. master

And project is synced with CI/CD tool.



I have two conditions in my release and master branch



  1. Codes can be merged only by PR which is approved at least by one reviewer.

  2. Push can be made only by verified source i.e. the CI/CD (this step is required because there are few code changes on successful build and it has to be pushed back by CI/CD tool).

Now when I approve the PR, Github shows me warning of pending condition (Condition #2)



Is there any way to put "OR" condition for these protections rules, like if it either PR approved or Pushed by CI/CD accept the changes without warning?







git github branching-and-merging pull-request






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 27 at 6:40









Mohammed AtifMohammed Atif

2,7503 gold badges16 silver badges36 bronze badges




2,7503 gold badges16 silver badges36 bronze badges















  • How does your CI capture changes?

    – evolutionxbox
    Mar 27 at 9:26











  • It has triggers based on PR and Tags @evolutionxbox

    – Mohammed Atif
    Mar 27 at 10:15











  • Surely a PR can only be raised if the branch has already been pushed?

    – evolutionxbox
    Mar 27 at 10:17











  • PR can be created, but merged only using Admin rights or when pushed from CI @evolutionxbox

    – Mohammed Atif
    Mar 27 at 10:20












  • What do you mean by "when pushed from CI"? Are you merging in your CI?

    – evolutionxbox
    Mar 27 at 11:16

















  • How does your CI capture changes?

    – evolutionxbox
    Mar 27 at 9:26











  • It has triggers based on PR and Tags @evolutionxbox

    – Mohammed Atif
    Mar 27 at 10:15











  • Surely a PR can only be raised if the branch has already been pushed?

    – evolutionxbox
    Mar 27 at 10:17











  • PR can be created, but merged only using Admin rights or when pushed from CI @evolutionxbox

    – Mohammed Atif
    Mar 27 at 10:20












  • What do you mean by "when pushed from CI"? Are you merging in your CI?

    – evolutionxbox
    Mar 27 at 11:16
















How does your CI capture changes?

– evolutionxbox
Mar 27 at 9:26





How does your CI capture changes?

– evolutionxbox
Mar 27 at 9:26













It has triggers based on PR and Tags @evolutionxbox

– Mohammed Atif
Mar 27 at 10:15





It has triggers based on PR and Tags @evolutionxbox

– Mohammed Atif
Mar 27 at 10:15













Surely a PR can only be raised if the branch has already been pushed?

– evolutionxbox
Mar 27 at 10:17





Surely a PR can only be raised if the branch has already been pushed?

– evolutionxbox
Mar 27 at 10:17













PR can be created, but merged only using Admin rights or when pushed from CI @evolutionxbox

– Mohammed Atif
Mar 27 at 10:20






PR can be created, but merged only using Admin rights or when pushed from CI @evolutionxbox

– Mohammed Atif
Mar 27 at 10:20














What do you mean by "when pushed from CI"? Are you merging in your CI?

– evolutionxbox
Mar 27 at 11:16





What do you mean by "when pushed from CI"? Are you merging in your CI?

– evolutionxbox
Mar 27 at 11:16












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55371229%2for-condition-in-branch-protection-rules-in-github%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55371229%2for-condition-in-branch-protection-rules-in-github%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







NK3oRKh5fptmJXKkYZw9kmlRAqP,ZsQ5sIXXZQlyblH6G6x,WOazl
s4WCS NAUhmqkCQyccJ9R lH4JJdmn28J,9,O8AC eirI KSc EEr 3kixp0 HFTutjDhWg TEdtvqXO

Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현