“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
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;
I have a repository with some task specific branches say
- dev
- test
- release
- master
And project is synced with CI/CD tool.
I have two conditions in my release and master branch
- Codes can be merged only by PR which is approved at least by one reviewer.
- 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
|
show 1 more comment
I have a repository with some task specific branches say
- dev
- test
- release
- master
And project is synced with CI/CD tool.
I have two conditions in my release and master branch
- Codes can be merged only by PR which is approved at least by one reviewer.
- 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
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
|
show 1 more comment
I have a repository with some task specific branches say
- dev
- test
- release
- master
And project is synced with CI/CD tool.
I have two conditions in my release and master branch
- Codes can be merged only by PR which is approved at least by one reviewer.
- 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
I have a repository with some task specific branches say
- dev
- test
- release
- master
And project is synced with CI/CD tool.
I have two conditions in my release and master branch
- Codes can be merged only by PR which is approved at least by one reviewer.
- 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
git github branching-and-merging pull-request
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
|
show 1 more comment
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
|
show 1 more comment
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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