Skip to content

Commit 85d6db9

Browse files
chore: add gh-cli rule to prevent PRs against upstream repo
This repo is a fork of lemonade-hq/complexity-analyzer and gh defaults to the parent for PR operations, risking data exposure. The rule enforces --repo RiveryIO/complexity-analyzer on all gh commands. Made-with: Cursor
1 parent 7841fee commit 85d6db9

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.cursor/rules/gh-cli.mdc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
description: Rules for using the GitHub CLI (gh) in this repository
3+
globs:
4+
alwaysApply: true
5+
---
6+
7+
# GitHub CLI Rules
8+
9+
This repository is a fork. The `gh` CLI defaults to the **upstream** parent repo for PR creation and other operations.
10+
11+
**Always specify `--repo RiveryIO/complexity-analyzer`** when running `gh` commands that target a repo (e.g. `gh pr create`, `gh pr view`, `gh pr list`, `gh pr checks`).
12+
13+
Example:
14+
```bash
15+
gh pr create --repo RiveryIO/complexity-analyzer --title "..." --body "..."
16+
```
17+
18+
Never create PRs against `lemonade-hq/complexity-analyzer` — that is the public upstream and will expose private data.

0 commit comments

Comments
 (0)