Skip to content

Create reusable workflow to create issue to solve puzzle using @sourcery-ai develop #3

Open
@brendanator

Description

@brendanator
  • 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`
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions