aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Various touch-ups now that we have hut support.HEADmasterdevelBryan Gardiner2024-07-191-70/+103
|
* fix: split too long descriptions or comments and send them separatelyMatěj Cepl2024-07-191-13/+44
|
* feat: add split_long_str() splitting strings keeping lines intactMatěj Cepl2024-07-194-0/+856
| | | | | | | | todo.sr.ht has limited size of comments to 16k characters. When splitting a string to multiple ones, we don't want to split lines in the middle. Also, start at least some unit tests.
* fix: handle a failure to run hut subprocess wellMatěj Cepl2024-07-191-18/+23
| | | | Print the return and stderr of the failed subprocess.
* refactor: move processing of smtp args to special functionMatěj Cepl2024-07-191-30/+37
|
* feat: add setting labels for individual ticketsMatěj Cepl2024-07-191-57/+96
|
* refactor: split open_ticket() into two subfunctions per modes.Matěj Cepl2024-07-191-21/+117
|
* feat: delayed closing of tickets.Matěj Cepl2024-07-191-11/+24
| | | | | Delaying should hopefully help todo.sr.ht to process all previous changes before the tickets are closed.
* feat: have smaller delay between calls to hut than SMTP ones.Matěj Cepl2024-07-191-17/+46
|
* feat: check existence of labelsMatěj Cepl2024-07-191-11/+52
| | | | use `hut graphql` instead
* feat: add 'hut' option to the current 'print' and 'send' ones.Matěj Cepl2024-07-191-37/+75
| | | | All runs of the hut cmd are done by the special function run_hut().
* refactor: simplify API signatureMatěj Cepl2024-07-191-26/+19
| | | | | We don't need to concatenate srht_owner and srht_tracker again and again, when we really need only complete tracker name.
* refactor: it is a general delay, not just the SMTP one.Matěj Cepl2024-07-191-20/+20
|
* fix: better loggingMatěj Cepl2024-07-191-2/+2
|
* Add .gitignore.Matěj Cepl2024-06-021-0/+3
|
* Add git config for subjectPrefix to the readme.Bryan Gardiner2024-05-061-0/+6
|
* Add contributing section to the readme.Bryan Gardiner2024-05-061-0/+14
|
* Send logging to stdout for correct interleaving with printed emails.Bryan Gardiner2024-05-061-10/+22
| | | | | Also indent printed emails so that the boundaries between them stand out clearer.
* Allow the milestones file to be missing.Bryan Gardiner2024-05-061-3/+6
|
* chore: blacken the fileMatěj Cepl2024-05-061-229/+248
| | | | | | | | | Formatting produced by Black is commonly agreed one, and it simplifies life a lot. Add black to your pre-commit hook. Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
* fix: use proper logging instead of print()Matěj Cepl2024-05-061-5/+9
| | | | | | | | | | | | | | | Ordinary print() function in Python is buffered (there is flush option, but it alleviates just part of problems). Logging module knows about and deals with the problem. https://stackabuse.com/bytes/flush-the-output-of-the-print-function-in-python/ https://stackoverflow.com/q/230751/164233 https://stackoverflow.com/q/55619733/164233 (logging.INFO changed during the development of the code to logging.DEBUG as needed). Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
* Read labels and users from CSV files.Bryan Gardiner2024-05-041-47/+123
|
* Stop using datetime.utcnow() which is deprecated in Python 3.12.Bryan Gardiner2024-05-041-2/+2
| | | | | | The warning recommends using datetime.now(datetime.UTC), but datetime.UTC doesn't exist in Python 3.10, so let's use the more backward-compatible datetime.timezone.utc instead.
* Drop incorrect return signature from file_missing_ticket().Bryan Gardiner2024-05-041-1/+1
|
* Allow of use of STARTTLS when connecting to the SMTP server.Matěj Cepl2024-05-041-1/+12
| | | | Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
* Add link back to the Sourcehut project from the git repo.Bryan Gardiner2024-05-031-0/+2
|
* Handle confidential items; indicate who changed issue metadata.Bryan Gardiner2024-05-031-7/+86
|
* Add option to create Sourcehut tickets for missing Github issues.Bryan Gardiner2024-05-031-18/+107
|
* Initial, works-for-me script to import Gitlab issues to Sourcehut.Bryan Gardiner2024-05-033-0/+1282