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/schemas/patchwork.j2 | |
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/schemas/patchwork.j2')
-rw-r--r-- | docs/api/schemas/patchwork.j2 | 7 |
1 files changed, 7 insertions, 0 deletions
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 |