Skip to content

Dev stories: writer's block #51

Dev stories: writer's block

Dev stories: writer's block #51

name: Reformat with Python 🐍 totolo 🤖
on:
pull_request:
branches:
- master
types:
- closed
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install totolo
- name: Reformat "notes" in repository checkout
run: |
python -m totolo.util.mergefiles ./notes --reorder
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: reformat with python-totolo
title: reformat with python-totolo
body: |
Reformat all /notes in the theming repository using the
python-totolo package like so:
python -m totolo.util.mergefiles ./notes --reorder
branch: totolo-reformat
delete-branch: true