Request permissions for active alert management. #14
This file contains hidden or 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
| name: 'Issue Translator' | |
| on: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| translate: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| contents: read | |
| steps: | |
| - name: Translate Issues | |
| uses: usthe/[email protected] | |
| with: | |
| # 是否翻译 issue 标题 | |
| IS_MODIFY_TITLE: true | |
| # GitHub Token | |
| BOT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # 自定义翻译标注(可选) | |
| # CUSTOM_BOT_NOTE: "Translation by bot" |