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

Extend GitHub Workflow #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
17 changes: 17 additions & 0 deletions .github/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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be updated with 'auto-labeler-config.yaml'

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'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's necessary to add 'workflows' in the path

17 changes: 17 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
# Maven bot configurations
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "monthly"
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
24 changes: 24 additions & 0 deletions .github/workflows/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']
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on OS, 'profanityFilter.yaml' can be considered as 'profanity-filter.yaml'. However it should be renamed

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
Loading