|
13 | 13 | - 🛡️ **Safety First**: Built-in safeguards against infinite loops |
14 | 14 | - 🔍 **Dry-run Mode**: Preview changes without committing |
15 | 15 | - 🚫 **Skip Control**: Label-based opt-out mechanism |
| 16 | +- 📄 **Draft PR Control**: Optionally skip draft PRs |
16 | 17 | - 🍴 **Fork Friendly**: Handles forked PRs gracefully |
17 | 18 |
|
18 | 19 | ## 🚀 Quick Start |
|
70 | 71 | | `config_path` | Path to Felix configuration file | No | `.felixrc.json` | |
71 | 72 | | `dry_run` | Run in dry-run mode (comment instead of commit) | No | `false` | |
72 | 73 | | `skip_label` | PR label that skips Felix processing | No | `skip-felix` | |
| 74 | +| `skip_draft_prs` | Skip processing draft pull requests | No | `false` | |
73 | 75 | | `allowed_bots` | Comma-separated list of bot names Felix should run against | No | `` | |
74 | 76 | | `paths` | Comma-separated list of paths to run fixers on | No | `.` | |
75 | 77 |
|
@@ -176,9 +178,27 @@ Use your own npm scripts instead of built-in commands: |
176 | 178 | - Skips processing (cannot commit to forks with default token) |
177 | 179 | - Logs appropriate messages |
178 | 180 |
|
| 181 | +### Draft PR Handling |
| 182 | + |
| 183 | +By default, Felix processes draft PRs just like regular PRs. You can configure Felix to skip draft PRs entirely: |
| 184 | + |
| 185 | +```yaml |
| 186 | +- name: Run Fix-it Felix |
| 187 | + uses: launchdarkly/fix-it-felix-action@v1 |
| 188 | + with: |
| 189 | + skip_draft_prs: true |
| 190 | +``` |
| 191 | + |
| 192 | +This is useful when you want to: |
| 193 | + |
| 194 | +- Prevent commits on work-in-progress PRs |
| 195 | +- Let developers refine their changes before auto-fixing |
| 196 | +- Reduce action runs during development |
| 197 | + |
179 | 198 | ### Skip Mechanisms |
180 | 199 |
|
181 | 200 | - **Label-based**: Add `skip-felix` label to PR |
| 201 | +- **Draft PRs**: Set `skip_draft_prs: true` to skip draft PRs |
182 | 202 | - **Configuration**: Set `fixers: []` in `.felixrc.json` |
183 | 203 | - **Event-based**: Only runs on specific PR events |
184 | 204 |
|
|
0 commit comments