Skip to content

Commit

Permalink
Add a GitHub action to block until all depends-on are merged
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericlepied committed Nov 22, 2023
1 parent b583259 commit 3f057a6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---

name: Pull Request
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:

check-all-dependencies-are-merged:
name: "Check all dependencies are merged"
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Check all dependent Pull Requests are merged
uses: depends-on/depends-on-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
check-unmerged-pr: true

...

0 comments on commit 3f057a6

Please sign in to comment.