Thanks!

It would indeed be great if we could also extract the authors into a proper 
JSON structure so downstream consumers like the janitor don't have to implement 
that themselves for each VCS type.

On 8 August 2022 17:14:44 CEST, Christoph Berg <m...@debian.org> wrote:
>Re: To Jelmer Vernooij
>> Does that work? I guess we could try extracting the authors
>> (committers?) into a proper json structure if that helps.
>> 
>> Helmut was approaching me about extracting even more fields from git,
>> Maintainer, Uploaders, Homepage, updated Vcs info, debian/watch, and
>> expose that for an easier feedback into the packages file without
>> requiring new uploads. That will likely happen shortly. (Mentioning
>> that here since it seems similar.)
>
>Fwiw, that has happened at DebConf, there is now new fields
>"controlfile" and "upstream_metadata" in the json:
>
>  {
>    "browser": "https://salsa.debian.org/debian/kanyremote";,
>    "vcslog": "commit 2461c1171fc9103e2fd9ec946208fe5e1bc2deb7\nAuthor: 
> Philipp Huebner <debala...@debian.org>\n
>Date:   Sat May 28 00:32:06 2022 +0200\n\n    Updated years in 
>debian/copyright\n\ncommit a72ff16979f78545d0eb83
>09370e47782536e4fd\nAuthor: Debian Janitor <jani...@jelmer.uk>\nDate:   Fri 
>Sep 24 05:04:54 2021 +0000\n\n    Re
>move obsolete field Name from debian/upstream/metadata (already present in 
>machine-readable debian/copyright).\n
>    \n    Changes-By: lintian-brush\n\ncommit 
> 77bcda14a9bc556ecc7d5029ddf82282ff0c3303\nAuthor: Debian Janitor <
>jani...@jelmer.uk>\nDate:   Fri Sep 24 05:04:43 2021 +0000\n\n    Trim 
>trailing whitespace.\n    \n    Changes-B
>y: lintian-brush\n    Fixes: lintian: trailing-whitespace\n    See-also: 
>https://lintian.debian.org/tags/trailin
>g-whitespace.html",
>    "ci_url": "https://salsa.debian.org/debian/kanyremote/-/pipelines";,
>    "last_scan": "2022-08-04 18:18:12+00",
>    "issues": null,
>    "url": "https://salsa.debian.org/debian/kanyremote.git";,
>    "valid_checkout": 1,
>    "changelog_version": "8.1-1.2",
>    "watchfile": 
> "version=4\nhttps://sf.net/anyremote/kanyremote-(.*)\\.tar\\.gz",
>    "package": "kanyremote",
>    "changelog_distribution": "UNRELEASED",
>    "branch": "master",
>    "merge_requests": 1,
>    "vcs": "Git",
>    "dumb_http": null,
>    "controlfile": "Source: kanyremote\nSection: kde\nPriority: 
> optional\nMaintainer: Philipp Huebner <debalance
>@debian.org>\nBuild-Depends: debhelper-compat (= 13), dh-python, 
>python3-all\nStandards-Version: 4.5.1\nRules-Re
>quires-Root: no\nHomepage: http://anyremote.sourceforge.net\nVcs-Git: 
>https://salsa.debian.org/debian/kanyremote
>.git\nVcs-Browser: https://salsa.debian.org/debian/kanyremote\n\nPackage: 
>kanyremote\nArchitecture: all\nDepends
>: ${misc:Depends},\n         ${python3:Depends},\n         anyremote (>= 
>6.7),\n         python3-bluez (>= 0.9.1
>),\n         python3-pyqt5\nRecommends: bluez\nDescription: KDE frontend for 
>anyRemote\n kAnyRemote package is K
>DE GUI frontend for anyRemote.\n (http://anyremote.sourceforge.net/). The 
>overall goal of this project is to\n p
>rovide remote control service on Linux through Bluetooth, InfraRed, Wi-Fi\n or 
>TCP/IP connection.",
>    "edited_at": null,
>    "edited_by": null,
>    "hash": "2461c1171fc9103e2fd9ec946208fe5e1bc2deb7",
>    "debian_dir": 1,
>    "changelog": "kanyremote (8.1-1.2) UNRELEASED; urgency=medium\n\n  * Trim 
> trailing whitespace.\n  * Remove o
>bsolete field Name from debian/upstream/metadata (already present in\n    
>machine-readable debian/copyright).\n\
>n -- Debian Janitor <jani...@jelmer.uk>  Fri, 24 Sep 2021 05:04:43 -0000",
>    "next_scan": "2022-08-12 12:11:00+00",
>    "commits": 3,
>    "package_version": "8.1-1.1",
>    "ci_status": null,
>    "status": "NEW",
>    "upstream_metadata": "Bug-Database: 
> https://sourceforge.net/p/anyremote/discussion/\nBug-Submit: 
> https://sourceforge.net/p/anyremote/discussion/\nChangelog: 
> https://sourceforge.net/p/anyremote/code/HEAD/tree/kanyremote/trunk/ChangeLog\nRepository:
>  svn://svn.code.sf.net/p/anyremote/code/kanyremote/trunk\nRepository-Browse: 
> https://sourceforge.net/p/anyremote/code/HEAD/tree/kanyremote/\nRegistration: 
> https://sourceforge.net/user/registration\nContact: 
> anyrem...@mail.ru\nDocumentation: 
> http://anyremote.sourceforge.net/docs.html\nFAQ: 
> http://anyremote.sourceforge.net/faq.html";,
>    "avatar": 
> "https://salsa.debian.org/uploads/-/system/project/avatar/1272/anyremote.png";,
>    "tag": "debian/8.1-1.1",
>    "error": null
>  },
>
>Christoph

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reply via email to