File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 env :
3939 OUTPUT : CHANGELOG.md
4040 GITHUB_REPO : ${{ github.repository }}
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4142
4243 - name : Commit package.json and CHANGELOG.md
4344 uses : ryancyq/github-signed-commit@v1
Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ body = """
2626 | filter(attribute="scope")
2727 | sort(attribute="scope") %}
2828 - **({{commit.scope}})**{% if commit.breaking %} [**breaking**]{% endif %} \
29- {{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }})) - {{ commit.author.name }}
29+ {{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }})) - {% if commit.remote.username %}@{{ commit.remote.username }}{% else %}{{ commit. author.name }}{% endif % }
3030 {%- endfor -%}
3131 {% raw %}\n {% endraw %}\
3232 {%- for commit in commits %}
3333 {%- if commit.scope -%}
3434 {% else -%}
3535 - {% if commit.breaking %} [**breaking**]{% endif %}\
36- {{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }})) - {{ commit.author.name }}
36+ {{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }})) - {% if commit.remote.username %}@{{ commit.remote.username }}{% else %}{{ commit. author.name }}{% endif % }
3737 {% endif -%}
3838 {% endfor -%}
3939{% endfor %}\n
@@ -49,6 +49,10 @@ postprocessors = [
4949 { pattern = ' <REPO>' , replace = " https://github.com/ryancyq/github-signed-commit" }, # replace repository URL
5050]
5151
52+ [remote .github ]
53+ owner = " ryancyq"
54+ repo = " github-signed-commit"
55+
5256[git ]
5357# parse the commits based on https://www.conventionalcommits.org
5458conventional_commits = true
You can’t perform that action at this time.
0 commit comments