Uncommented the cron job in the chores workflow configuration, setting
it to run automatically at noon every Friday. This change facilitates
regular, automated maintenance tasks without manual intervention.
Updated `.forgejo/workflows/chores.yml` to use `vars` context for
environment variables, ensuring consistent variable scoping and improved
maintainability. This change simplifies the way variables are managed in
GitHub Actions workflow.
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.
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.
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.
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.
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.
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.
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.
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.
Adds a repository checkout step in the chores CI workflow to ensure code
is available for subsequent chore automation tasks. This update enables
the proper execution of the automated script for generating chores
issues.
Updated the trigger event for the chores workflow from on commit to on
push to ensure the workflow runs whenever code is pushed to the
repository. This enhances automation by aligning the execution of
routine tasks with code integration practices.
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.