Skip to content

Commit

Permalink
feat(ci): trigger a workflow for reviewing patches (#12277)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fffonion authored Jan 4, 2024
1 parent 5175e10 commit 064f3f6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/openresty-patches-companion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Openresty patches review companion
on:
pull_request:
paths:
- 'build/openresty/patches/**'

jobs:
create-pr:
runs-on: ubuntu-latest
steps:
- name: Dispatch the workflow
uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385 # v1
with:
workflow: create-pr.yml
repo: kong/openresty-patches-review
ref: master
token: ${{ secrets.PAT }}
inputs: |
{"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 }}"}

0 comments on commit 064f3f6

Please sign in to comment.