]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: Parse "Depends-on" tags in emails
authorAdam Hassick <ahassick@iol.unh.edu>
Thu, 30 Jan 2025 19:56:38 +0000 (14:56 -0500)
committerStephen Finucane <stephen@that.guru>
Mon, 10 Mar 2025 22:31:21 +0000 (22:31 +0000)
commitbc2d1b1dcf89c619e027ae4dfd3036cba30e5583
tree35bac1d9818f047030059d58c28162ba6c3aaf07
parente29a22eeaa3b2fead31974674f82935484fc52a7
parser: Parse "Depends-on" tags in emails

Add a new function to parse "Depends-on" tags to the parser. The value
may either be the message ID of a patch or cover letter email already
received by Patchwork, or the web URL of a patch or series. When this
tag is found, the parser will add the series (or the series the patch
belongs to) as a dependency to the series it is creating.

This parser feature is only active when the feature flag is enabled on
the project related to the patch or cover letter.

Signed-off-by: Adam Hassick <ahassick@iol.unh.edu>
Acked-by: Aaron Conole <aconole@redhat.com>
[stephenfin: Parse patch dependencies unconditionally]
Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/parser.py