-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: Optimize description * ci: pr add label
- Loading branch information
1 parent
5dfb4ca
commit 3ca83cb
Showing
3 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: pr-add-label | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
jobs: | ||
add-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check PR number | ||
id: pr_number | ||
run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV | ||
|
||
- name: Run add-label Action | ||
uses: thinkasany/pr-label-action@master | ||
with: | ||
github_token: ${{ secrets.ACTION_TOKEN }} | ||
pr_number: ${{ env.PR_NUMBER }} | ||
organize_name: "actionv" | ||
team_name: "action-team" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,44 @@ | ||
# 🌊自我介绍 | ||
pr-label自动添加工具,为您添加核心团队提交的标志和修改的文件类型... | ||
|
||
可以从的pr列表中一眼辨别哪些是核心团队开发的,和一眼看出改动了哪儿些文件... | ||
# 🌈实现效果 | ||
<a href="https://github.com/doocs/leetcode/pulls?q=is%3Apr+is%3Aclosed" target="_blank"><img src="./demo/demo1.png"></a> | ||
|
||
# 🚀谁在用我 | ||
| # | 社区| 描述 | 热度 | | ||
| --- | --- | --- | --- | | ||
| 1 | [doocs/leetcode](https://github.com/doocs/leetcode) | LeetCode solutions in any programming language 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解 | ![](https://badgen.net/github/stars/doocs/leetcode)| | ||
|
||
|
||
# 🍔 使用指南 | ||
### [示例仓库](https://github.com/thinkasany/test) | ||
### [示例仓库](https://github.com/doocs/leetcode/blob/main/.github/workflows/pr-add-label.yml) | ||
|
||
|
||
### yml配置 | ||
``` | ||
name: test-pr-listen | ||
name: pr-add-label | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
workflow_dispatch: # 添加手动触发事件 | ||
inputs: | ||
pr_number: | ||
description: 'PR Number' | ||
required: true | ||
jobs: | ||
checkin: | ||
add-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check PR number | ||
id: pr_number | ||
run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV | ||
- name: Run Custom Action | ||
- name: Run add-label Action | ||
uses: thinkasany/pr-label-action@master | ||
with: | ||
github_token: ${{ secrets.ACTION_TOKEN }} | ||
github_token: ${{ secrets.DOOCS_BOT_ACTION_TOKEN }} | ||
pr_number: ${{ env.PR_NUMBER }} | ||
organize_name: 'actionv' # 组织的名字 | ||
team_name: 'action-team' # team的名字 | ||
organize_name: "doocs" # 组织名字 | ||
team_name: "leetcode-algorithm" 团队名字 | ||
``` | ||
### yml demo | ||
|
||
# 🌈实现效果 | ||
<a href="https://thinkasany.github.io/test/" target="_blank"><img src="./demo/contributors.png"></a> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.