Skip to content

Commit

Permalink
Enable PR dependency check jobs
Browse files Browse the repository at this point in the history
This job marks a PR `dependent` whenever a dependent PR
is mentioned via `Depends on/ depends on` keyword.

The job fails until the dependent PR is not merged. This
helps in properly managing merging of dependent PRs.

Signed-off-by: Janki Chhatbar <[email protected]>
  • Loading branch information
Jaanki authored and tpantelis committed Apr 14, 2021
1 parent c0997b9 commit 6f2994a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/dependent-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: PR Dependencies

on:
issues:
types:
- opened
- edited
- closed
- reopened
- synchronize
pull_request_target:
types:
- opened
- edited
- closed
- reopened
- synchronize
schedule:
- cron: '0 0/6 * * *' # every 6 hours

jobs:
check:
name: Check Dependencies
runs-on: ubuntu-latest
steps:
- uses: z0al/dependent-issues@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# The label to use to mark dependent issues
label: dependent

# Enable checking for dependencies in issues.
check_issues: on

# A comma-separated list of keywords to mark dependency.
keywords: depends on, Depends on

0 comments on commit 6f2994a

Please sign in to comment.