mirror of
https://code.forgejo.org/actions/cascading-pr.git
synced 2025-04-23 17:20:49 +00:00
20 lines
843 B
Markdown
20 lines
843 B
Markdown
Create and synchronize a PR in a dependent repository
|
|
|
|
# Hacking
|
|
|
|
```sh
|
|
git clone https://code.forgejo.org/actions/setup-forgejo
|
|
export PATH=$(pwd)/setup-forgejo:$PATH
|
|
git clone https://code.forgejo.org/actions/cascading-pr
|
|
cd cascading-pr
|
|
forgejo-curl.sh logout
|
|
forgejo-runner.sh teardown
|
|
forgejo.sh teardown
|
|
forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.21
|
|
forgejo-runner.sh setup
|
|
url=http://$(cat forgejo-ip):3000
|
|
firefox $url
|
|
tests/run.sh --debug
|
|
tests/run.sh --debug create_pull_request
|
|
cascading-pr.sh --debug --origin-url "$url" --origin-repo "user1/originrepo" --origin-token "$(cat /tmp/cascading-pr-test/user1/token)" --origin-pr 1 --destination-url "$url" --destination-repo "user2/destinationrepo" --destination-token "$(cat /tmp/cascading-pr-test/user2/token)" --destination-branch "main" --update "upgraded"
|
|
```
|