From c8b56496d49d0bbfa7d948054f0f5332e6be75ab Mon Sep 17 00:00:00 2001 From: Tomas Hrcka Date: Aug 01 2019 08:17:21 +0000 Subject: [PATCH 1/3] gitignore --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae945fa --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea/ +venv/ From 9f64111532968e0800618fbbcd7f2c17166a4238 Mon Sep 17 00:00:00 2001 From: Tomas Hrcka Date: Aug 01 2019 08:18:48 +0000 Subject: [PATCH 2/3] Use tag when creating an issue for failed compose --- diff --git a/compose_tracker.py b/compose_tracker.py index 7d4b5d2..e25712a 100755 --- a/compose_tracker.py +++ b/compose_tracker.py @@ -188,11 +188,8 @@ class Consumer(object): # pull only part of the compose ID for the tag to set tag = re.search('(.*)-\d{8}', msg['compose_id']).group(1) - #TODO figure out how to set tag on an issue - # Should be able to do this now https://pagure.io/libpagure/issue/31 - if self.token: - self.pg.create_issue(title=title, content=content) + self.pg.create_issue(title=title, content=content, tags=tag) # The code in this file is expected to be run through fedora messaging # However, you can run the script directly for testing purposes. The From ef49f0bd26e05779ab76713b16818f48b58dff18 Mon Sep 17 00:00:00 2001 From: Tomas Hrcka Date: Aug 01 2019 08:19:05 +0000 Subject: [PATCH 3/3] Add requirements.txt for easier local development --- diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..be59f7b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +requests==2.21.0 +fedora_messaging>=1.7.1 +libpagure>=0.22 +PyYAML==5.1.2