-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block pull requests to
stable
(#6001)
* block pull requests to `stable` Pull requests should be opened against the `unstable` branch. See https://nimbus.guide/contribute.html#build-and-deploy * avoid deleting branch to mimic manual close * avoid triggering on dependabot PRs
- Loading branch information
1 parent
c9b54bf
commit 9e8d2e7
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# beacon_chain | ||
# Copyright (c) 2024 Status Research & Development GmbH | ||
# Licensed and distributed under either of | ||
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). | ||
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). | ||
# at your option. This file may not be copied, modified, or distributed except according to those terms. | ||
|
||
name: PR block | ||
on: | ||
pull_request: | ||
branches: | ||
- stable | ||
|
||
jobs: | ||
close: | ||
name: "Close pull request" | ||
runs-on: ubuntu-latest | ||
if: github.actor != 'dependabot[bot]' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Close | ||
run: | | ||
gh pr close ${{ github.event.pull_request.number }} --comment \ | ||
'Pull requests to the `stable` branch are not allowed. | ||
Please open your pull request against the `unstable` branch. | ||
See https://nimbus.guide/contribute.html#build-and-deploy' | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |