📓更新issue,当得到邮箱的格式时添加标签并关闭
This commit is contained in:
parent
06e0b3014f
commit
4329d8f53a
37
.github/workflows/deal_subscribe_issue.yml
vendored
37
.github/workflows/deal_subscribe_issue.yml
vendored
@ -6,36 +6,29 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
handle_email_issues:
|
handle_email_issues:
|
||||||
|
if: startsWith(github.event.issue.title, '[e-mail]')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Add subscribed label
|
- name: Add subscribed label
|
||||||
if: startsWith(github.event.issue.title, '[e-mail]')
|
uses: actions-cool/issues-helper@v3
|
||||||
run: |
|
with:
|
||||||
gh issue edit $NUMBER --add-label subscribed
|
actions: 'add-labels'
|
||||||
env:
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
|
issue-number: ${{ github.event.issue.number }}
|
||||||
GH_REPO: ${{ github.repository }}
|
labels: 'subscribed'
|
||||||
NUMBER: ${{ github.event.issue.number }}
|
|
||||||
|
|
||||||
- name: Comment on issue
|
- name: Comment on issue
|
||||||
if: startsWith(github.event.issue.title, '[e-mail]')
|
uses: actions-cool/issues-helper@v3
|
||||||
run: |
|
with:
|
||||||
gh issue comment $NUMBER --body "$BODY"
|
actions: 'create-comment'
|
||||||
env:
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
|
issue-number: ${{ github.event.issue.number }}
|
||||||
GH_REPO: ${{ github.repository }}
|
body: |
|
||||||
NUMBER: ${{ github.event.issue.number }}
|
🤩你好呀! ${{ github.event.issue.user.login }}!你已经成功通过邮件订阅了清羽飞扬小站啦!若有新文章将通过邮箱推送给你!谢谢你的订阅!
|
||||||
BODY: >
|
😥如果您实在想要关闭订阅,在右下角直接删除这个issue就好!咕咕咕咕咕咕咕!
|
||||||
您已订阅本站更新,若有新文章将通过邮箱推送给您,谢谢!
|
|
||||||
|
|
||||||
- name: Close issue
|
- name: Close issue
|
||||||
if: startsWith(github.event.issue.title, '[e-mail]')
|
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3
|
||||||
with:
|
with:
|
||||||
actions: 'close-issue'
|
actions: 'close-issue'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user