Wikidata:Requests for permissions/Bot/FLOSSbot 2
The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved--Ymblanter (talk) 10:00, 18 September 2016 (UTC)[reply]
FLOSSbot 2[edit]
FLOSSbot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Dachary (talk • contribs • logs)
Task/s: Add a protocol (P2700) qualifier to source code repository URL (P1324) claims for FLOSS software
Code: https://phabricator.wikimedia.org/diffusion/PBFB/browse/master/FLOSSbot/repository.py
Function details:
The source code repository responds to a protocol that depends on the VCS. If the protocol qualifier is missing, try a range of VCS to figure out which protocol it implements and set the protocol qualifier accordingly.
For web sites that host many respositories (such as github or sourceforge), additional heuristics are implemented to figure out the URL of the repository or the protocol. For instance, since github only hosts git repositories, the protocol is always assumed to be git. For sourceforce, the URL of the web interface to the repository is fetched to get the instructions and figure out if it is subversion, mercurial or git.
When everything fails and the protocol cannot be established with absolute certainty, an error is displayed and an editor should fix the item.
--Dachary (talk) 07:58, 11 September 2016 (UTC)[reply]
- I will approve the bot in a couple of days provided there have been no objections.--Ymblanter (talk) 17:49, 14 September 2016 (UTC)[reply]