Skip to content

Commit

Permalink
ci: implement more control over release version and customizable chan…
Browse files Browse the repository at this point in the history
…gelogs (#867)

* ci: implement more control over release version and customizable changelogs

* Rename folder

* Rename folder

* ci: ignore sonar cloud scan for forked repositories

* ci: fix ci failing on PR

* ci: fix codeql automatic language detection

* refactor: change variable names

* ci: fix codeql init fail

* ci: remove unnecessary arguments

* ci: refine versoning scheme

* ci: move from using fork to main changelog action

* ci: add validation for certificate

* ci: use partial class for AppCenterSecret injection rather than doing string replace

* ci: fix codeql scan results by removing on.push.paths-ignore

Co-authored-by: Jiaqi Liu <jackil@microsoft.com>
  • Loading branch information
soumyamahunt and 0x7c13 committed Oct 31, 2021
1 parent 45c97cd commit f013a0a
Show file tree
Hide file tree
Showing 7 changed files with 210 additions and 138 deletions.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ What kind of change does this PR introduce?
<!-- Prefix title with "feat: " -->

<!-- - Translation -->
<!-- Prefix title with "trans: " -->
<!-- Prefix title with "lang: " -->

<!-- - Documentation content changes -->
<!-- Prefix title with "doc: " -->
Expand All @@ -20,6 +20,6 @@ What kind of change does this PR introduce?
<!-- Prefix title with "ci: " -->

<!-- - Other... Please describe: -->
<!-- Prefix title with "other: " or custom label with the same format ("label: ") -->
<!-- Prefix title with "other: " or custom label with conventional commit format: https://www.conventionalcommits.org/en/v1.0.0/ -->

## Other information
13 changes: 13 additions & 0 deletions .github/RELEASE_TEMPLATE/changelog_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"conventionalCommitsParserOptions": {
"revertPattern": "/^(?:Revert|revert:)\\s\"?([\\s\\S]+?)\"?\\s*This reverts commit (\\w*)\\./i",
"issuePrefixes": [ "#", "OLDARCH-" ]
},
"handleBarsOptions": {
"setupFile": null,
"template": ".github/RELEASE_TEMPLATE/changelog_template.hbs",
"compileOptions": { "noEscape": true }
},
"breakingChangesPattern": "/^breaking\\s+change$/gim",
"hostname": "https://github.com"
}
43 changes: 43 additions & 0 deletions .github/RELEASE_TEMPLATE/changelog_template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{#with release}}
## [{{name}}]({{href}})
{{/with}}

{{#commit-list commits heading='### 💥 Breaking Changes' breaking=true }}
- {{#if scope}} **{{scope}}:** {{/if}}{{subject}} ([`{{shorthash}}`]({{html_url}}))
{{/commit-list}}

{{#commit-list commits heading='### ✨ Features' type='feat' excludeBreaking=true}}
- {{#if scope}} **{{scope}}:** {{/if}}{{subject}} ([`{{shorthash}}`]({{html_url}}))
{{/commit-list}}

{{#commit-list commits heading='### 🐛 Fixes' type='fix' excludeBreaking=true }}
- {{#if scope}} **{{scope}}:** {{/if}}{{subject}} ([`{{shorthash}}`]({{html_url}}))
{{/commit-list}}

{{#commit-list commits heading='### 🔥 Refactorings' type='refactor' excludeBreaking=true }}
- {{#if scope}} **{{scope}}:** {{/if}}{{subject}} ([`{{shorthash}}`]({{html_url}}))
{{/commit-list}}

{{#commit-list commits heading='### 🐎 Performance Improvements' type='perf' excludeBreaking=true }}
- {{#if scope}} **{{scope}}:** {{/if}}{{subject}} ([`{{shorthash}}`]({{html_url}}))
{{/commit-list}}

{{#commit-list commits heading='### 🛠 Maintenance' types='chore,ci' excludeBreaking=true }}
- {{#if scope}} **{{scope}}:** {{/if}}{{subject}} ([`{{shorthash}}`]({{html_url}}))
{{/commit-list}}

{{#commit-list commits heading='### ✅ Tests' type='test' excludeBreaking=true }}
- {{#if scope}} **{{scope}}:** {{/if}}{{subject}} ([`{{shorthash}}`]({{html_url}}))
{{/commit-list}}

{{#commit-list commits heading='### 📚 Documentation' type='doc,docs' excludeBreaking=true }}
- {{#if scope}} **{{scope}}:** {{/if}}{{subject}} ([`{{shorthash}}`]({{html_url}}))
{{/commit-list}}

{{#commit-list commits heading='### 💄 Style' type='style' excludeBreaking=true }}
- {{#if scope}} **{{scope}}:** {{/if}}{{subject}} ([`{{shorthash}}`]({{html_url}}))
{{/commit-list}}

{{#commit-list commits heading='### 📢 Translations' type='lang,trans' excludeBreaking=true }}
- {{#if scope}} **{{scope}}:** {{/if}}{{subject}} ([`{{shorthash}}`]({{html_url}}))
{{/commit-list}}
Loading

0 comments on commit f013a0a

Please sign in to comment.