Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kenji-miyake/setup-sd
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1
Choose a base ref
...
head repository: kenji-miyake/setup-sd
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2
Choose a head ref
  • 8 commits
  • 11 files changed
  • 5 contributors

Commits on Nov 9, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    anurag4DSB Anurag Mittal
    Copy the full SHA
    b3c207f View commit details
  2. chore: sync files (#33)

    Signed-off-by: GitHub <[email protected]>
    Co-authored-by: github-actions <[email protected]>
    kenji-miyake-bot[bot] and github-actions authored Nov 9, 2023
    Copy the full SHA
    4997614 View commit details
  3. ci(pre-commit): autoupdate (#31)

    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Nov 9, 2023
    Copy the full SHA
    89b6efe View commit details
  4. Copy the full SHA
    3cc480f View commit details
  5. chore: update npm dependencies (#32)

    Co-authored-by: kenji-miyake <[email protected]>
    Co-authored-by: Kenji Miyake <[email protected]>
    3 people authored Nov 9, 2023
    Copy the full SHA
    57b5afd View commit details
  6. Copy the full SHA
    6ea6c78 View commit details
  7. ci(github-release): add cliff.toml (#40)

    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    kenji-miyake and pre-commit-ci[bot] authored Nov 9, 2023
    Copy the full SHA
    1f26a19 View commit details
  8. feat: print URL (#41)

    kenji-miyake authored Nov 9, 2023
    Copy the full SHA
    f418166 View commit details
Showing with 29,366 additions and 10,532 deletions.
  1. +8 −0 .cspell.json
  2. +2 −0 .github/sync-files.yaml
  3. +6 −4 .github/workflows/github-release.yaml
  4. +7 −7 .pre-commit-config.yaml
  5. +4 −1 README.md
  6. +1 −1 action.yaml
  7. +99 −0 cliff.toml
  8. +28,434 −7,816 dist/index.js
  9. +788 −2,670 package-lock.json
  10. +10 −10 package.json
  11. +7 −23 src/index.ts
8 changes: 8 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"overrides": [
{
"filename": "**/cliff.toml",
"ignoreRegExpList": ["endmacro", "endraw", "postprocessors", "striptags"]
}
]
}
2 changes: 2 additions & 0 deletions .github/sync-files.yaml
Original file line number Diff line number Diff line change
@@ -5,6 +5,8 @@
- source: .github/workflows/semantic-pull-request.yaml
- source: .github/workflows/spell-check-differential.yaml
- source: .github/workflows/sync-files.yaml
pre-commands: |
sd "tag:" "" {source}
- source: .markdownlint.yaml
- source: .prettierignore
- source: .prettierrc.yaml
10 changes: 6 additions & 4 deletions .github/workflows/github-release.yaml
Original file line number Diff line number Diff line change
@@ -26,8 +26,8 @@ jobs:
REF_NAME="${{ github.ref_name }}"
fi
echo ::set-output name=ref-name::"$REF_NAME"
echo ::set-output name=tag-name::"${REF_NAME#beta/}"
echo "ref-name=$REF_NAME" >> $GITHUB_OUTPUT
echo "tag-name=${REF_NAME#beta/}" >> $GITHUB_OUTPUT
- name: Check out repository
uses: actions/checkout@v3
@@ -39,7 +39,7 @@ jobs:
id: set-target-name
run: |
if [[ "${{ steps.set-tag-name.outputs.ref-name }}" =~ "beta/" ]]; then
echo ::set-output name=target-name::"${{ steps.set-tag-name.outputs.ref-name }}"
echo "target-name=${{ steps.set-tag-name.outputs.ref-name }}" >> $GITHUB_OUTPUT
fi
- name: Create a local tag for beta branches
@@ -51,6 +51,8 @@ jobs:
- name: Run generate-changelog
id: generate-changelog
uses: autowarefoundation/autoware-github-actions/generate-changelog@v1
with:
git-cliff-config: cliff.toml

- name: Select verb
id: select-verb
@@ -62,7 +64,7 @@ jobs:
verb=edit
fi
echo ::set-output name=verb::"$verb"
echo "verb=$verb" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-json
- id: check-merge-conflict
@@ -18,34 +18,34 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.2
rev: v0.37.0
hooks:
- id: markdownlint
args: [-c, .markdownlint.yaml, --fix]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
rev: v3.0.3
hooks:
- id: prettier

- repo: https://github.com/adrienverge/yamllint
rev: v1.28.0
rev: v1.32.0
hooks:
- id: yamllint

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.2
rev: v0.9.0.6
hooks:
- id: shellcheck

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.6.0-1
rev: v3.7.0-1
hooks:
- id: shfmt
args: [-w, -s, -i=4]

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.30.0
rev: v8.53.0
hooks:
- id: eslint
files: \.ts$
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,9 @@

This action sets up [chmln/sd](https://github.com/chmln/sd).

`sd` began adding a file extension starting on version v1.0.0.
`setup-sd@v2` doesn't support `sd@v0.*`; use `setup-sd@v1` instead for `sd@v0.*`.

## Usage

```yaml
@@ -13,7 +16,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up sd
uses: kenji-miyake/setup-sd@v1
uses: kenji-miyake/setup-sd@v2

- name: Run sd
run: |
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
@@ -15,5 +15,5 @@ inputs:
description: The target platform
default: x86_64-unknown-linux-gnu
runs:
using: node16
using: node20
main: dist/index.js
99 changes: 99 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# git-cliff ~ configuration file
# https://git-cliff.org/docs/configuration
#
# Lines starting with "#" are comments.
# Configuration options are organized into tables and keys.
# See documentation for more information on available options.

[changelog]
# changelog header
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
body = """
{% if version %}\
{% if previous.version %}\
## [{{ version | trim_start_matches(pat="v") }}](<REPO>/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}\
{% else %}\
## [unreleased]
{% endif %}\
{% macro commit(commit) -%}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} - ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }}))\
{% endmacro -%}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits
| filter(attribute="scope")
| sort(attribute="scope") %}
{{ self::commit(commit=commit) }}
{%- endfor -%}
{% raw %}\n{% endraw %}\
{%- for commit in commits %}
{%- if not commit.scope -%}
{{ self::commit(commit=commit) }}
{% endif -%}
{% endfor -%}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
<!-- generated by git-cliff -->
"""
# postprocessors
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL
]

[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 = []
# regex for parsing and grouping commits
commit_parsers = [
# Skip
{ message = "^chore\\(release\\)", skip = true},
# Comply with https://github.com/commitizen/conventional-commit-types/blob/c3a9be4c73e47f2e8197de775f41d981701407fb/index.json
# Why adding numbers to groups is in https://github.com/orhun/git-cliff/issues/9#issuecomment-914521594
{ message = "^feat", group = "<!-- 00 -->⛰️ Features" },
{ message = "^fix", group = "<!-- 01 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 02 -->📚 Documentation" },
{ message = "^style", group = "<!-- 03 -->🎨 Styles" },
{ message = "^refactor", group = "<!-- 04 -->🚜 Code Refactoring" },
{ message = "^perf", group = "<!-- 05 -->⚡ Performance Improvements" },
{ message = "^test", group = "<!-- 06 -->🧪 Tests" },
{ message = "^build", group = "<!-- 07 -->Builds"},
{ message = "^ci", group = "<!-- 08 -->Continuous Integrations"},
{ message = "^chore", group = "<!-- 09 -->⚙️ Chores" },
{ message = "^revert", group = "<!-- 10 -->◀️ Reverts" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags
tag_pattern = "v[0-9].*"

# regex for skipping tags
skip_tags = "v0.0.0"
# regex for ignoring tags
ignore_tags = "v.*-beta.*"
# sort the tags topologically
topo_order = true
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
Loading