Commit graph

10 commits

Author SHA1 Message Date
e575fd9e08
feat: automate weekly chores management
- Initialized .gitignore to exclude virtual environment
- Added a comprehensive chores checklist as a markdown file
- Introduced development dependencies (ruff, black) in requirements-dev.txt
- Updated chores script to read tasks from the markdown file instead of an environment variable, improving task organization and maintainability
2024-07-28 20:41:30 +02:00
11bde9e12d
Updated chore due date to ISO 8601 format
All checks were successful
/ chores (push) Successful in 19s
Ensured that the 'due_date' variable is now formatted in strict ISO 8601
compliance by removing microseconds and appending 'Z' to indicate UTC.
This change aids in consistent date-time parsing across different
systems and services that expect a standardized timestamp without
fractional seconds.
2024-02-18 13:27:24 +01:00
d5fe6d18a4
Add logging for issue creation payload
Some checks failed
/ chores (push) Failing after 17s
Introduce a debug print statement to log the payload before creating an
issue in the `chores.py` script. This aids in tracing outgoing data and
facilitates easier troubleshooting of the issue creation process.
2024-02-18 13:25:53 +01:00
1df648ca81
Update authentication method for chore script
Some checks failed
/ chores (push) Failing after 12s
Refactor the authentication in the chore script by removing the 'token'
field from the payload and including it in the header as
'Authorization'. This change enhances security practices by aligning
with standard HTTP authorization protocols.
2024-02-18 13:23:54 +01:00
623115295a
Optimize default URL fallback mechanism
Some checks failed
/ chores (push) Failing after 14s
Refactored the assignment of FORGEJO_URL to use a more idiomatic fallback approach in case the environment variable is not set. This change ensures that None values are handled correctly and the default URL is used when the environment variable FORGEJO_URL is undefined, enhancing reliability.
2024-02-18 13:22:23 +01:00
3d13ae755a
Enhance env var handling in chore script
Some checks failed
/ chores (push) Failing after 16s
Refactored the chores script to improve the robustness of environment
variable handling. This includes mandatory checks for the FORGEJO_TOKEN
and default values or prompts for missing optional environment
variables. Added assertion to ensure the token is present after
retrieval which, combined with the KeyError, will provide better error
handling. Optional variables now use a fallback value directly in the
get method for concise expression.

Resolves issue with silent failures when required environment settings
are not provided.
2024-02-18 13:21:39 +01:00
619d7e9fef
Ensure EXPIRY_DAYS is an integer from env variable
Some checks failed
/ chores (push) Failing after 16s
Casting `CHORES_EXPIRY_DAYS` environment variable to int ensures that
the expiry days value is correctly interpreted for use throughout the
application without type errors. This small but critical change
guarantees consistent behavior when dealing with time-based logic. No
issue reference provided.
2024-02-18 13:19:03 +01:00
1d8f8c63df
Enhanced workflow with environment variables
Some checks failed
/ chores (push) Failing after 13s
Introduced a set of environment variables in the CI workflow
configuration to align with the chores script's requirements. The
workflow now passes explicit values for necessary variables, matching
the environment variable name changes in the chores script for
consistency and clarity. Ensured correct token usage by updating TO
token reference. This change facilitates better configuration management
and error handling in automated tasks.
2024-02-18 13:13:51 +01:00
bae80c59fe
Switch auth token env var for pipeline
Some checks failed
/ chores (push) Failing after 15s
compatibility

Updated the environment variable for authentication to align with the
pipeline's token-naming conventions, improving integration and
consistency across our automated workflows. Error messaging reflects
this change for clarity during troubleshooting.
2024-02-18 13:07:14 +01:00
94cd8089b1
Add automated chores issue creation workflow
Implemented a new Forgejo Action workflow to automatically create weekly
chores issues based on a Python script. This workflow triggers on
commits and the Python script uses project-specific environment
variables to customize the issue creation, including setting due dates
and assigning users. Streamlines project maintenance and ensures regular
task management.
2024-02-18 11:46:52 +01:00