Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
alert-triangle

GitHub Action

PR Dependency Check

v1.0.0

PR Dependency Check

alert-triangle

PR Dependency Check

Verify PR dependencies are merged or closed

Installation

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

              

- name: PR Dependency Check

uses: gregsdennis/dependencies-action@v1.0.0

Learn more about this action in gregsdennis/dependencies-action

Choose a version

PR Dependency Check Action

This GitHub Action enforces PR dependencies as stated in a PR's opening comment.

The bot parses the first comment of a PR looking for the key phrases "depends on" or "blocked by" followed by an issue number specified by # and the PR number (e.g. #5).

NOTE The parsing logic currently only looks for these formats, which means that it only support linking PRs from the same repository. Please see the issues list for planned enhancements.

See it in action:

Example usage

Just add the following to a .yml file in your .github/workflows/ folder.

on: [pull_request]

jobs:
  check_dependencies:
    runs-on: ubuntu-latest
    name: Check Dependencies
    steps:
    - uses: gregsdennis/dependencies-action@main
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}