Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/pr-closed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PR Closed

on:
pull_request_target:
branches:
- main
types:
- closed
issue_comment:
types:
- created

jobs:
cherry_pick_job:
permissions:
pull-requests: write
contents: write
# Only run when pull request is merged
# or when a comment starting with `/backport` is created by someone other than the
# https://github.com/apps/trustification-ci-bot bot user (user id: 199085543). Note that if you use your
# own PAT as `github_token`, that you should replace this id with yours.
# To get Github App user id we can do: 'curl -H "Authorization: Bearer token" -s https://api.github.com/users/trustification-ci-bot%5Bbot%5D'
if: >
(
github.event_name == 'pull_request_target' &&
github.event.pull_request.merged
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.comment.user.id != 199085543 &&
startsWith(github.event.comment.body, '/backport')
)
secrets: inherit
uses: trustification/release-tools/.github/workflows/backport.yaml@main
Loading