-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[add] GitHub issue template & actions of Crawler & Formatter (#367)
- Loading branch information
Showing
10 changed files
with
122 additions
and
50 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,10 @@ | ||
--- | ||
name: 文章抓取 | ||
about: 自动抓取互联网文章,并转为 Markdown 文件保存 | ||
title: (文章标题) | ||
labels: | ||
- Article | ||
- crawler | ||
--- | ||
|
||
https://example.com/replace/this/with/your/original/article/URL |
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,11 @@ | ||
- icon: github | ||
label: "GitHub codespaces" | ||
message: "PR-$prNumber" | ||
color: "black" | ||
url: "https://codespaces.new/$owner/$repo/pull/$prNumber" | ||
|
||
- icon: git | ||
label: "GitPod.io" | ||
message: "PR-$prNumber" | ||
color: "orange" | ||
url: "https://gitpod.io/?autostart=true#https://github.com/$owner/$repo/pull/$prNumber" |
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,24 @@ | ||
name: Fetch Web pages | ||
on: | ||
issues: | ||
types: | ||
- labeled | ||
jobs: | ||
Fetch-and-Save: | ||
if: github.event.label.name == 'crawler' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
issues: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: freeCodeCamp-China/article-webpage-to-markdown-action@v1 | ||
with: | ||
newsLink: "${{ github.event.issue.Body }}" | ||
markDownFilePath: "./translation/" | ||
githubToken: ${{ github.token }} | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "${{ github.event.issue.title }}" |
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,24 @@ | ||
name: Format Markdown files | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
Lint-and-Format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "lts/*" | ||
|
||
- name: Lint & Format | ||
run: pnpm --package=@lint-md/cli dlx lint-md **/*.md --fix | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Auto Format |
11 changes: 7 additions & 4 deletions
11
Success-at-Apache/Meritocracy:精英治理 → ...ion/Success-at-Apache/Meritocracy:精英治理.md
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
File renamed without changes.
File renamed without changes.
46 changes: 23 additions & 23 deletions
46
The Value of Open Source Software.md → ...tion/The Value of Open Source Software.md
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.