Open kenorb opened 9 years ago
Lol, beautiful failure.
Any attempt to parse structured data like #1
from unstructured strings like commit comments is bound to have many failure cases.
The real solution to me before full AI is to only suggest if users want to link or not, but not do automatically for them
Here is a good example: https://github.com/OnePlusOSS/android_kernel_oneplus_msm8994/issues/1
This issue has plenty of references to commits which has nothing to do with the issue and only confuse people.
Why this is happening?
Because it has some lines like:
which has
#1
in it.So my proposal is to look for the issue references either in the first or the last line of the commit message.
And I'm not sure if this should be a bug or a feature.