Skip to content

Commit 064f3f6

Browse files
authored
feat(ci): trigger a workflow for reviewing patches (#12277)
This commit adds a workflow that opens a companion PR (the link being displayed as mentioning current PR) when developer opens a PR that modifies openresty patches. The companion PR automatically creates and updates in-place when the PR at kong or kong-ee updates, and displays only the diffs for patches files to help reviewer understand the changes better.
1 parent 5175e10 commit 064f3f6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Openresty patches review companion
2+
on:
3+
pull_request:
4+
paths:
5+
- 'build/openresty/patches/**'
6+
7+
jobs:
8+
create-pr:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Dispatch the workflow
12+
uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385 # v1
13+
with:
14+
workflow: create-pr.yml
15+
repo: kong/openresty-patches-review
16+
ref: master
17+
token: ${{ secrets.PAT }}
18+
inputs: |
19+
{"pr-branch":"${{ github.event.pull_request.head.repo.owner.login }}:${{ github.head_ref }}", "pr-base":"${{ github.base_ref }}", "ee":${{ contains(github.repository, 'kong-ee') && 'true' || 'false' }}, "pr-id":"${{ github.event.pull_request.number }}"}
20+

0 commit comments

Comments
 (0)