Compare commits
2
Commits
aa7852418b
..
v3.1.0
No files matched your search
@@ -25,7 +25,7 @@ jobs:
|
|||||||
uses: DependencyTrack/gh-upload-sbom@v4
|
uses: DependencyTrack/gh-upload-sbom@v4
|
||||||
with:
|
with:
|
||||||
server-hostname: "${{ vars.DT_HOSTNAME }}"
|
server-hostname: "${{ vars.DT_HOSTNAME }}"
|
||||||
api-key: "${{ secrets.DT_API_KEY }}"
|
api-key: "${{ DT_API_KEY }}"
|
||||||
project-name: "${{ github.repository }}"
|
project-name: "${{ github.repository }}"
|
||||||
project-version: "latest"
|
project-version: "latest"
|
||||||
bom-filename: "sbom.json"
|
bom-filename: "sbom.json"
|
||||||
|
|||||||
+11
-4
@@ -25,11 +25,18 @@ body = """
|
|||||||
- {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end="") }})
|
- {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end="") }})
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{%- set authors = commits | map(attribute="author.name") | unique | sort %}
|
{#- Author names vary per machine (tienbh / Tien-BH / ...); the email local part matches the Gitea username. -#}
|
||||||
{% if authors | length > 0 %}
|
{%- set_global usernames = [] %}
|
||||||
|
{%- for commit in commits %}
|
||||||
|
{%- set username = commit.author.email | split(pat="@") | first | lower %}
|
||||||
|
{%- if username and username is not containing("bot") and username != "github-actions" and not username in usernames %}
|
||||||
|
{%- set_global usernames = usernames | concat(with=username) %}
|
||||||
|
{%- endif %}
|
||||||
|
{%- endfor %}
|
||||||
|
{% if usernames | length > 0 %}
|
||||||
## Contributors
|
## Contributors
|
||||||
{% for author in authors %}
|
{% for username in usernames | sort %}
|
||||||
* {{ author }}
|
* @{{ username }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if server and repository and version %}
|
{% if server and repository and version %}
|
||||||
|
|||||||
Reference in new issue
Block a user