Skip to content

Commit

Permalink
feat: add linters
Browse files Browse the repository at this point in the history
add DependaBot configurations
  • Loading branch information
asatt committed Mar 3, 2025
1 parent 5100b0b commit 5e00e41
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/auto-labeler-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---

conventional-commits:
- type: 'fix'
nouns: ['FIX', 'Fix', 'fix', 'FIXED', 'Fixed', 'fixed']
labels: ['bug']
- type: 'feature'
nouns: ['FEATURE', 'Feature', 'feature', 'FEAT', 'Feat', 'feat']
labels: ['enhancement']
- type: 'breaking_change'
nouns: ['BREAKING CHANGE', 'BREAKING', 'MAJOR']
labels: ['breaking-change']
- type: 'refactor'
nouns: ['refactor','Refactor']
labels: ['refactor']
- type: 'documentation'
nouns: ['doc','document','documentation']
labels: ['documentation']
- type: 'build'
nouns: ['build','rebuild']
labels: ['build']
- type: 'config'
nouns: ['config', 'conf', 'configuration', 'configure']
labels: ['config']
21 changes: 21 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
# Go mod bot configurations
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
groups:
k8s.io:
patterns:
- "k8s.io/*"
open-pull-requests-limit: 20
# Docker bot configurations
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "monthly"
43 changes: 43 additions & 0 deletions .github/release-drafter-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'


categories:
- title: '💥 Breaking Changes'
labels:
- breaking-change
- title: '🚀 New Features'
labels:
- feature
- enhancement
- title: '🐛 Bug Fixes'
labels:
- bug
- fix
- bugfix
- title: '🛠️ Technical Debt'
labels:
- refactor

change-template: '- $TITLE (#$NUMBER) by @$AUTHOR'
no-changes-template: 'No significant changes'

template: |
## 🚀 Release
### What's Changed
$CHANGES
**Contributors:** $CONTRIBUTORS
version-resolver:
major:
labels:
- major
minor:
labels:
- minor
patch:
labels:
- patch
default: patch
17 changes: 17 additions & 0 deletions .github/workflows/automatic-pr-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Automatic PR Labeler

on:
pull_request:
branches: [main]
types:
[opened, reopened]

jobs:
assign-labels:
uses: Netcracker/qubership-workflow-hub/.github/workflows/auto-labeler.yaml@main
name: Assign labels in pull request
if: github.event.pull_request.merged == false
with:
pull_request_number: ${{ github.event.pull_request.number }}
config_file: './.github/auto-labeler-config.yaml'
13 changes: 13 additions & 0 deletions .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: CLA Assistant

on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]
jobs:
cla_assistant:
uses: Netcracker/qubership-workflow-hub/.github/workflows/cla.yaml@main
secrets:
personal_access_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/profanity-filter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Profanity filter

on:
issue_comment:
types: [created, edited]
issues:
types: [opened, edited, reopened]
pull_request:
types: [opened, edited, reopened]

permissions:
issues: write
pull-requests: write

jobs:
call-apply-filter:
uses: Netcracker/qubership-workflow-hub/.github/workflows/profanityFilter.yaml@main
14 changes: 14 additions & 0 deletions .github/workflows/super-linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Lint Code Base

on:
workflow_call:

pull_request:
branches: [main]
types:
[opened, reopened]

jobs:
run-lint:
uses: Netcracker/qubership-workflow-hub/.github/workflows/super-linter.yaml@main

0 comments on commit 5e00e41

Please sign in to comment.