Skip to content

Commit

Permalink
chore: some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
taskylizard committed Aug 26, 2024
1 parent 9a01c38 commit 3148eab
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 36 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 4 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# See https://github.com/actions/labeler

docs:
- '**/*.md'
- 'docs/**/*.md'

core:
- '.vitepress/**'
- 'api/**'
- '.github/**'
- 'docs/.vitepress/**'
32 changes: 0 additions & 32 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
});
2 changes: 1 addition & 1 deletion docs/other/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: Contributing
description: How to contribute to the project.
---

<!-- @include: ../../CONTRIBUTING.md -->
<!-- @include: ../../.github/CONTRIBUTING.md -->

0 comments on commit 3148eab

Please sign in to comment.