Introduce an ActionType enum instead of raw string action-type constants
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
Research direction
Start with the action modules in libs/hackbot-runtime/hackbot_runtime/actions/{testrail,slack,phabricator,try_server}.py and inspect how handlers/registry.py matches action names in HANDLERS. Trace each ACTION_TYPE, PATCH_ACTION_TYPES, and TRY_ACTION_TYPES use, then introduce the shared enum and update the matching paths. Done means action names use the enum consistently and typos cannot silently yield an unrecognized action type.
Written by the indexing model from the issue text.
Description
ACTION_TYPE, PATCH_ACTION_TYPES, and TRY_ACTION_TYPES are plain module-level string constants (see libs/hackbot-runtime/hackbot_runtime/actions/{testrail,slack,phabricator,try_server}.py), matched as raw dotted strings against handlers/registry.py's HANDLERS dict keys. Introduce a shared enum for action names so a typo cannot silently produce an unrecognized action type.
- Dominant language
- Python
- Stars
- 571
- Forks
- 355
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 71
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from mozilla/bugbug
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
hackbot
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Install `xvfb` in the image for the bug fix agentPossibly taken @ayoubdiourin7 claimed this 6 days ago. Openhackbot
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mozilla/bugbug#6947 · 1 assignee ·
Maintainers usually reply within 1 day
-
good-first-bug hackbot
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Drop the response body in Phabricator webhook responsesPossibly taken @arfrappiccuno06 claimed this 9 days ago. Opengood-first-bug hackbot
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
mozilla/bugbug#6918 · 5 comments ·
Maintainers usually reply within 1 day
Similar issues
-
Zero-token evaluations are treated as missing cost in selectionPossibly taken @sylvesterkaczmarek claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
google-research/rrsi#6 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
aws-samples/sample-aws-genai-db-modernizer#294 ·
Maintainers usually reply within 1 day
-
feedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
githubnext/gh-aw-workshop#4174 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
WingedGuardian/GENesis-AGI#2852 ·
Maintainers usually reply within 1 day
-
camlight produces degenerate target camera and light framesPossibly taken @kavyabhand claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
google-deepmind/mujoco_warp#1743 ·
Maintainers usually reply within 1 day