Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): Bump black from 23.12.0 to 23.12.1 #429

Closed
wants to merge 12 commits into from
8 changes: 4 additions & 4 deletions .github/workflows/dependabot-auto-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ jobs:
EXTRA_AUTHORS=$(gh pr view "$PR_URL" --json commits --jq '.commits[] | .authors[] | .login' | sort | uniq | grep -v dependabot || echo -n '')
if [ -n "$EXTRA_AUTHORS" ]; then
echo "PR has authors in addition to dependabot: $EXTRA_AUTHORS"
echo "human_pushed=true" >> "$GITHUB_OUTPUT"
echo "human_pushed=yes" >> $GITHUB_OUTPUT
else
echo "human_pushed=false" >> "$GITHUB_OUTPUT"
echo "human_pushed=no" >> $GITHUB_OUTPUT
fi
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
if: >
( steps.pr_author.human_pushed != 'true' ) &&
( steps.pr_author.ouputs.human_pushed == 'no' ) &&
( steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' )
run: gh pr merge --auto --squash "$PR_URL" && gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Disable auto-merge if human modified PR
if: steps.pr_author.human_pushed == 'true'
if: steps.pr_author.outputs.human_pushed == 'yes'
run: |
echo "disabling auto-merge due to non-dependabot push"
gh pr merge --disable-auto "$PR_URL"
Expand Down
46 changes: 23 additions & 23 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions tests/unit/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,3 +300,7 @@ def test_config(monkeypatch) -> None:
root: ./data
"""
assert expected_output.strip() in res.output


def test_fail():
assert True == False
Loading