Support for merge requests on salsa.d.o

Rafael Laboissière rafael at debian.org
Sat Feb 17 09:09:57 UTC 2018


Dear bts-link developers,

I recently "linked" this bug report on BTS:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890088

to this merge request on Salsa.d.o:

https://salsa.debian.org/science-team/nlopt/merge_requests/1

Even though the projects on Salsa are not really "upstream", I thought 
that it would be interesting to have bts-link understanding this 
relationship and I wrote the support for it.  You will find attached to 
this message a patch that applies against the current sources in Git.

It seems to work correctly:

 ########################################
 $ ./btsinfo https://salsa.debian.org/science-team/lhapdf/merge_requests/1
 Bug: https://salsa.debian.org/science-team/lhapdf/merge_requests/1 ({'project': 'lhapdf', 'group': 'science-team', 'id': '1'})
 Status: merged
 Resolution: None
 ########################################

It also passes the unittests:

 ########################################
 $ python -m unittest remote.tests.test_salsa
 ..
 ----------------------------------------------------------------------
 Ran 2 tests in 0.001s

 OK
 ########################################

This support could be extended for GitLab in general.  It could also 
handle GitLab Issues, but most projects on Salsa.d.o have disabled 
issues, for good reasons.  However, linking BTS to merge request sounds 
very useful to me.

Please, consider integrating my changes in bts-link.

Best regards,

Rafael Laboissière
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-merge-requests-on-salsa.debian.org.patch
Type: text/x-diff
Size: 7709 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bts-link-devel/attachments/20180217/d2e7656f/attachment.patch>


More information about the Bts-link-devel mailing list