Skip to content

Commit 31bfd96

Browse files
committed
Only add labels if PR is not merged
1 parent 8f9a0a9 commit 31bfd96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitconsensus/gitconsensus.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ def merge(username, repository_name):
8787
repo = Repository(username, repository_name)
8888
requests = repo.getPullRequests()
8989
for request in requests:
90-
request.addInfoLabels()
9190
if request.validate():
9291
click.echo("Merging PR#%s" % (request.number,))
9392
request.vote_merge()
93+
else:
94+
request.addInfoLabels()
9495

9596

9697
@cli.command(short_help="Close older unmerged opened pull requests")

0 commit comments

Comments
 (0)