Feature: Option to report success to PR when build is not triggered#632
Feature: Option to report success to PR when build is not triggered#632MaitreyaBuddha wants to merge 7 commits intojenkinsci:masterfrom
Conversation
bjoernhaeuser
left a comment
There was a problem hiding this comment.
Thank you very much for your contribution!
| } | ||
| } | ||
|
|
||
| public void createCommitStatus(GHCommitState state, String message) { |
There was a problem hiding this comment.
hm, shouldnt that method already exist somewhere else?
| } | ||
| } | ||
|
|
||
| public void createCommitStatus(Job<?, ?> project, |
There was a problem hiding this comment.
Ah I see the problem. So basically you cannot call this method.
Should this method be extracted and moved to a common place or is there no abstraction level which makes sense for both callers?
I personally feel its a bit edgy that the interface now has the createCommitStatus method.
There was a problem hiding this comment.
You're right, it is out of place there the way it is. I wanted to make an easy implementation of GhprbPullRequest.createCommitStatus(GHCommitState state, String message) for future developers, but maybe that's not necessary.
I could create GhprbCommitStatus.onBuildSkipped that would make more sense for GhprbCommitStatus being an event interface. But also, the only other implementor is GhprbNoCommitStatus and completely unused. I could remove the interface, remove GhprbNoCommitStatus, and then it doesn't seem as edgy.
I thought that level of refactor might be out of scope, but I'm open to it. Of these options I am in favor of removing the unused classes & abstraction. Which direction would you prefer?
There was a problem hiding this comment.
Sorry for the late response. I think the best option is to remove the unused classes & abstraction.
Do you have an Idea in your head how this could look like in the end?
There was a problem hiding this comment.
Just pushed it. It was relatively concise and simple. It exposed to me that there's another class GhprbSimpleStatusDescriptor which is completely unused, but I left that as it is not in scope of this change.
|
@samrocketman I this is fine for you I would go ahead and merge this and test the current master with the other PRs which are "candidate to merge" and are approved by either me or you. Is this fine for you? |
|
@bjoernhaeuser you're welcome to go ahead; I haven't had a chance to look at it but if you feel it's good to merge I don't have any problem with it. |
|
Sorry for the noise, we prematurely merged unrelated work to our fork's master. It has been reverted and this is back to the latest relevant changes. |
|
@MaitreyaBuddha could you squash your commits into one? :) |
|
@bjoernhaeuser Done! Github also has an option to do that when merging if you have not disabled it in settings. |
|
@MaitreyaBuddha would be cool if you can rebase to latest master to retrigger the jenkins build itself. For whatever reason it failed :( |
|
@bjoernhaeuser Rebased and passed 💥 |
|
We're planning to release this upcoming Monday and won't be merging any additional changes until after Monday's release (Apr 4th). |
|
Any update on this issue? |
|
This change can’t be merged or tested without passing checks. |
Refactored out a create commit status function. Added option to report success if not pertinent.
be1b42f to
9da0192
Compare
|
Rebased to master to trigger build again. Looks g2g? |
|
I'll look it over again. |
|
@samrocketman IMHO we can merge this :) |
|
I had to create another fork and PR to trigger build again: #739 |
|
@samrocketman also with this, can we merge it? |
|
Can we merge this and release new version ? |
Show PR author's login if the name is empty.
|
Any update on this one. |
This is a resolution for #630
This introduces a new checkbox after include/exclude sections. It gives you the ability to report
GHCommitState.SUCCESSstatus with "Skipped..." message when a build is skipped because it didn't match any include/exclude patterns.For example, if you have 4 builds but only Java files changed, you might get this output:

The title of this PR should work for CHANGELOG entry.