ci(github): replace release-please with justfile (#1840)

This commit is contained in:
Oleg Shparber
2026-05-05 02:21:30 +03:00
committed by GitHub
parent 9d2ec8f6de
commit 866dc9cd99
9 changed files with 215 additions and 104 deletions
-30
View File
@@ -1,30 +0,0 @@
name: Release Please
on:
push:
branches:
- main
permissions: {}
jobs:
release-please:
name: Release Please
if: github.repository == 'zealdocs/zeal'
runs-on: ubuntu-latest
steps:
- name: Generate App Token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ secrets.CI_APP_ID }}
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write
- uses: googleapis/release-please-action@v5
with:
token: ${{ steps.app-token.outputs.token }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
-99
View File
@@ -1,99 +0,0 @@
# git-cliff ~ configuration file
# https://git-cliff.org/docs/configuration
# Set via GITHUB_REPO and GITHUB_TOKEN environment variables.
#[remote.github]
#owner = "zealdocs"
#repo = "zeal"
#token = ""
[changelog]
# Template docs: https://keats.github.io/tera/docs/.
body = """\
<!-- TODO: Update milestone link, review commits. -->
{% if version and previous.version %}
[Full Changelog]({{ self::diff_url() }}) | [Resolved Issues]({{ self::remote_url() }}/milestone/TBD?closed=1)
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim }}
{% for commit in commits %}
{% if commit.github.pr_title -%}
{%- set commit_message = commit.github.pr_title -%}
{%- else -%}
{%- set commit_message = commit.message -%}
{%- endif -%}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}\
{{ commit.message | split(pat="\n") | first | trim }} \
({{ self::commit_link(id=commit.id) }})\
{% endfor %}
{% endfor %}
---
{%- if github -%}\
{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
{% raw %}\n{% endraw -%}
#### New Contributors
{%- endif %}
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
- @{{ contributor.username }} made their first contribution
{%- if contributor.pr_number %} in \
{{ self::pr_link(pr_number=contributor.pr_number) }}\
{%- endif %}
{%- endfor -%}
{%- endif -%}
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
{%- macro diff_url() -%}
{{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}
{%- endmacro -%}
{%- macro pr_link(pr_number) -%}
[#{{ pr_number }}]({{ self::remote_url() }}/pull/{{ pr_number }})
{%- endmacro -%}
{%- macro commit_link(id) -%}
[`{{ id | truncate(length=7, end="") }}`]({{ self::remote_url() }}/commit/{{ id }})
{%- endmacro -%}
"""
# Remove the leading and trailing whitespace from the template.
trim = true
# Template for the changelog footer.
footer = """
"""
# Postprocessors.
postprocessors = []
[git]
# Parse the commits based on https://www.conventionalcommits.org.
conventional_commits = true
# Filter out the commits that are not conventional.
filter_unconventional = true
# Process each line of a commit as an individual commit.
split_commits = false
# Regex for preprocessing the commit messages.
commit_preprocessors = [
# Remove issue numbers from commits.
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
]
# Regex for parsing and grouping commits.
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->Features" },
{ message = "^fix", group = "<!-- 1 -->Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->Performance" },
{ message = "^doc", group = "<!-- 3 -->Documentation" },
{ message = "^build", group = "<!-- 4 -->Build System" },
{ message = "^ci", group = "<!-- 5 -->CI/CD" },
# Skipped groups:
{ message = "^chore", skip = true },
{ message = "^refactor", skip = true },
]
# Filter out the commits that are not matched by commit parsers.
filter_commits = false
# Sort the tags topologically.
topo_order = false
# Sort the commits inside sections by oldest/newest order.
sort_commits = "oldest"