1
0
Fork 0
mirror of https://code.forgejo.org/actions/cascading-pr synced 2025-03-15 06:46:59 +01:00
Commit graph

39 commits

Author SHA1 Message Date
Earl Warren
0c3c8b591b
allow running on a ref instead of a PR
When running from a PR, the ref is the head of the PR in the origin
repository. The PR is used to:

* display comments about the location of the destination PR
* asynchronously close / merge the destination PR when something
  happens in the origin PR

When only the ref is available, the destination PR must be closed and
the corresponding branch destroyed immediately after it concludes
because there is no convenient way to know what or when something
else will happen.
2024-01-03 16:12:23 +01:00
Earl Warren
9b5272e49c
no need to checkout before running cascading-pr 2023-11-08 17:42:51 +01:00
Earl Warren
15dc3ec7a7
simplify the retry implementation and tests 2023-11-01 18:45:07 +01:00
Earl Warren
de6776aa88
include all tests in the integration function 2023-11-01 17:23:58 +01:00
Earl Warren
84c7b12c83
add test for implicit creation of a fork in an organization 2023-11-01 17:04:03 +01:00
Earl Warren
d9ab167f95
improve verbosity
only output debug information if there is a failure
2023-11-01 15:50:39 +01:00
Earl Warren
a98dc1dffc
add a test for forked destination 2023-11-01 14:05:27 +01:00
Earl Warren
277569106a
run the update script from the default branch
Fixes: https://code.forgejo.org/actions/cascading-pr/issues/9
2023-10-28 18:20:35 +02:00
Earl Warren
edc1d376dd
separate test runs so they are visible 2023-10-27 15:51:28 +02:00
Earl Warren
5caaedbc52
close-merge input
Fixes: https://code.forgejo.org/actions/cascading-pr/issues/7
2023-10-24 23:32:13 +02:00
Earl Warren
f8a65b3d9f
run the test with fork 2023-10-24 19:52:35 +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
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
f325820c5a
shorter loop delay for testing 2023-10-22 17:35:29 +02:00
Earl Warren
d92b2a7d3e
update HACKING instructions 2023-10-22 17:25:03 +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
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
657e223acc
close cascading PR if the origin PR is closed 2023-10-13 19:43:57 +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
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
51fac222bd
install dependencies 2023-10-13 15:01:47 +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
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
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
2de0a1208c
create the pull request 2023-10-12 00:03:58 +02:00
Earl Warren
2892041d6c
create the repositories, tokens and secrets 2023-10-11 22:32:24 +02:00
Earl Warren
cdd3f46d7b
create the origin repository 2023-10-11 20:00:00 +02:00
Earl Warren
3da0fa91c3
create two users 2023-10-11 19:20:52 +02:00
Earl Warren
5f8f262472
split out the lib 2023-10-11 18:05:11 +02:00
Earl Warren
95aee3f580
move tests 2023-10-11 16:25:56 +02:00