From 3db3a182855510c0b016e83888693e03e227e000 Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Wed, 22 Aug 2018 23:39:33 -0500 Subject: [PATCH] repo_checker: change build to state in comment info. The more accurately reflects what the hash represents since it grew to include the staging project meta revision and may end up including more. --- repo_checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repo_checker.py b/repo_checker.py index a309e138..53cbee98 100755 --- a/repo_checker.py +++ b/repo_checker.py @@ -361,7 +361,7 @@ class RepoChecker(ReviewBot.ReviewBot): comments = self.comment_api.get_comments(project_name=project) _, info = self.comment_api.comment_find(comments, self.bot_name) if info: - return info.get('build') + return info.get('state') return None @@ -440,7 +440,7 @@ class RepoChecker(ReviewBot.ReviewBot): self.result_comment(repository, arch, results, comment) if simulate_merge: - info_extra = {'build': state_hash} + info_extra = {'state': state_hash} if not result: # Some checks in group did not pass, post comment. # Avoid identical comments with different build hash during