mozilla / mozilla/blender

Rewrite gather-context.sh to Python

Open
#18 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6
Forks
2
Avg merge
1d 11h
Merged PRs (30d)
17

Description

gather-context.sh is getting complex for a shell script. Rewrite it as a Python script.

Context: review comment on #16 — https://github.com/mozilla/blender/pull/16#pullrequestreview-4208113227

The script fetches PR metadata, diff, body, release notes, CI status, and failing checks, then substitutes them into a prompt template. Python would be cleaner for the JSON parsing, string manipulation, and error handling.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading gather-context.sh and the review comment on PR #16 to understand the current behavior. Trace how it fetches PR metadata, diffs, release notes, CI status, and failing checks, then substitutes them into the prompt template; done means the Python script preserves those operations with clearer JSON parsing, string handling, and error handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, shell
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.