25 Commits
Author SHA1 Message Date
Rainer Müller 3e18762725 trac-github-update: Remove [bot] tag from email address
GitHub Apps usernames contain a [bot] tag which is also supplied in the email
address in the WebHook payload. Such an email address would be invalid and
resulted in garbage in the From: header, therefore avoid this altogether.
2019-01-26 16:58:11 +01:00
Rainer Müller 5db10be5d1 trac-github-update: Quote sender names
The names of the sender in the From header needs to be quoted in order to
handle special characters properly. This was triggered by GitHub usernames of
GitHub Apps having a "[bot]" tag attached.
2019-01-26 16:58:11 +01:00
Rainer Müllerandroot 12f6b290dd Enable TicketReporterPermissionsPolicy
Allow ticket reporters to modify summary, description, and all other
fields of a ticket with a custom plugin.

Closes: https://trac.macports.org/ticket/53755
2018-04-05 22:01:39 +00:00
Rainer Müller 26b29228d1 trac-github-update: fix run error on tag deletions
GitHub will indicate a tag deletion with the special value of
"0000000000000000000000000000000000000000" as new revision. Whenever the
change does not reference a valid new SHA1 hash, use the current
timestamp as fallback.

Closes: https://trac.macports.org/ticket/52941
2016-11-29 01:49:27 +01:00
Rainer MüllerandRainer Müller 5b6df91036 trac-github-update: fake date and time of emails
Closes: https://trac.macports.org/ticket/52890
2016-11-15 23:12:39 +01:00
Rainer MüllerandRainer Müller ace8419270 trac-github-update: reduce GitHub queries
Only ask GitHub if we do not already know the information.
2016-11-15 23:12:39 +01:00
Rainer MüllerandRainer Müller c903684393 trac-github-update: inline object initialization 2016-11-15 23:12:39 +01:00
Rainer MüllerandRainer Müller b87ae642ad trac-github-update: get user data from Trac
If GitHub supplied us with a username, try to find corresponding
metadata in Trac. If no data exists in Trac, query GitHub to expand the
real name.

Closes: https://trac.macports.org/ticket/52826
2016-11-15 23:12:39 +01:00
Rainer MüllerandRainer Müller 29fecabe08 trac-github-update: fix super class invocations 2016-11-15 23:12:39 +01:00
Rainer Müller 2cfaff73ab trac-github-update: correct comment about emails
SPF only validates the envelope address, the problem would be DMARC.
2016-11-06 04:11:30 +01:00
Rainer Müllerandroot 993695f02a trac-github-update: Switch to lists.macports.org
Delete outdated and duplicate git-multimail.config.
2016-11-05 21:52:54 +01:00
Rainer Müller 14ac089452 trac-github-update: always encode pusher in utf-8 2016-11-01 03:23:53 +01:00
Rainer Müller e389808c71 trac-github-update: retrieve name from GitHub API
For the sender, get the real name from GitHub API using PyGithub.
2016-11-01 03:01:16 +01:00
Rainer Müller 6f5ecea9b8 trac-github-update: send mails to stdout with -n 2016-11-01 02:17:07 +01:00
Rainer Müllerandroot 4407e20af9 Add configuration for git-multimail 2016-10-31 23:27:04 +01:00
Rainer Müllerandroot 5cd3b2e1dc trac-github-update: Replace link text with URL 2016-10-31 01:34:06 +01:00
Clemens Langandroot dbfa2d321b Enable configurable CommitTicketUpdater
This allows us to close and post to tickets from commit messages.
2016-10-31 00:25:01 +01:00
Rainer Müllerandroot dbf85b4ff8 trac-github-update: Remove intro line 2016-10-31 00:12:53 +01:00
Rainer Müllerandroot bf462d8be8 trac-github-update: customize intro in mails 2016-10-30 22:17:15 +01:00
Rainer Müllerandroot 25de713779 Make commit link refer to GitHub in link text 2016-10-29 01:59:55 +02:00
Rainer Müllerandroot 27f9573f0c Remove footer from git-multimail template 2016-10-29 01:59:38 +02:00
Rainer Müllerandroot a451f1f397 Add trac-github-update hook for git-multimail 2016-10-29 01:49:34 +02:00
Rainer Müllerandroot e1e6ecb180 Enable TracUserMigration plugin 2016-10-09 22:28:15 +02:00
Rainer Müllerandroot 24185c976b README for plugins 2016-09-27 23:42:26 +02:00
Rainer Müllerandroot 807d8449cf Initial import 2016-08-23 07:06:30 +02:00