Commit Graph

462 Commits

Author SHA1 Message Date
Robert Alonso
7435acbd70 feat: add additional Dockerfile target
Add additional, non-default, Dockerfile target
which installs app into an ubuntu image. This is
useful for local development and enables other
operations (such as committing back to the repo)
to occur within the container.
2024-10-28 18:38:59 +00:00
Robert Alonso
eefdda59f9 chore: add devcontainer 2024-10-28 18:38:59 +00:00
Robert Alonso
bd01636b00 refactor: move insert_issue_urls logic to main 2024-10-28 18:38:59 +00:00
Robert Alonso
21f86f529e feat: provide more info about issue create/update 2024-10-28 18:38:59 +00:00
Robert Alonso
a4edef676c feat: add get_issue_url()
This is really just a dummy operation so that
main can unconditionally make the call on any client
2024-10-28 18:38:59 +00:00
Robert Alonso
1fa135d86b feat: provide additional info about issue being processed 2024-10-28 18:38:59 +00:00
Robert Alonso
02c158cabe refactor: abstract diff method within client
There's no reason to have main directly construct
the URL. A different VCS (such as GitLab) could
have a different URL construction. Further, in the
case of LocalClient, there is no URL.
2024-10-28 18:38:59 +00:00
Robert Alonso
1674ad54d4 refactor: get_issue_url() returns *just* the URL
Leave the extra text to the caller (main)
2024-10-28 18:38:59 +00:00
Alastair Mooney
b9c9d197ff
Merge pull request #220 from rgalonso/fix/reset-environment-after-custom-language-tests
fix: reset modified environment variables after test
2024-10-28 09:32:00 +00:00
Alastair Mooney
2e895755ed
Merge pull request #221 from rgalonso/feat/prep-generic-vcs-support
Revert "Update main.py"
2024-10-28 09:23:27 +00:00
Robert Alonso
b1d707856d Revert "Update main.py"
This reverts commit 2157658a7d.
2024-10-25 19:17:13 +00:00
Robert Alonso
67fd1f496c fix: reset modified environment variables after test
CustomLanguageTest was modifying a few environment
variables and not restoring them when complete. This
led to problems for later tests that expected those
variables to be at their default values.
2024-10-25 18:54:29 +00:00
Alastair Mooney
22ab6506e0
Merge pull request #217 from rgalonso/feat/prep-generic-vcs-support
refactor in preparation for supporting other VCSs
2024-10-25 19:43:46 +01:00
Alastair Mooney
2157658a7d
Update main.py 2024-10-25 19:43:01 +01:00
Alastair Mooney
d6553dba69
Update TodoParser.py 2024-10-25 19:42:25 +01:00
Robert Alonso
9b24f44c63 refactor: clean up imports 2024-10-25 18:12:00 +00:00
Robert Alonso
3753baeb0a fix: copy all modules into Docker image 2024-10-25 02:49:17 +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
Alastair Mooney
771af35191
Merge pull request #214 from aleexharris/feat/add-toml-support
Added TOML Support
2024-10-14 12:33:02 +01:00
Alex Harris
220a09bb7c test: Added tests for TOML support 2024-10-11 18:15:04 +01:00
Alex Harris
73fd4fae40 docs: Added TOML to README.md 2024-10-11 18:06:36 +01:00
Alex Harris
abe0768c1d feat: Added TOML section to syntax.json 2024-10-11 18:06:07 +01:00
Alex Harris
5f25ec7c8e build: Uncommented out the .python-version line in your .gitignore 2024-10-11 18:05:13 +01:00
Alastair Mooney
92f6bda7f0
Update test_todo_parser.py 2024-10-11 10:24:24 +01:00
Alastair Mooney
7ac233269b
Merge pull request #213 from allrob23/master
Improve file handling in `main.py`
2024-10-11 09:58:23 +01:00
Robin
a672421057
update main.py to avoid resource leak 2024-10-10 16:52:13 -03:00
Alastair Mooney
9fa2c464ba
Create PULL_REQUEST_TEMPLATE.md 2024-10-09 19:42:38 +01:00
Alastair Mooney
d2542d080d
Delete .github/PULL_REQUEST_TEMPLATE directory 2024-10-09 19:42:01 +01:00
Alastair Mooney
ace08cb53a
Merge pull request #211 from naps62/solidity
Adds support for solidity
2024-10-09 18:24:40 +01:00
Miguel Palhas
64aac3bc8a code review 2024-10-09 18:21:46 +01:00
Alastair Mooney
85a6f710f1
Merge pull request #212 from naps62/lua
Adds support for lua
2024-10-09 18:14:19 +01:00
Miguel Palhas
a33cb4190b code review 2024-10-08 16:34:53 +01:00
Miguel Palhas
b2a9899083 code review 2024-10-08 16:34:19 +01:00
Miguel Palhas
d6f93f3748 code review 2024-10-08 15:57:45 +01:00
Miguel Palhas
4f3709febb code review 2024-10-08 12:32:18 +01:00
Miguel Palhas
94022cee51 code review 2024-10-08 12:16:19 +01:00
Miguel Palhas
7b5d19e941 code review 2024-10-08 12:02:02 +01:00
Miguel Palhas
e88cba0c82 code review 2024-10-08 11:57:17 +01:00
Miguel Palhas
26ed78e3f4 code review 2024-10-08 11:55:07 +01:00
Alastair Mooney
b380120404
Update README.md 2024-10-08 10:18:59 +01:00
Miguel Palhas
3442688932 code review 2024-10-07 16:38:24 +01:00
Miguel Palhas
50aa970dc4 code review 2024-10-07 16:38:02 +01:00
Miguel Palhas
10c00c3144 Adds support for lua 2024-10-07 16:36:37 +01:00
Miguel Palhas
6750a91222 Adds support for solidity 2024-10-07 16:35:17 +01:00
Alastair Mooney
6a791fdf4e
Rename GENERIC.md to PULL_REQUEST_TEMPLATE.md 2024-09-25 14:17:02 +01:00
Alastair Mooney
1b17728e72
Rename NEW_LANGUAGE.MD to NEW_LANGUAGE.md 2024-09-25 14:10:07 +01:00
Alastair Mooney
1910dc670a
Create GENERIC.md 2024-09-25 14:09:44 +01:00
Alastair Mooney
17b2e1bc4a
Update NEW_LANGUAGE.MD 2024-09-25 14:08:25 +01:00