mirror of
https://code.forgejo.org/actions/cascading-pr.git
synced 2025-06-28 04:43:44 +00:00
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.
This commit is contained in:
parent
0e9a4e846b
commit
0c3c8b591b
12 changed files with 326 additions and 85 deletions
8
tests/destination-fail/.forgejo/workflows/test.yml
Normal file
8
tests/destination-fail/.forgejo/workflows/test.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
name: test
|
||||
on: [pull_request_target]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- run: false
|
Loading…
Add table
Add a link
Reference in a new issue