mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 22:17:58 +00:00
added action to pass review bot on merge queue (#2414)
This action will trigger when a merge queue is created and will add a positive status check under the `review-bot` account, allowing the PR to pass the required check for the merge. --------- Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
name: Merge-Queue
|
||||
|
||||
on:
|
||||
merge_group:
|
||||
|
||||
jobs:
|
||||
trigger-merge-queue-action:
|
||||
runs-on: ubuntu-latest
|
||||
environment: master
|
||||
steps:
|
||||
- name: Generate token
|
||||
id: app_token
|
||||
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
|
||||
with:
|
||||
app_id: ${{ secrets.REVIEW_APP_ID }}
|
||||
private_key: ${{ secrets.REVIEW_APP_KEY }}
|
||||
- name: Add Merge Queue status check
|
||||
uses: billyjbryant/create-status-check@3e6fa0ac599d10d9588cf9516ca4330ef669b858 # v2
|
||||
with:
|
||||
authToken: ${{ steps.app_token.outputs.token }}
|
||||
context: 'review-bot'
|
||||
description: 'PRs for merge queue gets approved'
|
||||
state: 'success'
|
||||
sha: ${{ github.event.merge_group.head_commit.id }}
|
||||
Reference in New Issue
Block a user