Skip to content

Prevent triggering builds on closed PRs#866

Open
JackPGreen wants to merge 1 commit intojenkinsci:masterfrom
JackPGreen:Prevent-triggering-builds-on-closed-PRs-1
Open

Prevent triggering builds on closed PRs#866
JackPGreen wants to merge 1 commit intojenkinsci:masterfrom
JackPGreen:Prevent-triggering-builds-on-closed-PRs-1

Conversation

@JackPGreen
Copy link
Copy Markdown

Skips all kind of event triggers for closed PRs, rather than just for comments as per #54.

Fixes: #865

Testing done

I've not added a test to cover this, as there's no existing test coverage for pull_request events in org.jenkinsci.plugins.ghprb.GhprbRootActionTest, nor is there any example payloads in org.jenkinsci.plugins.ghprb.GhprbTestUtil.
I've tested on a private Jenkins instance.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

Skips all kind of event triggers for closed PRs, rather than just for comments as per jenkinsci#54.

I've not added a test to cover this, as there's no existing test coverage for `pull_request` events in `org.jenkinsci.plugins.ghprb.GhprbRootActionTest`, nor is there any example payloads in `org.jenkinsci.plugins.ghprb.GhprbTestUtil`.

Fixes: jenkinsci#865
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.

Prevent triggering builds on closed PRs

1 participant