Skip to content

Commit 9401ed3

Browse files
committed
optimize workflows
1 parent 1fa8121 commit 9401ed3

18 files changed

+95
-37
lines changed

.github/labeler.yml

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
version: v1
22
labels:
3-
- label: '📒 Documentation'
4-
matcher:
5-
title: '\b(docs|doc:|\[doc\]|README|typos|comment|documentation)\b'
6-
- label: '☢️ Bug'
7-
matcher:
8-
title: '\b(fix|race|bug|missing|correct)\b'
9-
- label: '🧹 Updates'
10-
matcher:
11-
title: '\b(improve|update|refactor|deprecated|remove|unused|test)\b'
12-
- label: '🤖 Dependencies'
13-
matcher:
14-
title: '\b(bumb|bdependencies)\b'
15-
- label: '✏️ Feature'
16-
matcher:
17-
title: '\b(feature|feat|create|implement|add)\b'
18-
- label: '🤔 Question'
19-
matcher:
20-
title: '\b(question|how)\b'
3+
- label: '📒 Documentation'
4+
matcher:
5+
title: '/(docs|doc:|\[doc\]|README|typos|comment|documentation)/i'
6+
- label: '☢️ Bug'
7+
matcher:
8+
title: '/(fix|bug)/i'
9+
- label: '🧹 Updates'
10+
matcher:
11+
title: '/(improve|chore|improvements|missing|update|refactor|deprecated|remove|unused|test)/i'
12+
- label: '🤖 Dependencies'
13+
matcher:
14+
title: '/(bump|dependencies)/i'
15+
files:
16+
- 'go.mod'
17+
- 'go.sum'
18+
- '**/go.mod'
19+
- '**/go.sum'
20+
- label: '✏️ Feature'
21+
matcher:
22+
title: '/(feature|feat|create|implement|add|support)/i'
23+
- label: '📝 Proposal'
24+
matcher:
25+
title: '/(proposal|idea|request|suggest)/i'
26+
- label: '🤔 Question'
27+
matcher:
28+
title: '/(question|how)/i'
29+
30+

.github/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# .github/release.yml
2+
3+
changelog:
4+
categories:
5+
- title: '❗ Breaking Changes'
6+
labels:
7+
- '❗ BreakingChange'
8+
- title: '🚀 New Features'
9+
labels:
10+
- '✏️ Feature'
11+
- '📝 Proposal'
12+
- title: '🧹 Updates'
13+
labels:
14+
- '🧹 Updates'
15+
- '⚡️ Performance'
16+
- title: '🐛 Bug Fixes'
17+
labels:
18+
- '☢️ Bug'
19+
- title: '🛠️ Maintenance'
20+
labels:
21+
- '🤖 Dependencies'
22+
- title: '📚 Documentation'
23+
labels:
24+
- '📒 Documentation'
25+
- title: 'Other Changes'
26+
labels:
27+
- '*'

.github/workflows/auto-labeler.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
name: Auto labeler
2+
23
on:
3-
issues:
4-
types: [ opened, edited, milestoned ]
5-
pull_request_target:
6-
types: [ opened ]
4+
issues:
5+
types: [opened, edited, milestoned]
6+
pull_request_target:
7+
types: [opened, edited, reopened, synchronize]
8+
workflow_dispatch:
79
permissions:
8-
contents: read
9-
issues: write
10-
pull-requests: write
11-
statuses: write
12-
checks: write
10+
# Setting up permissions in the workflow to limit the scope of what it can do. Optional!
11+
contents: read # the config file
12+
issues: write # for labeling issues (on: issues)
13+
pull-requests: write # for labeling pull requests (on: pull_request_target or on: pull_request)
14+
statuses: write # to generate status
15+
checks: write # to generate status
16+
1317
jobs:
14-
labeler:
15-
runs-on: ubuntu-latest
16-
if: ${{ github.actor != 'dependabot[bot]' }}
17-
steps:
18-
- name: Check Labels
19-
id: labeler
20-
uses: fuxingloh/multi-labeler@v4
21-
with:
22-
github-token: ${{secrets.GITHUB_TOKEN}}
18+
labeler:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Check Labels
22+
id: labeler
23+
uses: fuxingloh/multi-labeler@b15a54460c38f54043fa75f7b08a0e2aa5b94b5b #v4.0.0
24+
with:
25+
# Use a PAT so that applying labels can trigger downstream workflows
26+
# (GITHUB_TOKEN updates do not emit additional workflow events).
27+
github-token: ${{ secrets.ISSUE_PR_TOKEN }}
28+

.github/workflows/benchmark.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
- "**.go"
1717
- "**/go.mod"
1818
- ".github/workflows/benchmark.yml"
19+
workflow_dispatch:
1920

2021
permissions:
2122
deployments: write

.github/workflows/dependabot_automerge.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Dependabot auto-merge
22

33
on:
4-
pull_request
4+
pull_request:
5+
workflow_dispatch:
56

67
permissions:
78
contents: write

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- LICENSE
1919
- ".github/ISSUE_TEMPLATE/*.yml"
2020
- ".github/dependabot.yml"
21+
workflow_dispatch:
2122

2223
permissions:
2324
contents: read

.github/workflows/gosec.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- LICENSE
1919
- ".github/ISSUE_TEMPLATE/*.yml"
2020
- ".github/dependabot.yml"
21+
workflow_dispatch:
2122

2223
jobs:
2324
detect-changes:

.github/workflows/govulncheck.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- LICENSE
1919
- ".github/ISSUE_TEMPLATE/*.yml"
2020
- ".github/dependabot.yml"
21+
workflow_dispatch:
2122

2223
jobs:
2324
govulncheck-check:

.github/workflows/sync-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
types: [published]
1212
branches:
1313
- '*/v[0-9]+.[0-9]+.[0-9]+'
14+
workflow_dispatch:
1415

1516
jobs:
1617
sync-docs:

.github/workflows/test-ace.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- '*'
1111
paths:
1212
- 'ace/**'
13+
workflow_dispatch:
1314
name: Tests Ace
1415
jobs:
1516
Tests:

0 commit comments

Comments
 (0)