summaryrefslogtreecommitdiff
path: root/zuul/driver/github
diff options
context:
space:
mode:
authorBenedikt Loeffler <benedikt.loeffler@bmw.de>2019-01-30 16:08:36 +0100
committerBenedikt Loeffler <benedikt.loeffler@bmw.de>2019-01-30 16:08:36 +0100
commit363d881ab9291a2bbca4c0f3c270b873fd2ad009 (patch)
treeb6822cec16bd91d9c42c21a8d5221170bc300fd3 /zuul/driver/github
parent91e7e680a16dc17469195029750a0a3231586c10 (diff)
downloadzuul-363d881ab9291a2bbca4c0f3c270b873fd2ad009.tar.gz
Fix flake8 error: E117 over-indented
Change-Id: I07f6bbccfa00844281475e3d94b0f5d10e397b9e
Diffstat (limited to 'zuul/driver/github')
-rw-r--r--zuul/driver/github/githubmodel.py6
-rw-r--r--zuul/driver/github/githubreporter.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/zuul/driver/github/githubmodel.py b/zuul/driver/github/githubmodel.py
index d654f4f86..4a378af60 100644
--- a/zuul/driver/github/githubmodel.py
+++ b/zuul/driver/github/githubmodel.py
@@ -108,14 +108,14 @@ class GithubCommonFilter(object):
for k, v in rreview.items():
if k == 'username':
if (not v.search(by.get('username', ''))):
- return False
+ return False
elif k == 'email':
if (not v.search(by.get('email', ''))):
- return False
+ return False
elif k == 'newer-than':
t = now - v
if (review['grantedOn'] < t):
- return False
+ return False
elif k == 'older-than':
t = now - v
if (review['grantedOn'] >= t):
diff --git a/zuul/driver/github/githubreporter.py b/zuul/driver/github/githubreporter.py
index 8be4bb107..e57c74691 100644
--- a/zuul/driver/github/githubreporter.py
+++ b/zuul/driver/github/githubreporter.py
@@ -157,12 +157,12 @@ class GithubReporter(BaseReporter):
self.log.debug('Reporting change %s, params %s, labels:\n%s' %
(item.change, self.config, self._labels))
for label in self._labels:
- self.connection.labelPull(project, pr_number, label)
+ self.connection.labelPull(project, pr_number, label)
if self._unlabels:
self.log.debug('Reporting change %s, params %s, unlabels:\n%s' %
(item.change, self.config, self._unlabels))
for label in self._unlabels:
- self.connection.unlabelPull(project, pr_number, label)
+ self.connection.unlabelPull(project, pr_number, label)
def _formatMergeMessage(self, change):
message = ''