2023-10-11 18:09:39 +02:00
|
|
|
Create and synchronize a PR in a dependent repository
|
2023-10-11 15:39:52 +02:00
|
|
|
|
|
|
|
# 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
|
2023-10-11 15:50:12 +02:00
|
|
|
forgejo-runner.sh teardown
|
2023-10-11 15:39:52 +02:00
|
|
|
forgejo.sh teardown
|
|
|
|
forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.21
|
2023-10-11 15:50:12 +02:00
|
|
|
forgejo-runner.sh setup
|
2023-10-12 15:12:52 +02:00
|
|
|
url=http://$(cat forgejo-ip):3000
|
|
|
|
firefox $url
|
2023-10-11 16:25:56 +02:00
|
|
|
tests/run.sh --debug
|
2023-10-12 14:57:38 +02:00
|
|
|
tests/run.sh --debug create_pull_request
|
2023-10-12 22:43:32 +02:00
|
|
|
cascading-pr.sh --debug --origin-url "$url" --origin-repo "user1/originrepo" --origin-token "$(cat /tmp/cascading-pr-test/user1/repo-token)" --origin-pr 1 --destination-url "$url" --destination-repo "user2/destinationrepo" --destination-token "$(cat /tmp/cascading-pr-test/user2/repo-token)" --destination-branch "main" --update "upgraded"
|
2023-10-11 15:39:52 +02:00
|
|
|
```
|