mirror of
https://github.com/fmhy/edit.git
synced 2025-07-29 23:32:17 +10:00
chore: some cleanup
This commit is contained in:
parent
9a01c3885f
commit
3148eabe96
6 changed files with 6 additions and 36 deletions
0
CODEOWNERS → .github/CODEOWNERS
vendored
0
CODEOWNERS → .github/CODEOWNERS
vendored
0
CONTRIBUTING.md → .github/CONTRIBUTING.md
vendored
0
CONTRIBUTING.md → .github/CONTRIBUTING.md
vendored
2
.github/README.md
vendored
2
.github/README.md
vendored
|
@ -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> <a href="https://github.com/fmhy"><img width="30px" src="./github.svg" alt="GitHub"></a> <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> <a href="https://github.com/fmhy"><img width="30px" src="./assets/github.svg" alt="GitHub"></a> <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
6
.github/labeler.yml
vendored
|
@ -1,7 +1,9 @@
|
|||
# See https://github.com/actions/labeler
|
||||
|
||||
docs:
|
||||
- '**/*.md'
|
||||
- 'docs/**/*.md'
|
||||
|
||||
core:
|
||||
- '.vitepress/**'
|
||||
- 'api/**'
|
||||
- '.github/**'
|
||||
- 'docs/.vitepress/**'
|
||||
|
|
32
.github/workflows/labeler.yml
vendored
32
.github/workflows/labeler.yml
vendored
|
@ -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'],
|
||||
});
|
||||
|
|
|
@ -3,4 +3,4 @@ title: Contributing
|
|||
description: How to contribute to the project.
|
||||
---
|
||||
|
||||
<!-- @include: ../../CONTRIBUTING.md -->
|
||||
<!-- @include: ../../.github/CONTRIBUTING.md -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue