Skip to content

Commit

Permalink
Recreate pull request if issue labeled with 'pass' or state == 'closed'
Browse files Browse the repository at this point in the history
  • Loading branch information
winton committed Oct 17, 2012
1 parent b84e8a0 commit 0a263b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/gitcycle.rb
Expand Up @@ -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
Expand Down

0 comments on commit 0a263b6

Please sign in to comment.