diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 35dc8471a..04903d3c6 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -12,6 +12,13 @@ env: # Deny warnings in CI RUSTFLAGS: "-D warnings" jobs: + target-branch-check: + name: target-branch-check + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + steps: + - name: Check that pull request is targeting unstable branch + run: test ${{ github.base_ref }} = "unstable" cargo-fmt: name: cargo-fmt runs-on: ubuntu-latest diff --git a/bors.toml b/bors.toml index b7ce82b61..e12684e87 100644 --- a/bors.toml +++ b/bors.toml @@ -16,4 +16,4 @@ status = [ ] use_squash_merge = true timeout_sec = 7200 -pr_status = ["license/cla"] +pr_status = ["license/cla", "target-branch-check"]