Skip to content

Commit b88e090

Browse files
committed
ci: trying out short merge sha placeholder
1 parent d3c383c commit b88e090

File tree

2 files changed

+12
-78
lines changed

2 files changed

+12
-78
lines changed

.github/workflows/create_release.yml

Lines changed: 1 addition & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -27,83 +27,7 @@ jobs:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
with:
2929
mode: HYBRID
30-
configurationJson: |
31-
{
32-
"categories": [
33-
{
34-
"title": "## ✨ Next Generation Features & Changes",
35-
"labels": [
36-
"epoch-change"
37-
]
38-
},
39-
{
40-
"title": "## 🚧 Breaking Changes",
41-
"labels": [
42-
"breaking-change"
43-
]
44-
},
45-
{
46-
"title": "## 🚀 Features",
47-
"labels": [
48-
"enhancement",
49-
"feat"
50-
]
51-
},
52-
{
53-
"title": "## 🐛 Fixes",
54-
"labels": [
55-
"fix",
56-
"bug"
57-
]
58-
},
59-
{
60-
"title": "## 🧪 Tests",
61-
"labels": [
62-
"test"
63-
]
64-
},
65-
{
66-
"title": "## 📦 Misc",
67-
"labels": [ ]
68-
}
69-
],
70-
"ignore_labels": [
71-
"skip-changelog"
72-
],
73-
"label_extractor": [
74-
{
75-
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
76-
"target": "$1"
77-
},
78-
{
79-
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\-\\.]+\\)){1}?(!)?: ([\\w ])+([\\s\\S]*)",
80-
"target": "scope-$1"
81-
},
82-
{
83-
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\-\\.]+\\))?!: ([\\w ])+([\\s\\S]*)",
84-
"target": "breaking-change"
85-
},
86-
{
87-
"pattern": "^BREAKING CHANGE:(.*)",
88-
"target": "breaking-change"
89-
},
90-
{
91-
"pattern": "^ignore(\\([\\w\\-\\.]+\\))?: ([\\w ])+([\\s\\S]*)",
92-
"target": "skip-changelog"
93-
}
94-
],
95-
"tag_resolver": {
96-
"method": "sort"
97-
},
98-
"sort": {
99-
"order": "ASC",
100-
"on_property": "mergedAt"
101-
},
102-
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
103-
"pr_template": "- #{{TITLE}} (##{{NUMBER}}) - #{{AUTHOR}}",
104-
"commit_template": "- #{{TITLE}} ([`#{{MERGE_SHA}}`](${{steps.get_repo_url.outputs.REPO_URL}}/commit/#{{MERGE_SHA}}))",
105-
"empty_template": "- no changes"
106-
}
30+
configuration: release_config.json
10731

10832
- name: Create Release
10933
uses: softprops/action-gh-release@v2

release_config.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@
7171
},
7272
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
7373
"pr_template": "- #{{TITLE}} (##{{NUMBER}}) - #{{AUTHOR}}",
74-
"commit_template": "- #{{TITLE}} ([`#{{MERGE_SHA}}`](${{steps.get_repo_url.outputs.REPO_URL}}/commit/#{{MERGE_SHA}}))",
74+
"commit_template": "- #{{TITLE}} ([`#{{SHORT_MERGE_SHA}}`](https://github.com/${{ github.repository }}/commit/#{{MERGE_SHA}}))",
75+
"custom_placeholders": [
76+
{
77+
"name": "SHORT_MERGE_SHA",
78+
"source": "MERGE_SHA",
79+
"transformer": {
80+
"pattern": "(.*){7}(.*)?",
81+
"target": "- $1"
82+
}
83+
}
84+
]
7585
"empty_template": "- no changes"
7686
}

0 commit comments

Comments
 (0)