Skip to content
Open
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
2 changes: 1 addition & 1 deletion .config/copier/.copier-answers.python.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is @generated by <https://github.com/liblaf/copier-python>.
# DO NOT EDIT!
# prettier-ignore
_commit: 5602f9a
_commit: f7444d2
_src_path: gh:liblaf/copier-python
answers_file_shared: .config/copier/.copier-answers.shared.yaml
namespace: liblaf
Expand Down
2 changes: 1 addition & 1 deletion .config/copier/.copier-answers.release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is @generated by <https://github.com/liblaf/copier-release>.
# DO NOT EDIT!
# prettier-ignore
_commit: 3b1f285
_commit: e5a3dcc
_src_path: gh:liblaf/copier-release
release_type: python
2 changes: 1 addition & 1 deletion .config/copier/.copier-answers.shared.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is @generated by <https://github.com/liblaf/copier-shared>.
# DO NOT EDIT!
# prettier-ignore
_commit: 610df18
_commit: 1aa0c04
_src_path: gh:liblaf/copier-shared
author_email: 30631553+liblaf@users.noreply.github.com
author_name: liblaf
Expand Down
1 change: 0 additions & 1 deletion .config/release-please/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"section": "⏪️ Reverts"
}
],
"extra-label": "automerge",
"include-component-in-tag": false,
"always-update": true,
"initial-version": "0.1.0",
Expand Down
37 changes: 12 additions & 25 deletions .github/workflows/mega-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,34 @@ name: MegaLinter

on:
push:
pull_request:
workflow_dispatch:

jobs:
skip-duplicate:
name: Skip Duplicate
permissions:
actions: write
runs-on: ubuntu-latest
outputs:
should-skip: ${{ steps.skip-duplicate.outputs.should-skip }}
steps:
- id: skip-duplicate
name: Skip Duplicate
uses: liblaf/actions/skip-duplicate@dist
with:
cancel-others: true

mega-linter:
name: MegaLinter
permissions:
contents: write
issues: write
pull-requests: write
needs:
- skip-duplicate
if: needs.skip-duplicate.outputs.should-skip != 'true'
environment:
name: MegaLinter
runs-on: ubuntu-latest
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@dist
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref || github.ref }}
- id: lint
name: MegaLinter
uses: liblaf/actions/mega-linter@dist
with:
token: ${{ steps.auth.outputs.token }}
- if: success() || failure()
name: Upload Reports
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: mega-linter-reports
path: |-
Expand All @@ -67,9 +56,7 @@ jobs:
sign-commits: true
title: "chore(mega-linter): apply linters automatic fixes"
body-path: ${{ runner.temp }}/megalinter-report.md
labels: |-
autofix
automerge
labels: auto,automerge
assignees: ${{ github.repository_owner }}
reviewers: ${{ github.repository_owner }}
- if: steps.lint.outputs.has-updated-sources > 0 && github.ref != 'refs/heads/main'
Expand Down
134 changes: 134 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
# This file is @generated by <https://github.com/liblaf/copier-release>.
# DO NOT EDIT!

name: Release Please

on:
push:
branches:
- main

jobs:
release-please:
name: Release Please
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
environment:
name: Release Please
outputs:
pr: ${{ steps.release-please.outputs.pr }}
prs_created: ${{ steps.release-please.outputs.prs_created }}
release_created: ${{ steps.release-please.outputs.release_created }}
tag: ${{ steps.release-please.outputs.tag_name }}
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@dist
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v5
with:
token: ${{ steps.auth.outputs.token }}
- id: release-please
name: Release Please
uses: googleapis/release-please-action@v4
with:
token: ${{ steps.auth.outputs.token }}
config-file: .config/release-please/config.json
manifest-file: .config/release-please/.manifest.json

post-pr:
name: Post PR
permissions:
contents: write
pull-requests: write
needs:
- release-please
if: ${{ needs.release-please.outputs.pr }}
runs-on: ubuntu-latest
environment:
name: Release Please
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@dist
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ fromJson(needs.release-please.outputs.pr).headBranchName }}
token: ${{ steps.auth.outputs.token }}
fetch-depth: 0
- id: tag
name: Get Tag
run: |-
title='${{ fromJson(needs.release-please.outputs.pr).title }}'
version="$(awk '{ print $NF }' <<< "$title")"
printf 'tag=%s\n' "v$version" >> "$GITHUB_OUTPUT"
- name: Changelog
uses: liblaf/actions/changelog@dist
with:
output: CHANGELOG.md
args: --tag '${{ steps.tag.outputs.tag }}'
- id: message
name: Get Commit Message
run: |-
delimiter="$(uuidgen)"
message="$(git show --format='%B' --no-patch)"
printf 'message<<%s\n%s\n%s\n' "$delimiter" "$message" "$delimiter" >> "$GITHUB_OUTPUT"
- name: Undo Last Commit
run: git reset --soft HEAD~1
- name: Commit
uses: liblaf/actions/commit@dist
with:
add-options: --verbose 'CHANGELOG.md'
force: true
message: ${{ steps.message.outputs.message }}
ref: ${{ fromJson(needs.release-please.outputs.pr).headBranchName }}
token: ${{ steps.auth.outputs.token }}
- name: Add Label
run: |-
gh pr edit '${{ fromJson(needs.release-please.outputs.pr).number }}' --add-label 'automerge'
env:
GH_TOKEN: ${{ steps.auth.outputs.token }}

post-release:
name: Post Release
permissions:
contents: write
needs:
- release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
environment:
name: Release Please
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@dist
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ needs.release-please.outputs.tag }}
token: ${{ steps.auth.outputs.token }}
fetch-depth: 0
- id: changelog
name: Changelog
uses: liblaf/actions/changelog@dist
with:
args: --current --strip all
- name: Update Release Notes
run: >-
gh release edit '${{ needs.release-please.outputs.tag }}'
--notes-file '${{ steps.changelog.outputs.changelog }}'
env:
GH_TOKEN: ${{ steps.auth.outputs.token }}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.1
rev: v0.14.2
hooks:
- id: ruff-check
args:
- --fix
- id: ruff-format
- repo: https://github.com/biomejs/pre-commit
rev: v2.2.6
rev: v2.3.1
hooks:
- id: biome-check
exclude: \.jsonc?$
Expand Down
Loading