Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block pull requests to stable #6001

Merged
merged 5 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
- unstable
pull_request:
paths-ignore: ['media/**', 'docs/**', '**/*.md']
branches-ignore:
- stable
workflow_dispatch:

concurrency: # Cancel stale PR builds (but not push builds)
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/pr_block.yml
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 }}
Loading