Skip to content

Branch out-of-sync notifier

Actions
Comments on a given PR if the base branch is out of sync with the target one
0.1.3
Latest
Star (0)

📣 Branch out-of-sync notifier action

🖋 Description

A github action that notifies pull-request owners that their base branch is behind the target branch via a comment on the pull request itself.

It utilizes tools such as git and github-script to write workflows in JavaScript.

image

🔨 Setup

Below is the bare minimum step in order to utilize this action, by default each of the inputs has a default value.

name: Check if base branch is synchronized

on:
  pull_request:
    types: [opened, synchronize, reopened, edited]

jobs:
  check-branch-sync:
    name: Check if head & base branches are in sync
    runs-on: ubuntu-latest

    steps:
      - name: Notify PR owner if branch is out of sync
        uses: SonnyRR/[email protected]

📩 Inputs

base-ref:
  description: "The base git reference, used for comparison."
  default: ${{ github.event.pull_request.base.ref }}
  required: true
head-ref:
  description: "The head git reference, used for comparison."
  default: ${{ github.event.pull_request.head.ref }}
  required: true
request-owner:
  description: "The owner of the pull request"
  default: ${{ github.event.pull_request.user.login }}
  required: true
request-number:
  descripton: "The pull request number"
  default: ${{ github.event.pull_request.number }}
  required: true
no-sync-label:
  description: "The label value, used for tagging PRs that shouldn't be checked"
  default: 'no-branch-sync'
  required: false

Branch out-of-sync notifier is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Comments on a given PR if the base branch is out of sync with the target one
0.1.3
Latest

Branch out-of-sync notifier is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.