diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2019-08-27 16:13:13 +1000 |
---|---|---|
committer | Daniel Axtens <dja@axtens.net> | 2019-08-30 17:39:06 +1000 |
commit | f94bb4eb3693d581c0658eba6ab4aa7723eca955 (patch) | |
tree | 22dae6af1ae2ca8da03898ddf9dc98a853efac30 /docs/api | |
parent | dde885c6c2f5e03388630320bc03a4cbe1040c64 (diff) | |
download | patchwork-f94bb4eb3693d581c0658eba6ab4aa7723eca955.tar patchwork-f94bb4eb3693d581c0658eba6ab4aa7723eca955.tar.gz |
models: Add commit_url_format to Project
Add a new field to Project, commit_url_format, which specifies a
format string that can be used to generate a link to a particular
commit for a project.
This is used in the display of a patch, to render the patch's commit
as a clickable link back to the commit on the SCM website.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/schemas/latest/patchwork.yaml | 7 | ||||
-rw-r--r-- | docs/api/schemas/patchwork.j2 | 7 | ||||
-rw-r--r-- | docs/api/schemas/v1.2/patchwork.yaml | 7 |
3 files changed, 21 insertions, 0 deletions
diff --git a/docs/api/schemas/latest/patchwork.yaml b/docs/api/schemas/latest/patchwork.yaml index 394655d..45a6118 100644 --- a/docs/api/schemas/latest/patchwork.yaml +++ b/docs/api/schemas/latest/patchwork.yaml @@ -1893,6 +1893,9 @@ components: description: > URL format for the list archive's Message-ID redirector. {} will be replaced by the Message-ID. + commit_url_format: + title: Web SCM URL format for a particular commit + type: string Series: type: object properties: @@ -2217,6 +2220,10 @@ components: description: > URL format for the list archive's Message-ID redirector. {} will be replaced by the Message-ID. + commit_url_format: + title: Web SCM URL format for a particular commit + type: string + readOnly: true SeriesEmbedded: type: object properties: diff --git a/docs/api/schemas/patchwork.j2 b/docs/api/schemas/patchwork.j2 index 55e4c3b..843981f 100644 --- a/docs/api/schemas/patchwork.j2 +++ b/docs/api/schemas/patchwork.j2 @@ -1917,6 +1917,9 @@ components: description: > URL format for the list archive's Message-ID redirector. {} will be replaced by the Message-ID. + commit_url_format: + title: Web SCM URL format for a particular commit + type: string {% endif %} Series: type: object @@ -2253,6 +2256,10 @@ components: description: > URL format for the list archive's Message-ID redirector. {} will be replaced by the Message-ID. + commit_url_format: + title: Web SCM URL format for a particular commit + type: string + readOnly: true {% endif %} SeriesEmbedded: type: object diff --git a/docs/api/schemas/v1.2/patchwork.yaml b/docs/api/schemas/v1.2/patchwork.yaml index ab351e9..3a96aa3 100644 --- a/docs/api/schemas/v1.2/patchwork.yaml +++ b/docs/api/schemas/v1.2/patchwork.yaml @@ -1893,6 +1893,9 @@ components: description: > URL format for the list archive's Message-ID redirector. {} will be replaced by the Message-ID. + commit_url_format: + title: Web SCM URL format for a particular commit + type: string Series: type: object properties: @@ -2217,6 +2220,10 @@ components: description: > URL format for the list archive's Message-ID redirector. {} will be replaced by the Message-ID. + commit_url_format: + title: Web SCM URL format for a particular commit + type: string + readOnly: true SeriesEmbedded: type: object properties: |