1
0
Fork 0
mirror of https://code.forgejo.org/actions/cascading-pr synced 2025-03-14 22:36:58 +01:00
Commit graph

110 commits

Author SHA1 Message Date
Earl Warren
f8a65b3d9f
run the test with fork 2023-10-24 19:52:35 +02:00
Earl Warren
b15fc5caaf
use ref instead of sha 2023-10-24 19:47:51 +02:00
Earl Warren
a69f5a0ce4
test PR from a fork
Fixes: https://code.forgejo.org/actions/cascading-pr/issues/2
2023-10-24 19:47:45 +02:00
Earl Warren
5c0fc66c82
use sha for origin instead of head
because the head ref may be either a branch or a reference, depending
on wether the PR was merged and the branch deleted. The SHA (either
from the head or the merged commit) always represents the most up to
date state of the PR.
2023-10-24 18:31:18 +02:00
Earl Warren
68cd0972e4
upgrade to 1.21.0-5-rc2 2023-10-24 17:30:18 +02:00
Earl Warren
4ef0306d4c
upgrade to 1.21.0-4-rc0 2023-10-22 23:46:43 +02:00
Earl Warren
a449a6e6f5
do nothing if nothing is pushed
Fixes: https://code.forgejo.org/actions/cascading-pr/issues/6
2023-10-22 23:35:43 +02:00
Earl Warren
bc706e42b6
posix mode so -e is inherited 2023-10-22 23:17:43 +02:00
Earl Warren
3fe3bfa714
add a comment to the origin PR with a link to the destination PR
Fixes: https://code.forgejo.org/actions/cascading-pr/issues/5
2023-10-22 18:12:46 +02:00
Earl Warren
78e88b2910
cosmetic refactor 2023-10-22 17:45:18 +02:00
Earl Warren
f325820c5a
shorter loop delay for testing 2023-10-22 17:35:29 +02:00
Earl Warren
4d2f348900
add body to PR 2023-10-22 17:31:07 +02:00
Earl Warren
d92b2a7d3e
update HACKING instructions 2023-10-22 17:25:03 +02:00
Earl Warren
28c365c695
improve the readability of API calls 2023-10-22 17:15:02 +02:00
Earl Warren
e445a531fa
only run on main, it is the same as v1 for now 2023-10-15 18:18:16 +02:00
Earl Warren
c607434f43
increase the timeout waiting for success on the cascaded PR 2023-10-15 18:16:27 +02:00
Earl Warren
89767f29db
git fetch origin, not $destination 2023-10-15 17:29:34 +02:00
Earl Warren
ab3031942c
.editorconfig 2023-10-14 20:46:18 +02:00
Earl Warren
964d21ab1b
the SHA of the head is always needed, even when there is no update 2023-10-14 20:42:03 +02:00
Earl Warren
b207ec6de2
store the tokens in files and never display them 2023-10-14 18:05:40 +02:00
Earl Warren
d1f8e17462
retry what might be asynchronous
* opening the PR at destination because the branch that was created
  is not yet known to exist

Fixes: https://code.forgejo.org/actions/cascading-pr/issues/1
2023-10-14 16:10:14 +02:00
Earl Warren
1cc9da66ff
implement retry & tests 2023-10-14 16:01:37 +02:00
Earl Warren
2666352130
remove test leftover 2023-10-13 23:55:55 +02:00
Earl Warren
7f524bea14
documentation 2023-10-13 23:38:57 +02:00
Earl Warren
66eedaebbd
do not modify the current directory 2023-10-13 22:57:51 +02:00
Earl Warren
ff91240ee5
prefix the logs with a marker for debug 2023-10-13 22:44:14 +02:00
Earl Warren
b89d03dbb7
update merge 2023-10-13 22:08:16 +02:00
Earl Warren
c87d693481
show the runner logs if the tests fail 2023-10-13 20:03:17 +02:00
Earl Warren
0b634daec3
LICENSE 2023-10-13 19:47:35 +02:00
Earl Warren
657e223acc
close cascading PR if the origin PR is closed 2023-10-13 19:43:57 +02:00
Earl Warren
dd3807fb41
password is admin1234 for all test users 2023-10-13 15:52:40 +02:00
Earl Warren
4b46875443
run.sh needs dependencies 2023-10-13 15:47:22 +02:00
Earl Warren
0123f765bd
shift run.sh 2023-10-13 15:45:50 +02:00
Earl Warren
31487b1348
use the registered runner file 2023-10-13 15:41:21 +02:00
Earl Warren
df08855107
wait on the CI to complete 2023-10-13 15:32:57 +02:00
Earl Warren
63ccad04bc
run.sh also runs in the CI 2023-10-13 15:23:50 +02:00
Earl Warren
84c728fdc5
runner capacity must be at least two jobs
otherwise the cascading pr job will never run and the original
pr will stay stuck until it timesout
2023-10-13 15:15:06 +02:00
Earl Warren
601c93ef62
notes on the development environment 2023-10-13 15:01:47 +02:00
Earl Warren
51fac222bd
install dependencies 2023-10-13 15:01:47 +02:00
Earl Warren
b0c8a634f3
check the status of the cascaded PR 2023-10-12 23:24:11 +02:00
Earl Warren
756e6eacb8
get origin_head from the PR 2023-10-12 23:02:27 +02:00
Earl Warren
36e8cdcda4
do not override the token 2023-10-12 22:49:16 +02:00
Earl Warren
a32b74cb81
use the right credentials 2023-10-12 22:37:54 +02:00
Earl Warren
f9fb0fcecd
script that always changes something 2023-10-12 22:22:11 +02:00
Earl Warren
bb0a57a8cd
destination workflow 2023-10-12 22:01:18 +02:00
Earl Warren
fc026df37e
draft implementation 2023-10-12 21:49:24 +02:00
Earl Warren
ec542726c8
upsert_branch && upsert_pr 2023-10-12 19:13:07 +02:00
Earl Warren
71281446ea
cascading-pr.sh login both repos 2023-10-12 17:08:13 +02:00
Earl Warren
007e34c709
add path 2023-10-12 15:00:48 +02:00
Earl Warren
731e463dfd
prefix 2023-10-12 14:57:38 +02:00