Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating GH workflows #38

Merged
merged 4 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Add 'others' label to any file changes
others:
- changed-files:
- any-glob-to-any-file: '**'

# Add 'Documentation' label to any file changes within 'docs' or 'guides' folders
documentation:
- changed-files:
- any-glob-to-any-file:
- 'docs/**'
- 'guides/**'
- '**/*.md'
- '**/*.MD'

# Add 'source' label to any change to src files
source:
- all:
- changed-files:
- any-glob-to-any-file:
- 'src/**/*'
- 'go.mod'
- 'go.sum'

# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
feature:
- head-branch:
- '^feature'
- '^feat'
- 'feature'
- 'feat'

# Add 'bug' label to any PR where the head branch name starts with `bug` or has a `fix` section in the name
bug:
- head-branch:
- '^bug'
- '^fix'
- 'bug'
- 'fix'
3 changes: 2 additions & 1 deletion .github/release.yml → .github/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ changelog:
- title: 🛠 Breaking Changes
labels:
- breaking-change
- title: 🏕 Improvements/Enhancements
- title: 🏕 Features/Improvements/Enhancements
labels:
- feature
- enhancement
- title: 🛠 Bug Fixes
labels:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Labeler
on: [pull_request_target]

jobs:
label:

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/labeler.yaml"
1 change: 1 addition & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
skip_after_successful_duplicate: 'true'
cancel_others: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
paths: '["go.mod", "go.sum", "src/**/*"]'
golangci:
name: GolangCI Lint
needs: pre_job
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-acceptance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
skip_after_successful_duplicate: 'true'
cancel_others: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
paths: '["go.mod", "go.sum", "Makefile", "src/**/*", "test/**/*"]'
build:
name: Build plugin executable binary
needs: pre_job
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
skip_after_successful_duplicate: 'true'
cancel_others: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
paths: '["go.mod", "go.sum", "Makefile", "src/**/*"]'
test:
name: Test
needs: pre_job
Expand Down
Loading