Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge only works when trigger phrase is present #257 #429

Open
wants to merge 60 commits into
base: master
Choose a base branch
from

Conversation

dulvac
Copy link

@dulvac dulvac commented Jul 11, 2016

Adds a new checkbox parameter to the merger post build action so that merging works without a trigger phrase if desired.

amritp55 and others added 30 commits March 24, 2016 11:01
…mmit message for your changes. Lines starting
Add an option to not have the GHPRB manage its webhooks.  This is preferable in cases where we have a lot of projects pointing at the same repo, or when the ghprb account has no admin access to the repo
This change reduces the number of API calls made by the ghprb plugin.  .NET CI was hitting rate limits pretty regularly.  There are a few major improvements:
    * When using webhooks, we do not check comments (pull comment data) except when absolutely necessary.   We recieve all the comment info through the hooks, so we only need to check for updated comments when we have a new pull request or when jenkins restarts.
    * Never force a GH pull request update when a comment update comes through.  If a comment update came through, we're using webhooks and will have gotten the updated PR event.
    * initGhRepository isn't necessary when a GhprbRepository is created.  It's not used in the pull request trigger init, and causes an API call.  It can be called on demand as necessary.  This also dramatically improves startup time in Jenkins instances that have a lot of PR triggered jobs

Additional fixes:
    * Fixes a case where the pull request data wasn't saved on a GH hash update (which leads to most PRs restarting testing on any comment if Jenkins restarts)
    * Fixes a potential race condition where multiple triggers would attempt to set up hooks at the same time.

Not all possible improvements are included.  When a new PR or updated PR event is sent to Jenkins, we could pull the GHPullRequest info for affected projects once, instead of for each project which we do today.
-Fixed the bug with inability to change the skip build phrase in a job.
It now stores it properly.
-Skip build phrase now checks in a pull request title as well as it's
body.
-Added DSL Support for skip build phrase.
Add option to avoid managing of webhooks
Adding functionality to not post commit status for children jobs
Add one-line test output option for upstream status
Skip Build Phrase Fix and Improvements
When downstream jobs are triggered at the same time, the commit statuses overwrite each others
Check if skipBuild is empty or null
Remove adding parameters action from teh env contributor, and move it…
DavidTanner and others added 25 commits June 9, 2016 06:24
I fixed a bug in the Java Github API where it would always populate certain fields of the structure regardless of whether they had been pulled before (the case is unmerged PR).  Doing so causes the mergeability check to fail because we will never pull new data.  Instead, if the mergeability is null, grab the PR again.

Alternatively, I think this functionality should be removed altogether.  It's expensive and in most cases the build will immediately start and we will make another API to get the mergeability data again.  I will file another PR for that.
Pull PR data if necessary when determining mergeability
For some reason I was assuming that this call was calling out for live data.
Set the pull request after updating the updated timestamp
…-name

update 'mergeGithubPullRequest' to 'mergePullRequest' in Job DSL sect…
GetCommentsCount always returns 0 so comments never work
@trivial changed label in config.jelly

@trivial typo

Fixed artifact version
@ghost-api
Copy link

Can one of the admins verify this patch?

2 similar comments
@alexkomis
Copy link

Can one of the admins verify this patch?

@meruvasivakumari
Copy link

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants