diff --git a/.github/labeler.yml b/.github/labeler.yml index ba9ecc6..4a63c73 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -9,3 +9,50 @@ go: ci: - changed-files: - any-glob-to-any-file: .github/** + - any-glob-to-any-file: .golangci.yml + - any-glob-to-any-file: codecov.yml + # - title: ['^ci','^chore\(ci\)'] + +# title argument added in https://github.com/actions/labeler/pull/866 +# enhancement: +# - title: '^feat' + +# bug: +# - title: '^fix' + +# breaking-change: +# - title: '^\w+(\(\w+\))?!:' + +'area: permission': + - changed-files: + - any-glob-to-any-file: 'pkg/apis/management/v1/permission/**' + # - title: '^\w+\(permissions\)!?:' + +'area: storage': + - changed-files: + - any-glob-to-any-file: 'pkg/apis/management/v1/storage/**' + +'area: project': + - changed-files: + - any-glob-to-any-file: 'pkg/apis/management/v1/**/project*.go' + # - title: '^\w+\(project\)!?:' + +'area: role': + - changed-files: + - any-glob-to-any-file: 'pkg/apis/management/v1/**/role*.go' + # - title: '^\w+\(role\)!?:' + +'area: server': + - changed-files: + - any-glob-to-any-file: 'pkg/apis/management/v1/**/server*.go' + # - title: '^\w+\(server\)!?:' + +'area: user': + - changed-files: + - any-glob-to-any-file: 'pkg/apis/management/v1/**/user*.go' + # - title: '^\w+\(user\)!?:' + +'area: warehouse': + - changed-files: + - any-glob-to-any-file: 'pkg/apis/management/v1/**/warehouse*.go' + # - title: '^\w+\(warehouse\)!?:' \ No newline at end of file diff --git a/.github/pull-request-triage.sh b/.github/pull-request-triage.sh index fbe7c85..1dde5aa 100755 --- a/.github/pull-request-triage.sh +++ b/.github/pull-request-triage.sh @@ -32,26 +32,4 @@ Expected format: \`type(scope?): description\`, e.g. \`feat(login): add new logi exit 1 fi -TYPE=$(echo "$PR_TITLE" | sed -E 's/^([a-z]+)(\([^)]+\))?(!)?:.*/\1/') -BREAKING=$(echo "$PR_TITLE" | grep -q '!' && echo "true" || echo "false") - -echo "Detected type: $TYPE" -echo "Breaking change: $BREAKING" - -if [[ "$BREAKING" == "true" ]]; then - echo "🛑 Detected breaking change. Adding label." - gh pr edit "$PR_NUMBER" --add-label "breaking-change" - exit 0 -fi - -if [[ "$TYPE" == "feat" ]]; then - echo "🏷️ Added label: enhancement" - gh pr edit "$PR_NUMBER" --add-label "enhancement" - exit 0 -fi - -if [[ "$TYPE" == "fix" ]]; then - echo "🏷️ Added label: bug" - gh pr edit "$PR_NUMBER" --add-label "bug" - exit 0 -fi +exit 0 \ No newline at end of file diff --git a/.github/release.yml b/.github/release.yml deleted file mode 100644 index 19db3f4..0000000 --- a/.github/release.yml +++ /dev/null @@ -1,23 +0,0 @@ -changelog: - exclude: - labels: - - ignore-for-release - categories: - - title: ⚠️ BREAKING CHANGES! - labels: - - breaking-change - - title: 🎉 Features - labels: - - enhancement - - title: ✅ Bug Fixes - labels: - - bug - - title: 📚 Documentation - labels: - - documentation - - title: Dependencies - labels: - - dependencies - - title: Other Changes - labels: - - "*" diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 24cd1c0..a57f724 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -4,9 +4,6 @@ on: push: branches: - main - pull_request: - paths: - - ".github/workflows/release-please.yml" permissions: contents: write @@ -19,5 +16,5 @@ jobs: - uses: googleapis/release-please-action@v4 with: token: ${{ secrets.RELEASE_PLEASE_PAT }} - config-file: release-please/release-please-config.json - manifest-file: release-please/.release-please-manifest.json + config-file: release-please-config.json + manifest-file: .release-please-manifest.json diff --git a/release-please/.release-please-manifest.json b/.release-please-manifest.json similarity index 100% rename from release-please/.release-please-manifest.json rename to .release-please-manifest.json diff --git a/release-please/release-please-config.json b/release-please-config.json similarity index 83% rename from release-please/release-please-config.json rename to release-please-config.json index eb47a87..214e485 100644 --- a/release-please/release-please-config.json +++ b/release-please-config.json @@ -6,9 +6,8 @@ "bump-minor-pre-major": true, "bump-patch-for-minor-pre-major": true, "draft": false, - "prerelease": false, - "changelog-type": "github" + "prerelease": false } }, "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" -} +} \ No newline at end of file