diff --git a/CODEOWNERS b/.github/CODEOWNERS similarity index 100% rename from CODEOWNERS rename to .github/CODEOWNERS diff --git a/CONTRIBUTING.md b/.github/CONTRIBUTING.md similarity index 100% rename from CONTRIBUTING.md rename to .github/CONTRIBUTING.md diff --git a/.github/README.md b/.github/README.md index 19d6597f3..546ccf744 100644 --- a/.github/README.md +++ b/.github/README.md @@ -31,5 +31,5 @@ Here are a few ways you can get involved: ## 🔔 Follow

- Discord  GitHub  Bluesky + Discord  GitHub  Bluesky

diff --git a/.github/labeler.yml b/.github/labeler.yml index 5a14be831..17050009d 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,7 +1,9 @@ # See https://github.com/actions/labeler docs: - - '**/*.md' + - 'docs/**/*.md' core: - - '.vitepress/**' + - 'api/**' + - '.github/**' + - 'docs/.vitepress/**' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index fc0457f62..a8fae961a 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -15,35 +15,3 @@ jobs: uses: actions/labeler@v4 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - - auto-assign: - runs-on: ubuntu-latest - needs: triage - steps: - - name: Check if PR has 'core' label - id: check_label - uses: actions/github-script@v6 - with: - script: | - const prNumber = context.payload.pull_request.number; - const { data: labels } = await github.rest.issues.listLabelsOnIssue({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: prNumber, - }); - - const hasCoreLabel = labels.some(label => label.name === 'core'); - return hasCoreLabel; - - - name: Auto-assign to PR - if: steps.check_label.outputs.result == 'true' - uses: actions/github-script@v6 - with: - script: | - const prNumber = context.payload.pull_request.number; - await github.rest.issues.addAssignees({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: prNumber, - assignees: ['taskylizard'], - }); diff --git a/docs/other/contributing.md b/docs/other/contributing.md index 291ab38fc..2166686e6 100644 --- a/docs/other/contributing.md +++ b/docs/other/contributing.md @@ -3,4 +3,4 @@ title: Contributing description: How to contribute to the project. --- - +