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
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ But you might still need to adapt your code:
### Cookiecutter template

- mkdocstrings: Move `paths` key to the right section in `mkdocs.yml`.
- Migration script: Fix invalid YAML syntax in Dependabot workflow template.
9 changes: 4 additions & 5 deletions cookiecutter/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def create_dependabot_auto_merge_workflow() -> None:
workflow_dir = Path(".github") / "workflows"
workflow_dir.mkdir(parents=True, exist_ok=True)

workflow_content = """name: Auto-merge Dependabot PR
workflow_content = """\
name: Auto-merge Dependabot PR

on:
pull_request:
Expand All @@ -63,16 +64,14 @@ def create_dependabot_auto_merge_workflow() -> None:
runs-on: ubuntu-latest
steps:
- name: Auto-merge Dependabot PR
uses: >-
frequenz-floss/dependabot-auto-approve@3cad5f42e79296505473325ac6636be897c8b8a1

uses: frequenz-floss/dependabot-auto-approve@3cad5f42e79296505473325ac6636be897c8b8a1 # v1.3.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
dependency-type: 'all'
auto-merge: 'true'
merge-method: 'merge'
add-label: 'tool:auto-merged'
"""
""" # noqa: E501

workflow_file = workflow_dir / "auto-dependabot.yaml"
workflow_file.write_text(workflow_content, encoding="utf-8")
Expand Down