#401 add `pull_request` item type
Closed 6 years ago by kparal. Opened 6 years ago by kparal.

file modified
+3 -2
@@ -251,6 +251,7 @@ 

      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 @@ 

                  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 @@ 

          check_details.append(cd)

  

      return check_details

- 

file modified
+3
@@ -43,6 +43,9 @@ 

              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

Pull-Request has been closed by kparal

6 years ago