Skip to content

Commit 2825882

Browse files
author
Jeff Flater
committed
rm pr enforcement
1 parent fff0d4a commit 2825882

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
name: Enforce PRs Only from Develop
1+
# name: Enforce PRs Only from Develop
22

3-
on:
4-
pull_request:
5-
branches: [staging]
6-
types: [opened, synchronize, reopened]
3+
# on:
4+
# pull_request:
5+
# branches: [staging]
6+
# types: [opened, synchronize, reopened]
77

8-
jobs:
9-
check-develop-only:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Fail if source is not develop
13-
run: |
14-
echo "Source branch: ${{ github.head_ref }}"
15-
if [[ "${{ github.head_ref }}" != "develop" ]]; then
16-
echo "❌ Only PRs from 'develop' branch are allowed to merge into 'staging'."
17-
exit 1
18-
else
19-
echo "✅ PR is from develop branch. Proceeding."
20-
fi
8+
# jobs:
9+
# check-develop-only:
10+
# runs-on: ubuntu-latest
11+
# steps:
12+
# - name: Fail if source is not develop
13+
# run: |
14+
# echo "Source branch: ${{ github.head_ref }}"
15+
# if [[ "${{ github.head_ref }}" != "develop" ]]; then
16+
# echo "❌ Only PRs from 'develop' branch are allowed to merge into 'staging'."
17+
# exit 1
18+
# else
19+
# echo "✅ PR is from develop branch. Proceeding."
20+
# fi
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
name: Enforce PRs Only from Staging
1+
# name: Enforce PRs Only from Staging
22

3-
on:
4-
pull_request:
5-
branches: [main]
6-
types: [opened, synchronize, reopened]
3+
# on:
4+
# pull_request:
5+
# branches: [main]
6+
# types: [opened, synchronize, reopened]
77

8-
jobs:
9-
check-branch:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Fail if source is not staging
13-
run: |
14-
echo "Source branch: ${{ github.head_ref }}"
15-
if [[ "${{ github.head_ref }}" != "staging" ]]; then
16-
echo "❌ Only PRs from 'staging' are allowed to merge into 'main'."
17-
exit 1
18-
else
19-
echo "✅ PR is from staging branch. Proceeding."
20-
fi
8+
# jobs:
9+
# check-branch:
10+
# runs-on: ubuntu-latest
11+
# steps:
12+
# - name: Fail if source is not staging
13+
# run: |
14+
# echo "Source branch: ${{ github.head_ref }}"
15+
# if [[ "${{ github.head_ref }}" != "staging" ]]; then
16+
# echo "❌ Only PRs from 'staging' are allowed to merge into 'main'."
17+
# exit 1
18+
# else
19+
# echo "✅ PR is from staging branch. Proceeding."
20+
# fi

0 commit comments

Comments
 (0)