Skip to content

Commit 24f7805

Browse files
authored
Refactor GitHub Actions workflows: codeql, release-drafter (#1790)
* Refactor GitHub Actions workflows: remove unused environment variable and enhance release drafter configuration * Fix release drafter configuration: correct label key and remove unused exclude-labels section
1 parent 2040668 commit 24f7805

File tree

3 files changed

+70
-4
lines changed

3 files changed

+70
-4
lines changed

.github/release-drafter.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: '🐛 Bug Fixes'
9+
labels:
10+
- 'test bug'
11+
- 'bug'
12+
- title: '🧰 Maintenance'
13+
labels:
14+
- 'chore'
15+
- 'dependencies'
16+
- 'documentation'
17+
18+
19+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
20+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
21+
22+
exclude-labels:
23+
- 'skip-changelog'
24+
25+
version-resolver:
26+
major:
27+
labels:
28+
- 'major'
29+
minor:
30+
labels:
31+
- 'minor'
32+
patch:
33+
labels:
34+
- 'patch'
35+
default: patch
36+
37+
autolabeler:
38+
- label: 'chore'
39+
files:
40+
- '*.md'
41+
- 'Documentation/**'
42+
- label: 'bug'
43+
branch:
44+
- '/fix\/.+/'
45+
title:
46+
- '/fix/i'
47+
- '/bug/i'
48+
- label: 'enhancement'
49+
branch:
50+
- '/feature\/.+/'
51+
- label: 'dependencies'
52+
files:
53+
- 'global.json'
54+
- 'Directory.Packages.props'
55+
- '*.props'
56+
- '*.targets'
57+
58+
59+
template: |
60+
# What's Changed
61+
62+
$CHANGES
63+
64+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
65+

.github/workflows/codeql.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ on:
2020
schedule:
2121
- cron: '23 17 * * 1'
2222

23-
env:
24-
AZURE_ARTIFACTS_FEED_URL: https://pkgs.dev.azure.com/bertk0374/_packaging/intern/nuget/v3/index.json
25-
2623
permissions:
2724
contents: read
2825

.github/workflows/release-draft.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- master
7+
# pull_request event is required only for autolabeler
8+
pull_request:
9+
# Only following types are handled by the action, but one can default to all as well
10+
types: [opened, reopened, synchronize]
711

812
permissions:
913
contents: read
@@ -18,6 +22,6 @@ jobs:
1822
- uses: release-drafter/release-drafter@v6
1923
with:
2024
prerelease: true
21-
prerelease-identifier: beta
25+
prerelease-identifier: preview
2226
env:
2327
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)