Skip to content
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
8 changes: 6 additions & 2 deletions .github/workflows/enforce-develop-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ name: Enforce PRs Only from Develop
on:
pull_request:
branches: [staging]
types: [opened, synchronize, reopened]

jobs:
check-develop-only:
runs-on: ubuntu-latest
steps:
- name: Fail if source is not develop
run: |
echo "Source branch: ${{ github.head_ref }}"
if [[ "${{ github.head_ref }}" != "develop" ]]; then
echo "Only PRs from 'develop' branch are allowed to merge into 'staging'."
echo "Only PRs from 'develop' branch are allowed to merge into 'staging'."
exit 1
fi
else
echo "✅ PR is from develop branch. Proceeding."
fi
8 changes: 6 additions & 2 deletions .github/workflows/enforce-staging-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ name: Enforce PRs Only from Staging
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]

jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Fail if source is not staging
run: |
echo "Source branch: ${{ github.head_ref }}"
if [[ "${{ github.head_ref }}" != "staging" ]]; then
echo "Only PRs from 'staging' branch are allowed to merge into 'main'."
echo "Only PRs from 'staging' are allowed to merge into 'main'."
exit 1
fi
else
echo "✅ PR is from staging branch. Proceeding."
fi
1 change: 1 addition & 0 deletions test/features/steps/shared_test_steps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from behave import given, when, then

# Import necessary libraries
@then("the response status should be 200")
def step_then_status_200(context):
assert context.response.status_code == 200, f"Expected 200 but got {context.response.status_code}"
Expand Down
Loading