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

chore: synced file(s) with orange-cloudavenue/workflows #2

Merged
merged 7 commits into from
Jan 2, 2025
93 changes: 93 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# --------------------------------------------------------------
# WARNING: This file is managed by centralized sync management system.
# Do not edit this file directly, your changes will be overwritten.
# See https://github.com/orange-cloudavenue/workflows for more information.
# --------------------------------------------------------------
- name: "enhancement"
color: "a2eeef"
description: "Enhancement"
- name: "community"
color: "FBCA04"
description: "Community related"
- name: "deprecated"
color: "5319E7"
description: "Deprecated feature"

# Sync
- name: "sync"
color: "0052CC"
description: "Sync"

# Language
- name: "go"
color: "00ADD8"
description: "Language Golang"

# Conventional commits (set by Action )

- name: "breaking-change"
color: "B60205"
description: "Introduced breaking changes"
- name: "feature"
color: "0E8A16"
description: "New feature"
- name: "fix"
color: "D93F0B"
description: "Bug fix"
- name: "documentation"
color: "0075ca"
description: "Documentation"
- name: "test"
color: "0E8A16"
description: "Test"
- name: "CI/CD"
color: "FBCA04"
description: "CI/CD"
- name: "refactor"
color: "D4C5F9"
description: "Refactor"
- name: "performance"
color: "D4C5F9"
description: "Performance"
- name: "chore"
color: "C2E0C6"
description: "Chore"
- name: "revert"
color: "000000"
description: "Revert"
- name: "WIP"
color: "000000"
description: "Work in progress"

# Priority
- name: "priority-critical"
color: "B60205"
description: "Priority critical"
- name: "priority-high"
color: "D93F0B"
description: "Priority high"
- name: "priority-medium"
color: "0E8A16"
description: "Priority medium"
- name: "priority-low"
color: "0052CC"
description: "Priority low"

# PR Size
- name: "size/XS"
color: "0E8A16"
description: "Extra small PR"
- name: "size/S"
color: "0052CC"
description: "Small PR"
- name: "size/M"
color: "FFD700"
description: "Medium PR"
- name: "size/L"
color: "FFA500"
description: "Large PR"
- name: "size/XL"
color: "B60205"
description: "Extra large PR"


40 changes: 40 additions & 0 deletions .github/pull-request-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Configuration for PR Size Labeler

# List of files to exclude from size calculation
# Files matching these patterns will not be considered when calculating PR size
exclude_files:
- "*.txt"
- "*.md"

# Configuration for labeling based on the size of the Pull Request
# Each entry defines a size label, along with thresholds for diff and file count
label_configs:
# Configuration for 'extra small' PRs
- size: xs
diff: 25 # Threshold for the total lines of code changed (additions + deletions)
files: 1 # Threshold for the total number of files changed
labels: ["size/XS"]

# Configuration for 'small' PRs
- size: s
diff: 150
files: 10
labels: ["size/S"]

# Configuration for 'medium' PRs
- size: m
diff: 500
files: 25
labels: ["size/M"]

# Configuration for 'large' PRs
- size: l
diff: 1000
files: 50
labels: ["size/L"]

# Configuration for 'extra large' PRs
- size: xl
diff: 1500
files: 100
labels: ["size/XL"]
36 changes: 36 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Labeler

# Labeler manage labels on your GitHub repository based on a YAML file.

on:
push:
branches:
- 'main'
paths:
- '.github/labels.yml'
- '.github/workflows/labeler.yml'
pull_request:
paths:
- '.github/labels.yml'
- '.github/workflows/labeler.yml'

jobs:
labeler:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Run Labeler
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
dry-run: ${{ github.event_name == 'pull_request' }}
exclude: |
help*
*issue
40 changes: 40 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# --------------------------------------------------------------
# WARNING: This file is managed by centralized sync management system.
# Do not edit this file directly, your changes will be overwritten.
# See https://github.com/orange-cloudavenue/workflows for more information.
# --------------------------------------------------------------
name: PR All events

on:
pull_request:

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-changelog
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
changelog-dependabot:
name: "Changelog Dependabot"
uses: orange-cloudavenue/workflows/.github/workflows/changelog_dependabot.yml@main
secrets:
TOKEN: ${{ secrets.GITHUB_TOKEN }}




pr-size:
name: "PR Size"
uses: orange-cloudavenue/workflows/.github/workflows/pr_label_size.yml@main
secrets:
TOKEN: ${{ secrets.CHANGELOG_PAT }}

pr-conventional-commits:
name: "Conventional Commits"
uses: orange-cloudavenue/workflows/.github/workflows/pr_conventional_commits.yml@main
secrets:
TOKEN: ${{ secrets.CHANGELOG_PAT }}

26 changes: 26 additions & 0 deletions .github/workflows/pr_close.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# --------------------------------------------------------------
# WARNING: This file is managed by centralized sync management system.
# Do not edit this file directly, your changes will be overwritten.
# See https://github.com/orange-cloudavenue/workflows for more information.
# --------------------------------------------------------------
name: PR Close
on:
pull_request:
types: [closed]
workflow_dispatch:

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-changelog
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
GenerateChangelog:
if: github.event.pull_request.merged || github.event_name == 'workflow_dispatch'
name: "Generate CHANGELOG"
uses: orange-cloudavenue/workflows/.github/workflows/changelog_generate-changelog.yml@main
secrets:
TOKEN: ${{ secrets.CHANGELOG_PAT }}
23 changes: 23 additions & 0 deletions .github/workflows/pr_open.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------
# WARNING: This file is managed by centralized sync management system.
# Do not edit this file directly, your changes will be overwritten.
# See https://github.com/orange-cloudavenue/workflows for more information.
# --------------------------------------------------------------
name: PR Open/Reopen

on:
pull_request_target:
types: [ opened, reopened ]

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-changelog
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
auto-assign:
name: "Auto Assign"
uses: orange-cloudavenue/workflows/.github/workflows/pr_auto_assign.yml@main
61 changes: 61 additions & 0 deletions .vscode/changelog.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// --------------------------------------------------------------
// WARNING: This file is managed by centralized sync management system.
// Do not edit this file directly, your changes will be overwritten.
// See https://github.com/orange-cloudavenue/workflows for more information.
// --------------------------------------------------------------
{
"Release Note Breaking change": {
"scope": "plaintext",
"prefix": "release-note-breaking-change",
"body": [
"```release-note:breaking-change",
"`category` - Short Description.",
"```"
]
},
"Release Note New Feature": {
"scope": "plaintext",
"prefix": "release-note-feature",
"body": [
"```release-note:feature",
"`category` - Short Description.",
"```"
]
},
"Release Note Bug": {
"scope": "plaintext",
"prefix": "release-note-bug",
"body": [
"```release-note:bug",
"`category` - Short Description.",
"```"
]
},
"Release Note Note": {
"scope": "plaintext",
"prefix": "release-note-note",
"body": [
"```release-note:note",
"`category` - Short Description.",
"```"
]
},
"Release Note Enhancement": {
"scope": "plaintext",
"prefix": "release-note-enhancement",
"body": [
"```release-note:enhancement",
"`category` - Short Description.",
"```"
]
},
"Release Note Deprecation": {
"scope": "plaintext",
"prefix": "release-note-deprecation",
"body": [
"```release-note:deprecation",
"`category` - Short Description.",
"```"
]
}
}
Loading