Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Recreate pull request if issue labeled with 'pass' or state == 'closed'

  • Loading branch information...
commit 0a263b61d6fd34a29577cf613b0bdd2f89555c35 1 parent b84e8a0
@winton authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/gitcycle.rb
View
7 lib/gitcycle.rb
@@ -448,8 +448,11 @@ def ready(*issues)
branch = pull
if branch && !branch['collab']
- force = branch['labels'] && branch['labels'].include?('Pass')
- branch = create_pull_request(branch, force)
+ # Recreate pull request if force == true
+ force = branch['labels'] && branch['labels'].include?('Pass')
+ force ||= branch['state'] && branch['state'] == 'closed'
+
+ branch = create_pull_request(branch, force)
end
if branch == false
Please sign in to comment.
Something went wrong with that request. Please try again.