circleci - GitHub invokes CI build after a pull request -


background

we creating pull-requests on github. after pr approved , changes compiled , tested on circleci push button merge pull request.

enter image description here

after pressing button expect github merge pr first runs same build on circleci again , finishes merge.

question

how merge successful pr after pressing merge pull request directly without running ci build again?

if it's not possible there way how reduce overhead?

for unsuccessful pr, want prevent merge though...

that's not what's happening. when merge branch default branch (say master) on github, github expected, merges code. default branch have 1 or more new commits (depending on type of merge choose within github).

because circleci detects branch new commits, runs build branch. isn't initiated github, circleci working does. new commits means new build.

as jb nizet commented, typically necessary because tip of feature branch isn't tested latest code on master. circleci config example can have branch specific instructions take place on master.

personally, wouldn't try stop last build running. it's safety check, ci in first place. if want though, when first click merge button, github gives final chance modify merge commit's commit message , body. can add [skip ci] end of commit message, , circleci ignore commit , not run build.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -