Create reusable workflow to create issue to solve puzzle using @sourcery-ai develop
#3
Open
Description
- 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 usinggh 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`
Metadata
Assignees
Labels
No labels