From 5a6733431f59f007c8ab9fd729a8a4bb7e9bce48 Mon Sep 17 00:00:00 2001 From: Kamil Páral Date: Nov 14 2017 15:39:07 +0000 Subject: add `pull_request` item type This is useful for modularization group: https://pagure.io/taskotron/taskotron-trigger/issue/41 --- diff --git a/libtaskotron/check.py b/libtaskotron/check.py index bae40b3..7f58036 100644 --- a/libtaskotron/check.py +++ b/libtaskotron/check.py @@ -251,6 +251,7 @@ class ReportType(object): KOJI_BUILD = 'koji_build' #: KOJI_TAG = 'koji_tag' #: MODULE_BUILD = 'module_build' #: + PULL_REQUEST = 'pull_request' #: # if you add a new one, please also update main.py:ITEM_TYPE_DOCS @classmethod @@ -262,7 +263,8 @@ class ReportType(object): cls.GIT_COMMIT, cls.KOJI_BUILD, cls.KOJI_TAG, - cls.MODULE_BUILD] + cls.MODULE_BUILD, + cls.PULL_REQUEST] def export_YAML(check_details): @@ -386,4 +388,3 @@ def import_YAML(source): check_details.append(cd) return check_details - diff --git a/libtaskotron/main.py b/libtaskotron/main.py index 8dab782..ba3c1f9 100644 --- a/libtaskotron/main.py +++ b/libtaskotron/main.py @@ -43,6 +43,9 @@ Below is a list of examples of ``item`` input values for different item types: e.g. ``f25-updates-testing-pending`` * module_build: Triplet of ``modulename-stream-version``, e.g. ``nodejs-f26-20170511113257`` +* pull_request: Pull request URL, + e.g. ``https://github.com/container-images/memcached/pull/12`` or + ``https://pagure.io/taskotron/taskotron-trigger/pull-request/42`` ''' # this seems to be the only way how to include it in both class documentation (the generated html # docs) and argparse help without duplication