Move checkout_revision() onto HackbotContext or fold it into prepare_repo()
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 570
- Forks
- 351
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 65
Description
checkout_revision() in libs/hackbot-runtime/hackbot_runtime/revision.py takes ctx as its first argument and only calls ctx.prepare_repo(). Since it operates entirely on the context, make it a method on HackbotContext (or merge it into prepare_repo()) for a cleaner API.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in libs/hackbot-runtime/hackbot_runtime/revision.py at checkout_revision() and inspect its callers and HackbotContext.prepare_repo(). Decide whether the operation belongs as a HackbotContext method or should be folded into prepare_repo(), then verify that callers use the cleaner API while repository preparation behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100