Commit graph

11 commits

Author SHA1 Message Date
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
e39eca5352
Add checkout step to chores workflow
Some checks failed
/ chores (push) Failing after 27s
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.
2024-02-18 11:53:10 +01:00
f8a4ae8786
Trigger chores workflow on push events
Some checks failed
/ chores (push) Failing after 8s
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.
2024-02-18 11:47:42 +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
7a23fb6cf0 Initial commit 2024-02-18 09:53:51 +00:00