push-to-pr
/push-to-pr
Wypycha commity na istniejącą gałąź źródłową pull requesta w GitHubie, bez tworzenia nowych gałęzi.
- Autor
- project-n-e-k-o ↗
- Repozytorium
- n.e.k.o ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Wypycha commity na istniejącą gałąź źródłową pull requesta w GitHubie, bez tworzenia nowych gałęzi.
Wyzwalacze z opisu
Oryginalny opis (EN)
Push commits to an existing GitHub PR's source branch. NEVER create new branches. Use when the user says "push to PR #N", "push到PR", or any variation meaning to push local commits onto an existing pull request. Covers finding the PR's head branch via GitHub API, setting up the correct remote, and pushing with HEAD:<branch> syntax.
Jak działa
- Workflow
- Critical Rules
Podgląd SKILL.md
---
name: push-to-pr
description: Push commits to an existing GitHub PR's source branch. NEVER create new branches. Use when the user says "push to PR #N", "push到PR", or any variation meaning to push local commits onto an existing pull request. Covers finding the PR's head branch via GitHub API, setting up the correct remote, and pushing with HEAD:<branch> syntax.
---
# Push to PR
Push local commits to an existing PR's source branch. **Never create new branches.**
## Workflow
### 1. Find PR head branch
```bash
curl -s https://api.github.com/repos/{OWNER}/{REPO}/pulls/{N} \
| python3 -c "import sys,json; p=json.load(sys.stdin); print(f\"branch={p['head']['ref']}\nclone_url={p['head']['repo']['clone_url']}\ncan_modify={p['maintainer_can_modify']}\")"
```
- `head.ref` = branch name (e.g. `active_visual_chat`)
- `head.repo.clone_url` = fork URL
- `maintainer_can_modify` must be `true`
### 2. Ensure remote exists
```bash
git remote -v # check if clone_url already listed
git remote add <name> <clone_url> # only if missing
```
### 3. Fetch + rebase if needed
```bash
git fetch <remote> <branch>
# If local commits not on top:
git rebase <remote>/<branch>
```
### 4. Push
```bash
git push <remote> HEAD:<branch>
```
## Critical Rules
1. **NEVER** create new branches on any remote
2. **NEVER** `git push <remote> <local_branch>` if local branch differs from PR branch — always use `HEAD:<pr_branch>`
3. Branch name comes **only** from `head.ref` in API response
4. If `maintainer_can_modify` is `false`, inform user — cannot push
5. If push rejected (non-fast-forward), fetch and rebase first
Wersje
W bazie nie ma innych skilli o nazwie push-to-pr.
Migawka bazy z 13.11.2026 · wersja paczki 8b070cad0a6d (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 3 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90push-pr
Zatwierdza zmiany, wypycha je do zdalnego repozytorium i tworzy lub aktualizuje pull request dla bieżącej gałęzi. - 90commit-push-current
Commituje i wypycha bieżącą gałąź, także bezpośrednio do domyślnej, bez tworzenia gałęzi i pull requesta, na polecenie człowieka. - 90commit-push-current
Commituje i wypycha zmiany do bieżącej gałęzi na prośbę człowieka, bez tworzenia gałęzi i pull requestu. - 100push-to-forked-pr
Wypycha bieżące zmiany bezpośrednio do pull requesta, którego gałąź leży w forku, bez tworzenia nowej gałęzi i bez pushowania do origin. - 100git-push
Wypycha lokalne commity na zdalne repozytorium, obsługując śledzenie gałęzi, ustawianie upstreamu i bezpieczne wzorce pushowania. - 100publish-branch
Commituje i wypycha bieżącą gałąź na prośbę o publikację, także gałąź domyślną, bez tworzenia gałęzi, pull requestów i force pushów.