Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ updates:
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
# squawk-cli's >=2.0 floor is intentionally broad so consumers can pin any
# squawk 2.x via additional_dependencies. Do not let Dependabot tighten it.
- dependency-name: "squawk-cli"

# GitHub Actions
- package-ecosystem: "github-actions"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ jobs:
fi
echo "Versions match: $PYPROJECT_VERSION"

if [ "${{ github.event_name }}" = "pull_request" ]; then
# Dependabot never bumps the package version, only dependencies, so
# exempt it from the version-bump requirement or its dependency PRs
# (which edit pyproject.toml) would always fail this check.
if [ "${{ github.event_name }}" = "pull_request" ] && [ "${{ github.actor }}" != "dependabot[bot]" ]; then
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated
git fetch origin main --depth=1
MAIN_VERSION=$(git show origin/main:pyproject.toml | python -c "import sys, tomllib; print(tomllib.loads(sys.stdin.read())['tool']['poetry']['version'])" || true)
if [ -z "$MAIN_VERSION" ]; then
Expand Down
Loading