]> git.decadent.org.uk Git - dak.git/commitdiff
push data to debian contributors
authorJoerg Jaspert <joerg@debian.org>
Sat, 1 Feb 2014 13:51:58 +0000 (14:51 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sat, 1 Feb 2014 13:51:58 +0000 (14:51 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/contributor.source [new file with mode: 0644]
config/debian/cron.daily

diff --git a/config/debian/contributor.source b/config/debian/contributor.source
new file mode 100644 (file)
index 0000000..2d9ce6d
--- /dev/null
@@ -0,0 +1,22 @@
+contribution: upload
+method: postgres
+db: service=projectb
+query:
+        SELECT s.install_date as date,
+               u.uid as id,
+               u.name as desc
+          FROM source s
+          JOIN fingerprint f ON s.sig_fpr = f.id
+          JOIN uid u ON f.uid = u.id
+url: http://qa.debian.org/developer.php?login={id}&comaint=yes
+
+contribution: maint
+method: postgres
+db: service=projectb
+query:
+        SELECT s.install_date as date,
+               c.name as id
+          FROM source s
+          JOIN maintainer c ON s.changedby = c.id
+url: http://qa.debian.org/developer.php?login={id}&comaint=yes
+
index d24c7f9a7e8baf55d88170ccbf865e695e41aa3d..3df31d43d40d0341a8f25b9e0672d5bdcb81864a 100755 (executable)
@@ -46,6 +46,9 @@ dak override-disparity | gzip -9 > ${webdir}/override-disparity.gz
 # Generate stats about the new queue
 dak stats new ${webdir}/NEW-stats.yaml 2> /dev/null
 
+# Generate the contributor data
+dc-tool --mine="${configdir}/contributor.source" --auth-token @"${base}/s3kr1t/contributor.auth" --post
+
 ${scriptsdir}/link_morgue.sh
 
 ################################################################################