chore: some cleanup

This commit is contained in:
taskylizard 2024-08-26 15:46:12 +00:00
parent 9a01c3885f
commit 3148eabe96
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
6 changed files with 6 additions and 36 deletions

View file

2
.github/README.md vendored
View file

@ -31,5 +31,5 @@ Here are a few ways you can get involved:
## 🔔 Follow
<p>
<a href="https://discord.gg/Stz6y6NgNg"><img width="30px" src="./discord.svg" alt="Discord"></a>&nbsp;&nbsp;<a href="https://github.com/fmhy"><img width="30px" src="./github.svg" alt="GitHub"></a>&nbsp;&nbsp;<a href="https://bsky.app/profile/fmhy.bsky.social"><img width="30px" src="./bluesky.svg" alt="Bluesky"></a>
<a href="https://discord.gg/Stz6y6NgNg"><img width="30px" src="./assets/discord.svg" alt="Discord"></a>&nbsp;&nbsp;<a href="https://github.com/fmhy"><img width="30px" src="./assets/github.svg" alt="GitHub"></a>&nbsp;&nbsp;<a href="https://bsky.app/profile/fmhy.bsky.social"><img width="30px" src="./assets/bluesky.svg" alt="Bluesky"></a>
</p>

6
.github/labeler.yml vendored
View file

@ -1,7 +1,9 @@
# See https://github.com/actions/labeler
docs:
- '**/*.md'
- 'docs/**/*.md'
core:
- '.vitepress/**'
- 'api/**'
- '.github/**'
- 'docs/.vitepress/**'

View file

@ -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'],
});

View file

@ -3,4 +3,4 @@ title: Contributing
description: How to contribute to the project.
---
<!-- @include: ../../CONTRIBUTING.md -->
<!-- @include: ../../.github/CONTRIBUTING.md -->