chore: changelog experiment
parent
33706da791
commit
5b8ac87c69
|
@ -213,24 +213,98 @@ jobs:
|
|||
name: cargo nextest
|
||||
command: TEST_LOG= RUST_LOG=info RUST_LOG_SPAN_EVENTS=full RUST_BACKTRACE=1 cargo nextest run --workspace --failure-output immediate-final --no-fail-fast
|
||||
|
||||
changelog:
|
||||
docker:
|
||||
- image: cimg/rust:1.75 # git-cliff is written in Rust
|
||||
steps:
|
||||
- checkout
|
||||
# Fetch all tags and history for accurate changelog
|
||||
- run:
|
||||
name: Fetch git history
|
||||
command: |
|
||||
git fetch --depth 10000 --prune --tags
|
||||
# Install git-cliff
|
||||
- run:
|
||||
name: Install git-cliff
|
||||
command: cargo install git-cliff
|
||||
# Create git-cliff config if it doesn't exist
|
||||
# - run:
|
||||
# name: Create git-cliff config
|
||||
# command: |
|
||||
# if [ ! -f cliff.toml ]; then
|
||||
# cat > cliff.toml << 'EOF'
|
||||
# [changelog]
|
||||
# header = """
|
||||
# # Changelog\n
|
||||
# All notable changes to this project will be documented in this file.\n
|
||||
# """
|
||||
# body = """
|
||||
# {% if version %}\
|
||||
# ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
||||
# {% else %}\
|
||||
# ## [unreleased]
|
||||
# {% endif %}\
|
||||
# {% for group, commits in commits | group_by(attribute="group") %}
|
||||
# ### {{ group | upper_first }}
|
||||
# {% for commit in commits %}
|
||||
# - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
|
||||
# {% endfor %}
|
||||
# {% endfor %}\n
|
||||
# """
|
||||
# trim = true
|
||||
# footer = """
|
||||
# <!-- generated by git-cliff -->
|
||||
# """
|
||||
#
|
||||
# [git]
|
||||
# conventional_commits = true
|
||||
# filter_unconventional = true
|
||||
# split_commits = false
|
||||
# commit_parsers = [
|
||||
# { message = "^feat", group = "Features" },
|
||||
# { message = "^fix", group = "Bug Fixes" },
|
||||
# { message = "^doc", group = "Documentation" },
|
||||
# { message = "^perf", group = "Performance" },
|
||||
# { message = "^refactor", group = "Refactor" },
|
||||
# { message = "^style", group = "Styling" },
|
||||
# { message = "^test", group = "Testing" },
|
||||
# { message = "^chore\\(release\\): prepare for", skip = true },
|
||||
# { message = "^chore", group = "Miscellaneous Tasks" },
|
||||
# { body = ".*security", group = "Security" },
|
||||
# ]
|
||||
# protect_breaking_commits = false
|
||||
# filter_commits = false
|
||||
# tag_pattern = "v[0-9]*"
|
||||
# skip_tags = ""
|
||||
# ignore_tags = ""
|
||||
# date_order = false
|
||||
# sort_commits = "oldest"
|
||||
# EOF
|
||||
# fi
|
||||
# Generate changelog
|
||||
- run:
|
||||
name: Generate changelog
|
||||
command: |
|
||||
git-cliff --output CHANGELOG.md
|
||||
|
||||
# changelog:
|
||||
# docker:
|
||||
# - image: orhunp/git-cliff
|
||||
changelog:
|
||||
docker:
|
||||
- image: quay.io/influxdb/changelogger:d7093c409adedd8837ef51fa84be0d0f8319177a
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Generate Changelog
|
||||
command: |
|
||||
PRODUCT=Core changelogger
|
||||
- store_artifacts:
|
||||
path: changelog_artifacts/
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
- changelog_artifacts
|
||||
# changelog:
|
||||
# docker:
|
||||
# - image: quay.io/influxdb/changelogger:d7093c409adedd8837ef51fa84be0d0f8319177a
|
||||
# steps:
|
||||
# - checkout
|
||||
# - run:
|
||||
# name: Generate Changelog
|
||||
# command: |
|
||||
# PRODUCT=Core changelogger
|
||||
# - store_artifacts:
|
||||
# path: changelog_artifacts/
|
||||
# - persist_to_workspace:
|
||||
# root: .
|
||||
# paths:
|
||||
# - changelog_artifacts
|
||||
|
||||
# Build a dev binary.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue