aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit/templates/git-post-receive-hook
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in commentsDan Fandrich2024-08-151-1/+1
| | | | This should result in no difference in configuration.
* Fix gitweb update integration in the git hookDan Fandrich2024-01-151-1/+1
| | | | The service doesn't support TLS.
* Convert git-post-receive-hook to Python3Dan Fandrich2024-01-151-95/+103
| | | | | | | | | | | | | | | | | | | | | This depends on a newer version of pybugz that's Python 3 compatible (tested with 0.14) and git_multimail.py, which has already been updated. Replace token support with API key support, as per the latest pybugz (and Bugzilla). If an API key is found, it will be used and if not found it will fall back to username/password. No attempt is made to try to create an API key in the same way that a token was minted before. Use a different file name for an API key for coexistence with a token, which is still used by other programs. Add a debug flag for enabling more logging to better see when things go wrong. Create variables for configuration items. Log a message when an i18n e-mail is sent. Do a few little code cleanups.
* Add error logging to git Bugzilla update code (mga#32716)Dan Fandrich2024-01-121-2/+2
|
* Properly extract e-mail address in i18n git mailDan Fandrich2024-01-121-1/+1
| | | | | This file had what looked like an ERB delimiter eaten by Puppet so git didn't see the right percent placeholder to get the address.
* Further adapt git-post-receive-hookDan Fandrich2024-01-121-2/+1
|
* Further adapt git-post-receive-hookDan Fandrich2024-01-121-1/+6
|
* Adapt git-post-receive-hook to new git_multimail.pyDan Fandrich2024-01-121-1/+1
|
* Fix to use python2 explicitlyNicolas Lécureuil2021-11-041-1/+1
|
* deployment: switch to https://Thomas Backlund2018-09-041-2/+2
|
* mgagit: fix typo in git-post-receive-hookOlivier Blin2017-04-111-1/+1
|
* mgagit: dont hardcode server, use vhost nameThomas Backlund2016-03-051-1/+1
|
* mgagit,cgit: Use a cosmetically nicer BZ URLColin Guthrie2014-11-251-1/+1
|
* mgagit: Fix brown-paper-bag typo.Colin Guthrie2014-11-171-2/+2
| | | | | | This really should fix git->bugzilla integration. mga#14585
* mgagit: Hopefully fix bugzilla integration.Colin Guthrie2014-11-171-11/+23
| | | | | | | | | | Our bugzilla no longer supports cookies so we have to use a token itstead. It's essentially exactly the same as a cookie, but different therefore meaning we have to handle it ourselves manually. I don't really get the benefit here, but hey ho. mga#14585
* mgagit: Add new mail headers to the i18n mails.Colin Guthrie2014-04-271-0/+2
|
* mgagit: Send a second email about any i18n changes to the i18n-reports ML.Colin Guthrie2014-04-211-5/+97
| | | | | | | | | | After sending the original email, we send a second email to i18n-reports detailing any i18n changes. The method of determining if any changes affect i18n is to look for a folder (or folders) called '.tx' in the tree. If such folders exist, then any changes in their parent folders are considered to be relevent for i18n.
* mgagit: Use a 5 second timeout to notify alamut.Colin Guthrie2014-02-101-1/+1
| | | | | This keeps the stall time on a push to something sensible should there be a problem.
* mgagit: Python typoColin Guthrie2014-02-101-1/+1
|
* mgagit: Use the full repo name + .git suffix when informing remote side.Colin Guthrie2014-02-101-1/+1
|
* alamut: Remove rsyncing from git.Colin Guthrie2014-02-101-11/+22
| | | | | Add in notification of the 'on-the-pull' system for mirroring in post-commit hook.
* mgagit: Avoid unnecessary quotes.Colin Guthrie2014-02-091-2/+2
|
* mgagit: Make sure to strip the single quotes that surround the modifed date.Colin Guthrie2014-01-041-1/+1
|
* mgagit: Fix last-modified file write.Colin Guthrie2014-01-041-2/+4
|
* mgagit: Some trivial pylint tidyupsColin Guthrie2014-01-041-10/+10
|
* mgagit: Attempt to write out a last-modified file for cgit.Colin Guthrie2014-01-041-0/+13
| | | | | | | | | This means the Last Modified column in cgit will show the date of the last commit not the date of the last push (which can be completely unrelated, especially when doing rebases or forced pushes and fixups etc.) Note: If we stop using rsync for replication then this can be removed and replaced with a different hook on the receiving side.
* mgagit: Match multiple bug references on a single lineColin Guthrie2013-12-221-6/+5
|
* mgagit: Suppress the 'Bug links:' section when posting comment to bugzilla.Colin Guthrie2013-12-141-1/+7
| | | | | | | It is only suppressed when a single bug is referenced. If multiple bugs are referenced (including external bug trackers) then it will be included. mga#11987
* Attempt to notify bugzilla when bugs are referenced in commits mga#11987Colin Guthrie2013-12-141-0/+63
|
* mgagit: Fix post-receive mailer.Colin Guthrie2013-10-071-3/+2
| | | | | | * Fix python path * Fix .git suffix stripping from repo shortname * Remove left over debug printing
* mgagit: Keep the post commit stuff out of /usr/local/binColin Guthrie2013-10-071-1/+1
|
* mgagit: Add new templates for generationg per-commit notification emails.Colin Guthrie2013-10-061-0/+103
This uses the git multimail project from upstream revision 3fcd7bffef which is the master revision at the time of writing. It also includes a monkey-patched version which we will use which adds the ability to include links to the gitweb/cgit URL and also links to any supported bugtracker.