Skip to content

Commit

Permalink
Activate single commit check (#1611)
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
mdellweg authored Oct 30, 2023
1 parent 876d4e9 commit 537c177
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 71 deletions.
70 changes: 0 additions & 70 deletions .ci/scripts/changelog.py

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ jobs:
run: sh .github/workflows/scripts/check_commit.sh
- name: Verify requirements files
run: python .ci/scripts/check_requirements.py
single_commit:
runs-on: ubuntu-latest
name: Assert single commit
if: github.base_ref == 'main'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout main
run: git fetch origin main
- name: create local main branch
run: git branch main origin/main
- name: Commit Count Check
run: test `git log --oneline --no-merges HEAD ^main | wc -l ` = 1

lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion template_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ python_version: '3.8'
release_email: [email protected]
release_user: pulpbot
run_pulpcore_tests_for_plugins: false
single_commit_check: false
single_commit_check: true
stalebot: true
stalebot_days_until_close: 30
stalebot_days_until_stale: 90
Expand Down

0 comments on commit 537c177

Please sign in to comment.