Bug 10764

Summary: patchwork: Make "PATCH" prefix in subject mandatory for emails to be considered patches
Product: [Yocto Project Subprojects] Patchwork/Patchtest Reporter: Jose Lamego <jose.a.lamego>
Component: PatchworkAssignee: Jose Lamego <jose.a.lamego>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: benjamin.esquivel, joshuagloe, leonardo.sandoval.gonzalez, patrick.ohly, richard.purdie, ross.burton
Version: 2.3   
Target Milestone: 2.3 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jose Lamego 2016-12-05 14:26:00 UTC
Patchwork may incorrectly identify emails containing patch-like content as patches. For example:
https://patchwork.openembedded.org/patch/134627/

Patchwork must only consider as patches those messages that include the [PATCH.*] prefix in the subject.
Comment 1 Jose Lamego 2017-01-06 23:06:28 UTC
Patch can be view in:
https://lists.yoctoproject.org/pipermail/yocto/2017-January/033761.html

it is being tested in staging instance at:
https://patchwork-staging.openembedded.org/
Comment 2 Jose Lamego 2017-01-09 22:41:07 UTC
Patrick suggested in [1] that patch should also rule out email messages with a subject line that do not start with an approved OE-layer prefix (for example: "Re: " and "Fwd: ").

I've requested feedback for this approach [2] before implementing a test in the staging instance.

[1] https://lists.yoctoproject.org/pipermail/yocto/2017-January/033778.html
[2] https://lists.yoctoproject.org/pipermail/yocto/2017-January/033797.html
Comment 3 Jose Lamego 2017-01-11 17:04:45 UTC
A v2 patch can be seen in 
https://lists.yoctoproject.org/pipermail/yocto/2017-January/033835.html

this is implemented for testing in the staging instance:
https://patchwork-staging.openembedded.org/
Comment 4 Jose Lamego 2017-01-16 20:39:57 UTC
This has been implemented in production patchwork:
http://git.yoctoproject.org/cgit/cgit.cgi/patchwork/commit/?id=1a096ecdec71ad20e47af075e0126f77c54e7ec9