aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit
Commit message (Collapse)AuthorAgeFilesLines
* Specify the git_multimail.py file using different syntaxDan Fandrich2024-01-171-1/+1
| | | | | | | Puppet complained with "Files must be fully qualified" using the file() function. Follow-up to 0ea383bf2
* 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-153-97/+105
| | | | | | | | | | | | | | | | | | | | | 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.
* Copy git_multimail.py as-isDan Fandrich2024-01-132-1/+1
| | | | | Don't try to perform template variable substitution because there are strings in the file that look like substitutions but aren't.
* 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
|
* mgagit: Update to git_multimail.py a984395eDan Fandrich2024-01-121-419/+2260
| | | | | | | | | | This is from https://github.com/mhagger/git-multimail I've reapplied the changes which avoid some unnecessary error messages when the summary email address is not configured (used for i18n mails). This latest upstream version also supports Python 3 although the shebang is left at Python 2.
* 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-052-1/+2
|
* remove comment description for users handled in ldapOlivier Blin2016-02-071-1/+0
| | | | | | git/softwarekey/binrepo/iurt/maintdb/schedbot/signbot/mga-advisories/mgasoft/mirror puppet uses usermod which does not handle ldap.
* mgagit: Allow forced pushes to topic branches for everyone.Colin Guthrie2015-11-261-1/+1
| | | | | | | Well, everyone in the group. topic branches should be a bit more collaborative and we just have to trust people not to abuse this.
* use consistent domain referencesThomas Backlund2015-10-201-2/+2
|
* lint fixes for mgagitThomas Backlund2015-10-192-18/+18
|
* mgagit: Give owners force push power on master.Colin Guthrie2015-05-181-1/+1
| | | | | | The owners should be trusted to use this with care. (This is mainly to give TV this power on the drak*/urpm* repos)
* 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: Give the maintainer force push rights over topic/ and distro/ branches.Colin Guthrie2014-11-041-2/+2
|
* mgagit: Temporarily allow maintainers to rewrite tags.Colin Guthrie2014-09-151-1/+1
| | | | | | | | | | | This is because it's really easy to accidentally push both master and a tag at the same time, but have master rejected but the tag succeed (non-fastforward). A better solution is to not allow tags that introduce new commits but I'm not sure of the config to allow that so this is a bit of a short term solution to allow Thierry to fix up a few of his tags.
* mgagit: Ensure mga-sysadmin really can push rewrite history.Colin Guthrie2014-09-151-4/+4
| | | | | | If a sysadmin was assigned as a maintainer of a repo, the extra powers granted to them would actually be overridden which is a bit useless.
* mgagit: Fix template nameColin Guthrie2014-06-111-1/+1
|
* mgagit: Add a repo group for infrastructure stuff.Colin Guthrie2014-06-112-0/+12
| | | | | | This is slightly recursive as this is where the definitions are kept, but I'll add a readme to the git repo to make sure no-one actually adds definitions in this tree (although a pre-receive hook would be better to really ban it)
* postfix/mgagit: Fix org git repos mailing list.Colin Guthrie2014-06-111-1/+1
|
* mgagit: Spell sysadmin properly... sigh.Colin Guthrie2014-06-091-1/+1
|
* mgagit: Fix permissions for org repos.Colin Guthrie2014-06-092-1/+2
|
* mgagit: Add repository group for orgColin Guthrie2014-06-092-0/+11
|
* mgagit: Fix case on mailingList config entryColin Guthrie2014-05-292-4/+4
| | | | This was a change I missed in an earlier commit.
* mgagit: Add bug number (forgot to save before commit)Colin Guthrie2014-04-271-1/+1
|
* mgagit: Hopefully work around utf8 encoding issue in emails mga#12374Colin Guthrie2014-04-271-0/+9
|
* mgagit: Add new mail headers to the i18n mails.Colin Guthrie2014-04-271-0/+2
|
* mgagit: Update to git_multimail.py e12918c100.Colin Guthrie2014-04-273-25/+106
| | | | | | | | | | This is from https://github.com/mhagger/git-multimail I've reapplied my changes which avoid some unnecessary error messages when the summary email address is not configured (used for i18n mails). The notable change is to synthesise dates in emails to hopefully fix ordering in email clients (i.e. with multi-commit pushes).
* 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: Don't report any error message when no change email address configured.Colin Guthrie2014-04-211-7/+1
| | | | | | | When we will send to the i18n-reports ML info about i18n related changes we will omit the overall summary mail (it's too complext to produce a summary of only i18n changes) and thus we need to squash this error message which will not be nice for those pushing changes.
* mgagit: Make the repository update hook more generic to cover all repo groupsColin Guthrie2014-03-131-1/+1
|
* Setup git repository groups for 'artwork', 'doc' and 'qa'Colin Guthrie2014-03-132-0/+32
|
* 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
|