Subject | Hash | Author | Date (UTC) |
---|---|---|---|
In admin's report, add in the subject the total number of yesterday's changes | 02a3b4131626b7023ba87a59b188256a601cd13a | Catalin(ux) M. BOIE | 2016-02-07 05:52:47 |
More detailed and correct description for hooks | d3045a11eed05c897381ae2cfcbbf91ede1d4910 | Catalin(ux) M. BOIE | 2016-02-07 05:42:53 |
docker: fixes and improvements for image generation | 37bd416d1664e8d9fcdf4554646618e5dd226e35 | Catalin(ux) M. BOIE | 2016-02-07 05:42:28 |
Added bug template and prefill the bug form assigned to field to the owner of the repo | 682e787ceb92d770e1a268a9f635e4336102cf3b | Catalin(ux) M. BOIE | 2016-02-07 05:38:58 |
Change download location for rocketgit.xml | 41bf40104994391fd5d9938ac891157625872c0d | Catalin(ux) M. BOIE | 2016-02-02 23:04:53 |
Fixes for data encoding for slack | 67b8210aa1c86b891d6760c89ac840f38f4eb025 | Catalin(ux) M. BOIE | 2016-01-30 17:49:57 |
Some TODO updates and some minor text fixes | d4a5bc8e8bc37021ca2c30899c01d8c54d56e5f6 | Catalin(ux) M. BOIE | 2016-01-30 17:38:59 |
Some docker fixes | 36c31d723d45a067980217b1c642f6bb77d54fd9 | Catalin(ux) M. BOIE | 2016-01-30 17:38:25 |
When adding hooks, help the user by providing some defaults (slack for now) | a7f4d8f10f8943508d90e968129b412431a4b0c3 | Catalin(ux) M. BOIE | 2016-01-30 17:37:50 |
Store good key string into the database. | 460245b306d9e7340969b386eecaaa6cfc7f7431 | Catalin(ux) M. BOIE | 2016-01-29 18:23:12 |
Some small fixes for http hooks | 43f8db273aedd804b150ee07a1af23b347687975 | Catalin(ux) M. BOIE | 2016-01-29 18:22:32 |
Bump version | 37e96e0960414a11682c3fc1344e896c93492123 | Catalin(ux) M. BOIE | 2016-01-25 21:28:45 |
Remove debug leftover | f39db0548ef78c2265d675a4199c9c26d53807b3 | Catalin(ux) M. BOIE | 2016-01-25 21:27:33 |
Fixed bad interaction between fixes and structure | fc0fabf8d429a18978908694bc9a86d09bed702b | Catalin(ux) M. BOIE | 2016-01-25 21:27:13 |
Do not allow a failed connection to generate err-* file | 5cf7214e724427ef78a1e8d72eef1be865c2270a | Catalin(ux) M. BOIE | 2016-01-20 22:56:56 |
Log the id of the event | 115138b15e0436b56b7f75f12e5cf0d068989dea | Catalin(ux) M. BOIE | 2016-01-20 19:28:53 |
If git ls-tree returns nothing, the path is invalid | a96013c19fae04a9ec0ec3b1505825c92150c978 | Catalin(ux) M. BOIE | 2016-01-20 19:14:03 |
bump version to 0.47 | a71ef807917abc1adf19e2416e2d095f1d8dee7e | Catalin(ux) M. BOIE | 2016-01-17 19:38:40 |
Hooks fixes | fa2a07bd822b496e65cee7c748429e9b69e91707 | Catalin(ux) M. BOIE | 2016-01-17 19:26:37 |
Mostly Amazon CodeDeploy and Lambda, and maked the plugins more generic | 85a7d584e031f9b3ce94e2520f998ec6698ca46a | Catalin(ux) M. BOIE | 2016-01-15 20:14:20 |
File | Lines added | Lines deleted |
---|---|---|
inc/admin.inc.php | 6 | 3 |
File inc/admin.inc.php changed (mode: 100644) (index b67aba9..d580eb4) | |||
... | ... | function rg_admin_report1_suggestions($db, $from, $to) | |
286 | 286 | } | } |
287 | 287 | rg_sql_free_result($res); | rg_sql_free_result($res); |
288 | 288 | ||
289 | // Yesterday - not yet because we do not have itime | ||
289 | // Yesterday | ||
290 | 290 | $y_start = gmmktime(0, 0, 0, gmdate('m'), gmdate('d') - 1, gmdate('Y')); | $y_start = gmmktime(0, 0, 0, gmdate('m'), gmdate('d') - 1, gmdate('Y')); |
291 | 291 | $y_end = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y')) - 1; | $y_end = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y')) - 1; |
292 | 292 | $sql = "SELECT uid, suggestion FROM suggestions" | $sql = "SELECT uid, suggestion FROM suggestions" |
... | ... | function rg_admin_report1($db, $rg) | |
340 | 340 | 'webhooks' => 'webhooks', | 'webhooks' => 'webhooks', |
341 | 341 | 'rights' => 'rights', | 'rights' => 'rights', |
342 | 342 | 'events' => 'events'); | 'events' => 'events'); |
343 | $total_yesterday_changes = 0; | ||
343 | 344 | foreach ($list as $table => $text) { | foreach ($list as $table => $text) { |
344 | 345 | // Yesterday | // Yesterday |
345 | 346 | $sql = "SELECT COUNT(*) AS count FROM " . $table | $sql = "SELECT COUNT(*) AS count FROM " . $table |
... | ... | function rg_admin_report1($db, $rg) | |
351 | 352 | } else { | } else { |
352 | 353 | $row = rg_sql_fetch_array($res); | $row = rg_sql_fetch_array($res); |
353 | 354 | $yesterday = $row['count']; | $yesterday = $row['count']; |
355 | $total_yesterday_changes += $row['count']; | ||
354 | 356 | } | } |
355 | 357 | rg_sql_free_result($res); | rg_sql_free_result($res); |
356 | 358 | ||
... | ... | function rg_admin_report1($db, $rg) | |
400 | 402 | $list = ''; | $list = ''; |
401 | 403 | while (($row = rg_sql_fetch_array($res))) { | while (($row = rg_sql_fetch_array($res))) { |
402 | 404 | $repos++; | $repos++; |
403 | $desc = substr($row['description'], 0, 50); | ||
405 | $desc = substr($row['description'], 0, 50) . '...'; | ||
404 | 406 | $desc = preg_replace('/\s/', ' ', $desc); | $desc = preg_replace('/\s/', ' ', $desc); |
405 | 407 | $list .= "\t" . $row['name'] . " - " . $desc | $list .= "\t" . $row['name'] . " - " . $desc |
406 | 408 | . ($row['public'] == 1 ? " (public)" : " (private)") . "\n"; | . ($row['public'] == 1 ? " (public)" : " (private)") . "\n"; |
... | ... | function rg_admin_report1($db, $rg) | |
420 | 422 | $rg['mail']['subject'] = 'RocketGit report' | $rg['mail']['subject'] = 'RocketGit report' |
421 | 423 | . ' [' . $users . 'u]' | . ' [' . $users . 'u]' |
422 | 424 | . ' [' . $repos . 'r]' | . ' [' . $repos . 'r]' |
423 | . ' [' . $sug['yesterday'] . 's]'; | ||
425 | . ' [' . $sug['yesterday'] . 's]' | ||
426 | . ' [' . $total_yesterday_changes . 'c]'; | ||
424 | 427 | $rg['mail']['body'] = $body; | $rg['mail']['body'] = $body; |
425 | 428 | rg_mail_template("mail/admin/report1", $rg); | rg_mail_template("mail/admin/report1", $rg); |
426 | 429 | } | } |