Support cross-repository pull request runs from forks.

This commit is contained in:
Patrick Lehmann
2025-08-28 22:06:25 +02:00
parent 277df7ea7f
commit 0adc72d26a

View File

@@ -363,7 +363,7 @@ ref_kind
:Type: string :Type: string
:Default Value: ``'unknown'`` :Default Value: ``'unknown'``
:Possible Values: ``'branch'``, ``'tag'``, ``'unknown'`` :Possible Values: ``'branch'``, ``'tag'``, ``'pullrequest'``, ``'unknown'``
:Description: Returns ``'branch'`` if pipeline's commit is on a branch or returns ``'tag'`` if the pipeline runs for :Description: Returns ``'branch'`` if pipeline's commit is on a branch or returns ``'tag'`` if the pipeline runs for
a tagged commit, otherwise returns ``'unknown'`` in case of an internal error. a tagged commit, otherwise returns ``'unknown'`` in case of an internal error.
@@ -371,6 +371,8 @@ ref_kind
result. |br| result. |br|
If the kind is a tag, the tags name is available in the job's :ref:`JOBTMPL/PrepareJob/Output/tag` If the kind is a tag, the tags name is available in the job's :ref:`JOBTMPL/PrepareJob/Output/tag`
result. |br| result. |br|
If the kind is a pull-request, the pull request's id is available in the job's :ref:`JOBTMPL/PrepareJob/Output/pr_number`
result. |br|
Moreover, if the tag matches the :ref:`JOBTMPL/PrepareJob/Input/release_tag_pattern`, the extracted Moreover, if the tag matches the :ref:`JOBTMPL/PrepareJob/Input/release_tag_pattern`, the extracted
version is available in the job's :ref:`JOBTMPL/PrepareJob/Output/version` result. version is available in the job's :ref:`JOBTMPL/PrepareJob/Output/version` result.