Skip to content

SonicGarden/check-merged-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Check Merged

Check if it has been merged.

Demo

Usage:

The action works only with pull_request event.

Inputs

  • token - The GITHUB_TOKEN secret.
  • originBranch - Origin branch. (default: staging)
  • title - Error message. (default: # :anger: Not merged!)

Example

name: Check merged
on:
  pull_request:
    branches:
      - master

jobs:
  check-staging:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - uses: SonicGarden/check-merged-action@v2
        with:
          token: ${{ secrets.GITHUB_TOKEN }}