Alastair Mooney
2157658a7d
Update main.py
2024-10-25 19:43:01 +01:00
Robert Alonso
9b24f44c63
refactor: clean up imports
2024-10-25 18:12:00 +00:00
Robert Alonso
c05a9e3f1a
refactor: move GitHub-specific code into class
...
Add a new method, get_issue_url(), which returns
the VCS-specific web URL for viewing an issue.
This results in moving GitHub-specific code from
main into GitHubClient, but with no change in behavior.
2024-10-25 00:07:47 +00:00
Robert Alonso
714153eaf3
feat: add Local client
...
This is just a safe fallback for local testing.
If environment variables which activate the
creation of the GitHub client aren't set, then
the Local client is created. It acts on the most
recent commit of the repo in the working directory.
Minor edit to GitHubClient so that it raises an
EnvironmentError exception if INPUT_GITHUB_URL
environment variable is not defined. This allows
main to detect the error and fall back to trying
to use the Local client
2024-10-25 00:07:47 +00:00
Robert Alonso
662435d7fc
refactor: split into modules
...
Split main.py into modules to (mostly) isolate the
GitHub-specific code from the general TODO
detection and program logic.
This is both for readability/maintainability and
to prepare for potentially supporting other
version control systems (e.g. GitLab, BitBucket).
2024-10-25 00:07:47 +00:00
Robin
a672421057
update main.py to avoid resource leak
2024-10-10 16:52:13 -03:00
alstr
2f462edd70
Merge master into v5
2024-09-24 14:31:16 +01:00
alstr
86193fe430
Fix issue formatting
2024-09-24 14:11:59 +01:00
alstr
81eaa8f8e3
Tidy code
2024-09-23 12:47:55 +01:00
alstr
6d4eeffd5f
Add support for new projects
2024-09-20 16:16:13 +01:00
alstr
8045cef144
Link issues to PR
...
Closes #98
2024-09-20 12:57:24 +01:00
alstr
3e27db4be0
Add support for issue comments
...
Closes #123
2024-09-20 12:18:02 +01:00
alstr
28b4a92a27
Update line parsing process
...
Closes #90
2024-09-19 16:53:59 +01:00
alstr
da852bef15
Assign milestones by name
...
Closes #61
2024-09-19 13:16:29 +01:00
alstr
d67219dbb1
Insert issue URLs
...
Closes #199
2024-09-18 17:48:16 +01:00
alstr
f445fdb6e9
Support new reference options
...
Closes #123
Closes #94
2024-09-16 14:58:41 +01:00
Kevin Ge
1ff063b19e
fix: check filename if no extensions match
2024-08-05 22:38:54 -07:00
alstr
e6fcedc9eb
Reformat code
2024-07-11 12:39:05 +01:00
alstr
240db0f446
Remove support for classic projects
...
Closes #187
Closes #149
2024-06-28 13:56:27 +01:00
Aingeru
6dfbdc5f4b
Corrected typo.
...
Signed-off-by: Aingeru <aingeru.develop@gmail.com>
2024-03-13 12:18:59 +01:00
Aingeru
e1fcaabf3b
Added support for extensionless language filenames.
...
Signed-off-by: Aingeru <aingeru.develop@gmail.com>
2024-03-12 12:39:55 +01:00
alstr
02060fcc60
Set ace_mode for custom languages
2024-02-05 08:49:15 +00:00
alstr
aae81c5ce3
Fix case sensitivity
2024-01-08 18:58:31 +00:00
Alastair Mooney
80f1c09e2b
Merge pull request #168 from Christoph-Koschel/patch-3
...
Add support for custom languages
2024-01-01 09:23:04 +00:00
Christoph Koschel
493e0c4993
Fixed typo
2023-12-31 18:06:59 +01:00
alstr
7ad18c4076
Fix URL to line
2023-11-07 09:23:51 +00:00
Christoph Koschel
c70aafa22a
Added support for costume languages. Fix #104
2023-09-30 19:39:39 +02:00
Christoph Koschel
9d485f00b8
Remove debugging stuff
2023-09-11 11:16:19 +02:00
Christoph Koschel
381a754c6e
Allows to have no spaces between a comment pattern and a TODO identifier. Close #155
2023-09-11 11:04:16 +02:00
Christoph Koschel
85df7d016a
Enable issue escaping
2023-07-08 21:17:23 +02:00
Patrick Foley
564f192712
update url-to-line for enterprise
...
github.com will be wrong for enterprise users, change this to use {self.base_url}
2023-03-02 10:16:57 -06:00
Kevin M Sampson
a9bdb9cfb7
Update base_url to use github_url
2023-02-07 07:06:11 -06:00
Kevin M Sampson
769741e3bf
Add GITHUB_URL to support GHES
2023-02-03 14:59:00 -06:00
alstr
216450e77f
Fix SHA when workflow run manually
2022-10-27 11:43:39 +01:00
alstr
eb4306a705
Update input names
2022-10-27 10:10:19 +01:00
alstr
223e23516d
Add support for workflow_dispatch trigger
...
Closes #112
2022-10-27 09:52:02 +01:00
alstr
ffb5e5a6d1
Make file extension checks case insensitive
...
Closes #130
2022-10-21 17:43:17 +01:00
alstr
7b5cf68b0f
Add support for custom identifiers
2022-08-23 14:34:27 +01:00
alstr
c7ca1ac039
Add support for custom identifiers
...
Closes #49
Closes #66
2022-08-23 14:17:28 +01:00
alstr
c968c6f24d
Add option to customise issue contents
...
Closes #91
2022-02-04 12:35:00 +00:00
alstr
830fd45809
Check for space after line comment marker
2022-02-04 11:29:54 +00:00
alstr
d8373a95ac
Add support for end-of-line TODOs
...
Fixes #87
2021-11-10 09:44:27 +00:00
alstr
7712fef2fd
Add support for auto assigning issues
...
Closes #84
2021-11-05 09:19:50 +00:00
Nick DeRobertis
ae75d8bae4
Revert "Display github client information"
...
This reverts commit dd21bd0164 .
2021-10-24 12:27:53 -04:00
Nick DeRobertis
313d5e4ec8
Revert "Revert "Remove debugging prints""
...
This reverts commit 578030b505 .
2021-10-24 12:24:57 -04:00
Nick DeRobertis
578030b505
Revert "Remove debugging prints"
...
This reverts commit ed9392d252 .
2021-10-24 12:17:53 -04:00
Nick DeRobertis
ed9392d252
Remove debugging prints
2021-10-24 12:16:11 -04:00
Nick DeRobertis
308708439c
Use correct environment variable for diff url
2021-10-24 11:25:19 -04:00
Nick DeRobertis
2c95e88a49
Fix debug statement
2021-10-24 11:15:36 -04:00
Nick DeRobertis
9867ed27cd
Try to support diff url from pull request
2021-10-24 10:52:41 -04:00