- Python 3.9 or higher
- Poetry (for dependency management)
- Docker (for running the Restack services)
- Active Google AI Studio account with API key
- GitHub personal access token with repo permissions
-
Run Restack local engine with Docker:
docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/engine:main
-
Open the web UI to see the workflows:
http://localhost:5233
-
Clone this repository:
git clone https://github.com/restackio/autonomous-pr-creator cd autonomous-pr-creator
-
Install dependencies using Poetry:
poetry install
-
Set
GEMINI_API_KEY
as an environment variable from Google AI Studioexport GEMINI_API_KEY=<your-api-key>
-
Set
GITHUB_TOKEN
as an environment variable from your GitHub accountexport GITHUB_TOKEN=<your-github-token>
-
Run the services:
poetry run services
This will start the Restack service with the defined workflows and functions.
-
In a new terminal, schedule the workflow:
python run_ui.py
This will open a Streamlit UI to run the example.
src/
: Main source code directoryclient.py
: Initializes the Restack clientfunctions/
: Contains function definitionsutil/
: Utility functions
workflows/
: Contains workflow definitionsui/
: Streamlit UI filesservices.py
: Sets up and runs the Restack services
run_ui.py
: Example script to run the UI