diff --git a/.github/ISSUE_TEMPLATE/translation.yml b/.github/ISSUE_TEMPLATE/translation.yml new file mode 100644 index 00000000..f05b2826 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/translation.yml @@ -0,0 +1,16 @@ +name: ๐Ÿ“‘ Translation Task +description: ๅˆ›ๅปบ็ฟป่ฏ‘ไปปๅŠก + +title: <ๅŽŸๆ–‡ๆ ‡้ข˜> +labels: + - ๐Ÿ“– documentation +body: + - type: input + attributes: + label: ๅŽŸๆ–‡็ฝ‘ๅ€ + placeholder: ๅฆ‚ https://mobx.js.org/enabling-decorators.html + validations: + required: true + - type: textarea + attributes: + label: ๅค‡ๆณจ diff --git a/.github/workflows/fetch-original.yml b/.github/workflows/fetch-original.yml new file mode 100644 index 00000000..71cdcb7b --- /dev/null +++ b/.github/workflows/fetch-original.yml @@ -0,0 +1,24 @@ +name: Fetch Original Document pages +on: + issues: + types: + - labeled +jobs: + Fetch-and-Save: + if: github.event.label.name == '๐Ÿ“– documentation' + 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: "./docs/" + githubToken: ${{ github.token }} + + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "${{ github.event.issue.title }}"