Commit Graph

582 Commits

Author SHA1 Message Date
Drew DeVault b0a3857cb5 Discard HTML emails sent to LMTP daemon 2019-06-14 11:09:20 -04:00
Chris Kinniburgh a1cf619e80 Allow 2 character label names 2019-06-12 10:47:07 -04:00
Drew DeVault 274d050572 Finalize webhooks 2019-06-11 11:50:00 -04:00
Drew DeVault c2df4f617f Fix 500 on tracker creation 2019-06-11 09:14:39 -04:00
Drew DeVault 2368339664 Rig up ticket webhooks 2019-06-10 15:46:32 -04:00
Drew DeVault ae2797dd8d Rig up tracker webhooks 2019-06-10 15:20:05 -04:00
Drew DeVault 3713575d90 Add initial set of webhooks 2019-06-10 13:23:24 -04:00
Drew DeVault 8ff1a0cd20 Append label to search terms from tracker page 2019-06-02 15:58:37 -04:00
Éloi Rivard f033db0672 Added default posting-domain config 2019-05-29 08:57:17 -04:00
Éloi Rivard c47162388c Define 'make' program via an environment variable 2019-05-29 05:16:59 -04:00
Michael Forney 86b8c8cc76 Allow ticket/user mentions after open paren
This will allow mentions like

	Depends on feature X (#123)
2019-05-23 15:13:36 -04:00
Ivan Habunek e7c801b46a Order labels by name
fixes:
https://todo.sr.ht/~sircmpwn/todo.sr.ht/160
2019-05-21 10:25:11 -04:00
Ivan Habunek 8841a12b6e Detect ticket mentions by URL
fixes:
https://todo.sr.ht/~sircmpwn/todo.sr.ht/173
2019-05-21 10:25:07 -04:00
Ivan Habunek 94b19eb157 Fix label search URL
fixes:
https://todo.sr.ht/~sircmpwn/todo.sr.ht/167
2019-05-21 10:24:48 -04:00
Ivan Habunek aaad330244 Replace overriden __init__ with factory method
Simplifies mocking, fixes factories.
2019-05-21 10:22:29 -04:00
Drew DeVault a3f1f9491b Fix fallback addresses for ticket submission 2019-05-15 11:41:11 -04:00
Drew DeVault 0fef4f97c3 Fix create & configure tracker 2019-05-09 21:21:07 -04:00
Drew DeVault 425a5e5b5a Add API blueprint to setup.py 2019-05-09 13:36:22 -04:00
Drew DeVault 0b70b847be Add tracker labels endpoint 2019-05-09 11:34:55 -04:00
Drew DeVault 0b27d4285c Add ticket events endpoint 2019-05-06 12:43:41 -04:00
Drew DeVault 4f4d7d6ba0 Implement adding/removing labels via the API 2019-05-04 11:13:39 -04:00
Drew DeVault d6986aed72 Add simple ticket API 2019-04-30 16:17:43 -04:00
Drew DeVault 785574871c Initial pass on API support
Adds an API for working with trackers
2019-04-30 15:12:05 -04:00
Drew DeVault 060eea1c1a Add support for replying to tickets via email 2019-04-29 18:26:36 -04:00
Drew DeVault 3df816c9f8 Pass sender into get_tracker as explicit kwarg 2019-04-29 15:36:50 -04:00
Drew DeVault 93c2b4fa59 Fix typo in data command 2019-04-29 15:18:01 -04:00
Drew DeVault 4c51567ca0 Roll back database session on exceptions 2019-04-29 15:15:12 -04:00
Drew DeVault 8ba331bd53 Check sender before destination 2019-04-29 15:07:38 -04:00
Drew DeVault 16530ada56 Fix unbound variable usage 2019-04-29 14:57:57 -04:00
Drew DeVault 9a5d256e53 Enforce permissions on submissions via email 2019-04-29 14:48:20 -04:00
Drew DeVault b765014994 Implement todosrht-lmtp daemon 2019-04-29 14:42:45 -04:00
Drew DeVault bb9f958897 Allocate TTY when restarting services 2019-04-29 10:48:35 -04:00
Drew DeVault 27c360bd1a Pin builds to Alpine 3.9 2019-04-25 15:39:57 -04:00
Drew DeVault d350f56408 Invalidate markup cache on ticket edit
Fixes #168
2019-04-25 15:36:42 -04:00
Drew DeVault d5ac173fa4 Update webhooks documentation 2019-04-19 09:55:07 -04:00
Drew DeVault 82214026e1 Remove unnecessary CSRF token from tracker search 2019-04-15 22:48:10 -04:00
Drew DeVault 3cd8ba8f77 Add webhook info to config.example.ini 2019-04-07 15:05:31 -04:00
Scoopta 294f738bcf The unassign link will only be shown if user has triage, fixes #143 2019-04-07 15:05:23 -04:00
Drew DeVault 45d2a869b7 Split out core.sr.ht migrations 2019-04-04 14:13:15 -04:00
Ivan Habunek e5043148ea Render mentions in ticket description 2019-04-04 14:10:37 -04:00
Ivan Habunek 4fe0011f92 Implement mentions in ticket body 2019-04-04 14:10:34 -04:00
Ivan Habunek ff0504980f Alter Event fields and migrate data
Makes the following changes to the Event type:

* make `user` and `ticket` nullable since some events require it
* add `by_user` and `from_ticket` to enable mentions
* remove `assinged_user` which is no longer used

Ticket: https://todo.sr.ht/~sircmpwn/todo.sr.ht/156
2019-04-04 14:10:23 -04:00
Ivan Habunek ff30b66fb8 Fix and use label_add_url
It accepted a label argument which is not required and the docs were
switched between it and label_remove_url.
2019-03-28 13:31:42 -04:00
Ivan Habunek abb432af5f Use canonical ticket reference in ticket title 2019-03-28 13:30:35 -04:00
Drew DeVault f7f033dca6 Show more trackers on the dashboard & user pages 2019-03-27 21:24:27 -04:00
Ivan Habunek a10b980692 Fix ticket mention pattern allowed characters
In addition to \w chars, tracker names can contain . and -, so add them
to the regex pattern.
2019-03-07 09:53:05 -07:00
Ivan Habunek 3af5a42b52 Fix incorrect user mention detection
Qualified ticket mentions which include a username, such as
~user/repo#123 should not be matched by the user mention regex pattern.
This caused the usernames in the ticket mentions to be linked.

Fixed by changing the user mention pattern to not match if the username
is followed by a slash.
2019-03-07 09:53:03 -07:00
Ivan Habunek 2db8c25c02 Support mentioning tickets on different trackers
fixes: ~sircmpwn/todo.sr.ht/157
2019-03-07 09:53:00 -07:00
Ivan Habunek cfb6701ce1 Slight simplification of code
The comment is never None in this case, it's checked before calling the
function.
2019-03-06 14:37:23 -07:00
Ivan Habunek 059faa8d73 Simplify ticket submission code 2019-03-06 14:37:17 -07:00