]> git.ipfire.org Git - thirdparty/patchwork.git/commit
models: Add commit_url_format to Project
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Aug 2019 06:13:13 +0000 (16:13 +1000)
committerDaniel Axtens <dja@axtens.net>
Fri, 30 Aug 2019 07:39:06 +0000 (17:39 +1000)
commitf94bb4eb3693d581c0658eba6ab4aa7723eca955
tree22dae6af1ae2ca8da03898ddf9dc98a853efac30
parentdde885c6c2f5e03388630320bc03a4cbe1040c64
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>
docs/api/schemas/latest/patchwork.yaml
docs/api/schemas/patchwork.j2
docs/api/schemas/v1.2/patchwork.yaml
patchwork/api/embedded.py
patchwork/api/project.py
patchwork/fixtures/default_projects.xml
patchwork/migrations/0036_project_commit_url_format.py [new file with mode: 0644]
patchwork/models.py
patchwork/templates/patchwork/submission.html
patchwork/templatetags/patch.py