1
0
Fork 0
mirror of https://code.forgejo.org/actions/cascading-pr synced 2025-03-14 22:36:58 +01:00
No description
Find a file
2023-10-12 22:22:11 +02:00
.forgejo/workflows upsert_branch && upsert_pr 2023-10-12 19:13:07 +02:00
tests script that always changes something 2023-10-12 22:22:11 +02:00
.gitignore cascading-pr.sh login both repos 2023-10-12 17:08:13 +02:00
action.yml upsert_branch && upsert_pr 2023-10-12 19:13:07 +02:00
cascading-pr-lib.sh draft implementation 2023-10-12 21:49:24 +02:00
cascading-pr.sh draft implementation 2023-10-12 21:49:24 +02:00
forgejo-curl.sh split out the lib 2023-10-11 18:05:11 +02:00
README.md upsert_branch && upsert_pr 2023-10-12 19:13:07 +02:00

Create and synchronize a PR in a dependent repository

Hacking

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/user1/token)" --origin-pr 1 --destination-url "$url" --destination-repo "user2/destinationrepo" --destination-token "$(cat /tmp/cascading-pr/user2/token)" --destination-branch "main" --update "upgraded"