Skip to content
git-pull-request

GitHub Action

Outstanding Pull Requests

v1.0.2 Latest version

Outstanding Pull Requests

git-pull-request

Outstanding Pull Requests

Send a Slack message when two branches of a repository diverge by a certain number of commits

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Outstanding Pull Requests

uses: fishbrain/outstanding-pull-requests-action@v1.0.2

Learn more about this action in fishbrain/outstanding-pull-requests-action

Choose a version

outstanding-pull-requests-action

Send a Slack message when two branches of a repository diverge by a certain number of commits.

Inputs

owner

Required. The repository owner.

repository

Required. The repository name.

slackToken

Required. A Slack web client token.

slackChannel

Required. The name of a Slack channel accessible with the provided token.

basehead

The base and head branches to measure against, in the format "BASE...HEAD". Default: main...develop.

commitThreshold

The difference in commits needed before sending a message in Slack. Default: 5.

Example usage

uses: fishbrain/outstanding-pull-requests-action@v1.0.1
with:
  owner: fishbrain
  repository: outstanding-pull-requests-action
  slackToken: "some_token"
  slackChannel: "#some-channel"
  basehead: "master...develop"
  commitThreshold: 10

Developing

To deploy new changes:

  • Make changes and update all references to the package version.
  • Run npm run build to update action script.
  • Push changes to main branch.
  • Check CI passed.
  • Create a new release on Github matching the new version.