diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 8688b2782..000000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,45 +0,0 @@ -version: v1 -labels: - - label: "semver:major" - sync: true # remove label if match failed, default: false - matcher: - title: ".*BREAKING.*" - - - label: "semver:minor" - sync: true # remove label if match failed, default: false - matcher: - title: "^feat(?!.*BREAKING).*" - - - label: "semver:patch" - sync: true # remove label if match failed, default: false - matcher: - title: "^fix(?!.*BREAKING).*" - - - label: "maintenance" - sync: true # remove label if match failed, default: false - matcher: - title: "^chore(?!.*BREAKING).*" - files: - any: - - "package.json" - - - label: "CI/CD" - sync: true # remove label if match failed, default: false - matcher: - files: - any: - - ".github/**" - - - label: "docs" - sync: true # remove label if match failed, default: false - matcher: - files: - any: - - "**/*.md" - - - label: "manifest" - sync: true # remove label if match failed, default: false - matcher: - files: - any: - - "action.yml" diff --git a/.github/update-labels.sh b/.github/update-labels.sh deleted file mode 100644 index 91a339691..000000000 --- a/.github/update-labels.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -REPO_NAME="iggy-rs/iggy" -API_URL="https://api.github.com/repos/$REPO_NAME/labels" - -create_label() { - local name="$1" - local color="$2" - local description="$3" - - curl -X POST -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3+json" \ - -d '{"name": "'"$name"'", "color": "'"$color"'", "description": "'"$description"'"}' \ - "$API_URL" -} - -create_label "CI/CD" "93ecdb" "Pull requests bring CI/CD improvements." -create_label "docs" "0075ca" "Improvements or additions to documentation." -create_label "duplicate" "cfd3d7" "This issue or pull request already exists." -create_label "maintenance" "ed4d86" "Maintenance work." -create_label "manifest" "D93F0B" "Label for pull request that brings a patch change." -create_label "semver:major" "8151c5" "Label for pull request that brings a major (BREAKING) change." -create_label "semver:minor" "8af85b" "Label for pull request that brings a minor change." -create_label "semver:patch" "fef2c0" "Label for pull request that brings a patch change." diff --git a/.github/workflows/master-update-labels.yaml b/.github/workflows/master-update-labels.yaml deleted file mode 100644 index 4704c222b..000000000 --- a/.github/workflows/master-update-labels.yaml +++ /dev/null @@ -1,32 +0,0 @@ -name: Update repository labels -on: - push: - branches: - - master - paths: - - ".github/workflows/uptdate-label.yml" - - ".github/update-labels.sh" - -jobs: - checks: - name: Update labels - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - with: - fetch-depth: 1 - - - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ secrets.DEPLOY_APP_ID }} - private-key: ${{ secrets.DEPLOY_APP_KEY }} - - - name: Call script - env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - run: | - chmod +x .github/update-labels.sh - .github/update-labels.sh diff --git a/.github/workflows/pull-request-relabelling.yaml b/.github/workflows/pull-request-relabelling.yaml deleted file mode 100644 index 363556345..000000000 --- a/.github/workflows/pull-request-relabelling.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: relabelling -on: - pull_request: - -jobs: - check-labels: - name: relabelling - runs-on: ubuntu-latest - permissions: - pull-requests: write - - steps: - - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ secrets.DEPLOY_APP_ID }} - private-key: ${{ secrets.DEPLOY_APP_KEY }} - - # https://github.com/fuxingloh/multi-labeler - - name: labels - uses: fuxingloh/multi-labeler@v4 - with: - github-token: ${{ steps.app-token.outputs.token }}