Skip to content

Commit fb3b044

Browse files
author
Auto-Co AI
committed
Update README for GitHub Action direction
1 parent 19bc490 commit fb3b044

1 file changed

Lines changed: 59 additions & 49 deletions

File tree

README.md

Lines changed: 59 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,77 @@
1-
# DocuCraft — AI Documentation from Your GitHub Repos
1+
# DocuCraft — Auto PR Descriptions
22

3-
DocuCraft automatically generates PR descriptions, changelogs, and documentation from your GitHub repositories.
3+
DocuCraft automatically generates structured PR descriptions from your pull request diffs. Works as a **GitHub Action** — no servers, no database, no configuration needed.
44

5-
## Phase 0: PR Pilot
5+
## Usage
66

7-
The initial release ("PR Pilot") focuses on two core features:
8-
- **Auto PR Descriptions** — Every pull request gets a clear, well-structured description generated from code changes
9-
- **Changelog Generation** — Generate release notes from merged PRs with one click
7+
Add this to `.github/workflows/docucraft.yml`:
108

11-
## Tech Stack
9+
```yaml
10+
name: DocuCraft
1211

13-
- **Frontend:** Next.js 16, React 19, Tailwind CSS v4, shadcn/ui
14-
- **Backend:** Next.js API routes (serverless)
15-
- **Database:** Supabase (Postgres)
16-
- **AI:** OpenAI (GPT-4o-mini)
17-
- **Auth:** GitHub App OAuth
18-
- **Deployment:** Vercel (frontend + API), Railway (background tasks), Supabase (DB)
12+
on:
13+
pull_request:
14+
types: [opened, synchronize]
1915

20-
## Getting Started
16+
permissions:
17+
contents: read
18+
pull-requests: write
2119

22-
```bash
23-
# Copy environment variables
24-
cp .env.example .env.local
20+
jobs:
21+
generate:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: CreativeCodingSolutions/docucraft/.github/actions/docucraft@v1
26+
with:
27+
github-token: ${{ secrets.GITHUB_TOKEN }}
28+
```
29+
30+
That's it. Every PR will get a generated description.
31+
32+
## Features
33+
34+
- **Zero config** — add the workflow file, done
35+
- **No API keys** — works out of the box with template mode
36+
- **AI mode** — optional OpenAI integration for smarter descriptions
37+
- **Works on every PR** — open, synchronize, reopened
38+
- **No servers** — runs entirely in GitHub Actions
39+
40+
## AI Mode (Optional)
2541
26-
# Fill in your credentials:
27-
# - Supabase project URL and keys
28-
# - GitHub App credentials
29-
# - OpenAI API key
42+
Add your OpenAI API key as a repository secret and enable AI mode:
3043
31-
# Run development server
32-
npm run dev
44+
```yaml
45+
- uses: CreativeCodingSolutions/docucraft/.github/actions/docucraft@v1
46+
with:
47+
github-token: ${{ secrets.GITHUB_TOKEN }}
48+
mode: ai
49+
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
3350
```
3451
35-
## Environment Variables
52+
## Inputs
3653
37-
| Variable | Description |
38-
|----------|-------------|
39-
| `NEXT_PUBLIC_SUPABASE_URL` | Supabase project URL |
40-
| `NEXT_PUBLIC_SUPABASE_ANON_KEY` | Supabase anonymous key |
41-
| `SUPABASE_SERVICE_ROLE_KEY` | Supabase service role key |
42-
| `GITHUB_APP_ID` | GitHub App ID |
43-
| `GITHUB_APP_CLIENT_ID` | GitHub App client ID |
44-
| `GITHUB_APP_CLIENT_SECRET` | GitHub App client secret |
45-
| `GITHUB_APP_PRIVATE_KEY` | GitHub App private key |
46-
| `GITHUB_APP_WEBHOOK_SECRET` | GitHub App webhook secret |
47-
| `OPENAI_API_KEY` | OpenAI API key |
48-
| `OPENAI_MODEL` | OpenAI model (default: gpt-4o-mini) |
49-
| `NEXT_PUBLIC_APP_URL` | App URL (http://localhost:3000 for dev) |
54+
| Input | Required | Default | Description |
55+
|-------|----------|---------|-------------|
56+
| `github-token` | Yes | — | `secrets.GITHUB_TOKEN` |
57+
| `openai-api-key` | No | — | OpenAI API key for AI mode |
58+
| `openai-model` | No | `gpt-4o-mini` | OpenAI model name |
59+
| `mode` | No | `template` | `template` or `ai` |
60+
| `update-title` | No | `false` | Update PR title too |
5061

51-
## Architecture
62+
## Outputs
5263

53-
1. **GitHub App** receives `pull_request` webhook events
54-
2. **Webhook handler** fetches PR diff, generates AI description via OpenAI
55-
3. **AI description** posted as PR comment and stored in Supabase
56-
4. **Dashboard** displays repos, PRs, and generated changelogs
57-
5. **Changelog generation** groups merged PRs and generates release notes
64+
| Output | Description |
65+
|--------|-------------|
66+
| `description` | The generated PR description text |
5867

59-
## Pricing
68+
## Why DocuCraft?
6069

61-
- **Free** — Open source repos
62-
- **$29/mo Pro** — Individual developers, private repos
63-
- **$79/mo Team** — Small teams, multiple installations
70+
- Stop writing "fixed stuff" PR descriptions
71+
- Consistent documentation across your team
72+
- Works on public AND private repos
73+
- Free and open source
6474

65-
## License
75+
## Website
6676

67-
MIT
77+
https://creativecodingsolutions.github.io/docucraft/

0 commit comments

Comments
 (0)