Commit Graph

192 Commits (0231937b8f5f15e8b2737aa17c5ecf70e45bc203)

Author SHA1 Message Date
Christopher Obbard 0231937b8f Build and publish Docker image in GitHub actions
Add the ability to build a Docker image in GitHub actions and push that
image to the GitHub container registry.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
2023-01-13 18:13:17 +00:00
Christopher Obbard 2ee1088e9c Add Dockerfile
Add a Dockerfile to have the ability to build a container from the app.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
2023-01-13 18:13:17 +00:00
Christopher Obbard f47e974c7c Allow setting Todoist API key from environment variable
In the Docker world, secrets (e.g. passwords, API keys) are usually shared
with an application as environment variables so that they can be imported
from separate secure areas: in docker-compose you can specify a file
where secrets are imported from as environment variables.

Read the API key from the TODOIST_API_KEY environment variable first, then
check the command-line argument.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
2023-01-13 18:11:53 +00:00
Hoffelhas 1312474e53 Manually added a similar fix as proposed in pull request #20 2023-01-13 18:02:46 +01:00
Hoffelhas e41dab3156 Minor cleanup 2023-01-13 17:02:53 +01:00
Hoffelhas 3a02d0d8c9 Fixed merge issues 2023-01-13 17:01:43 +01:00
Hoffelhas 4dcce138c0 Added logic to show correct change counter in terminal 2023-01-13 16:58:16 +01:00
Hoffelhas 707482cf17 Adding and removing headers defined on parentless task level now processes all children correctly. 2023-01-13 16:35:00 +01:00
Hoffelhas bf6ce05ad8 bugfix needed: modify_headers does seem to work correctly at parentless task level 2023-01-12 21:42:21 +01:00
Hoffelhas e1c0060afb check_header function updated 2023-01-12 21:32:51 +01:00
Hoffelhas 685da743ab Fix found for updating the due task date, which keeps the recurring string intact 2023-01-12 21:04:49 +01:00
Hoffelhas 7f766a5df7 Minor update 2023-01-10 20:24:33 +01:00
Hoffelhas ce8044d5a7 Minor update to get_all_data 2023-01-10 20:20:54 +01:00
Hoffelhas 619489a1d0 Initial update of check_header function. Still to finish and test 2023-01-09 22:33:15 +01:00
Hoffelhas af63bb97c0 Minor addition of logging 2023-01-09 21:45:08 +01:00
Hoffelhas 24d88460fb Changed end-of-day functionality, but apparently updating the due-date with the new API will remove the recurring settings. Brilliant. Need to find a fix for this. 2023-01-08 22:23:54 +01:00
Hoffelhas 4aad462ce3 Start=due-x functionality working again. Time set by user is now also included in the diff calculation 2023-01-08 18:42:16 +01:00
Hoffelhas 81769968ae Start=DD-MM-YYYY functionality working again. 2023-01-08 18:13:06 +01:00
Hoffelhas 43e598a87a Fixed -hf flag not working correctly 2023-01-08 17:37:24 +01:00
Hoffelhas b2f2fa270e Bugfix where manually changing the order of sequential tasks would not remove old labels. 2023-01-08 17:11:47 +01:00
Hoffelhas 97a7073f1c Minor cleanup of code 2023-01-08 16:21:50 +01:00
Hoffelhas a589c159c0 Type indication now seems to work on all levels 2023-01-08 15:32:21 +01:00
Hoffelhas 86eb720f50 Overhaul labelling functionality now working on project level. Next: debug section and parentless tasks level. 2023-01-08 14:58:49 +01:00
Hoffelhas aa274d5132 Additional testing of labelling logic 2023-01-07 16:13:43 +01:00
Hoffelhas e9b2dd6f21 Fixed labelling bug with SEQ mode due to legacy code 2023-01-07 15:44:56 +01:00
Hoffelhas fc9aa8da4f Children are now cleaned correctly after task_type change 2023-01-07 15:07:57 +01:00
Hoffelhas 0c64e99455 Core labelling functionality now seems to function. Still need to fix one bug with cleaning children if task_type is set. 2023-01-04 21:12:39 +01:00
Hoffelhas 4a236153d0 Added 'get_all_data' function to use the SYNC API v9 to obtain all the data in your Todoist. Needed for seeing e.g. completed tasks, which the REST API v2 does not provide. 2023-01-04 10:01:00 +01:00
Hoffelhas 374d216a83 Basic SQLite DB functionality now working. Next: rewrite 'get_task_type()' function, and start some refactoring/debugging. 2023-01-03 16:06:46 +01:00
Hoffelhas 2625547002 Basic labelling functionality working again. Still need to fix metadata storage 2023-01-02 16:28:16 +01:00
Hoffelhas 95a71524cd Initial changes made to REST API. Working on a Sync API workaround to find completed tasks now. 2022-12-17 19:31:19 +01:00
Hoffelhas 3a25e05aa3 Initial check of 'T0 task date has changed' still included the time, hence check always failed. Now [:10] has been added to exclude a time during the check 2021-09-20 13:26:47 +02:00
Hoffelhas 7857a397fc Times in a due date could now be processed. At the moment, only the first 10 string characters are read, which only includes 'YYYY-MM-DD'. This has been updated for all relevant variables which use the due date. 2021-08-24 16:14:22 +02:00
Hoffelhas 482f27ff50 Added hotfix for detection of underscore replacement of the exclamation mark 2021-08-24 14:49:34 +02:00
Hoffelhas 2dd6f06b13
Merge pull request #15 from GwyndolynMarchant/datefix
Fix for shifted end-of-day
2021-08-24 14:22:10 +02:00
Gwyndolyn Marchant d0b074e0fe fix for shifted end-of-day 2021-06-16 23:02:27 -04:00
Hoffelhas 5f3fef0e8f
Update README.md 2021-01-25 19:50:42 +01:00
Hoffelhas 50c126b332
Update README.md 2021-01-25 19:49:24 +01:00
Hoffelhas 11f9830fea
Update README.md 2021-01-25 19:48:45 +01:00
Hoffelhas 0215af31fd
Update README.md 2021-01-25 18:27:07 +01:00
Hoffelhas a38f14e40c
Update README.md 2021-01-25 18:25:28 +01:00
Hoffelhas 319171251f
Update README.md 2021-01-25 18:21:50 +01:00
Hoffelhas c7ab4e564c v1.5 2021-01-25 18:00:43 +01:00
Hoffelhas d129885bbc setup.py update 2021-01-23 21:53:17 +01:00
Hoffelhas 097ea0caae Updated todoist-python to version 8.1.3 and added requests 2.25.1 2021-01-23 21:48:19 +01:00
Hoffelhas 4c421b7577 Fixed bug with incorrect label recognition. Added new debug logging lines, and removed redundant ones 2021-01-23 21:29:06 +01:00
Hoffelhas a4ac562068 Made -r tag backwards compatible with v1.4 2021-01-17 15:14:33 +01:00
Hoffelhas bd9e5d021b Fixed a view bugs for the new regeneration mode, plus some additional clean-up of code. In addition fixed a labelling bug on deeper levels, and headered items will be cleaned of old next-action labels. 2021-01-17 14:58:14 +01:00
Hoffelhas f97c7e70e0 Implemented new structure for regeneration mode. New modes have been added, and specific modes can be assigned to tasks by use of labels. 2021-01-16 22:42:46 +01:00
Hoffelhas 376e176d6b General clean-up of code 2021-01-16 17:14:22 +01:00