You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create GitHub workflow called create-puzzle-issue.yml
Trigger on:
workflow_call - inputs year, day, part as strings
Add permissions needed: issues
Set env vars
GH_TOKEN: secrets.USER_TOKEN
Create an issue using gh issue create
Title: Advent of code - {year} day {day} part 1
Body:
Write solution in `puzzles/year_{year}/day_{day}/solution.py`, and write tests in `puzzles/year_{year}/day_{day}/test_solution.py` using relative imports
Post a @sourcery-ai develop comment to the issue using gh issue comment
@sourcery-ai develop - you can read the puzzle statement with `uv run advent_of_code.py read {year} {day} {part}`. Run the solution on `puzzles/year_{year}/day_{day}/input.txt` and write answer to `puzzles/year_{year}/day_{day}/answer_part{part}.txt`