Update pr

Louis Lam 2025-06-23 15:37:04 +08:00
parent 701c80d92a
commit ce4ea3a388

@ -1,19 +1,20 @@
Now you can test pull requests without setting up any development environment. Now you can test pull requests without setting up any development environment.
You just need to use this docker image with specified pr repo name: You just need to use this docker image with specified pr repo name.
v2.x.x (2025-06-23) New shorten command:
```bash
npx kuma-pr <PR REPO, YOU CAN COPY>
# Example: npx kuma-pr Ionys320:fix/maintenance_drift
```
If you don't have Node.js (`npx`) installed, you can use the following command to run the docker container directly.
```bash ```bash
docker run --rm -it -p 3000:3000 -p 3001:3001 --pull always -e 'UPTIME_KUMA_GH_REPO=<PR REPO, YOU CAN COPY>' louislam/uptime-kuma:pr-test2 docker run --rm -it -p 3000:3000 -p 3001:3001 --pull always -e 'UPTIME_KUMA_GH_REPO=<PR REPO, YOU CAN COPY>' louislam/uptime-kuma:pr-test2
``` ```
v1.23.x
```bash
docker run --rm -it -p 3000:3000 -p 3001:3001 --pull always -e 'UPTIME_KUMA_GH_REPO=<PR REPO, YOU CAN COPY>' louislam/uptime-kuma:pr-test
```
Example: UPTIME_KUMA_GH_REPO=`chakflying:fix/beat-schedule-delay` Example: UPTIME_KUMA_GH_REPO=`chakflying:fix/beat-schedule-delay`
You can copy the name from here easily: You can copy the name from here easily:
@ -23,3 +24,9 @@ You can copy the name from here easily:
Add `-v uptime-kuma-pr-test:/app/data` if you need a persistent storage. Add `-v uptime-kuma-pr-test:/app/data` if you need a persistent storage.
After started, go to http://localhost:3000 After started, go to http://localhost:3000
### Test v1.X PRs
```bash
docker run --rm -it -p 3000:3000 -p 3001:3001 --pull always -e 'UPTIME_KUMA_GH_REPO=<PR REPO, YOU CAN COPY>' louislam/uptime-kuma:pr-test
```