Skip to content

Commit

Permalink
chore: add lark bot for new Issue and PR
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyutaotao committed Apr 22, 2024
1 parent 0bcf9bc commit 877b663
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/issue-pr-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ jobs:
BODY: ${{ github.event.issue.body }}
URL: ${{ github.server_url }}/${{ github.repository }}/issues/${{ github.event.issue.number }}
run: |
SHORT_BODY=$(echo "$BODY" | head -n 3)
TITLE="New Issue Opened: $ISSUE_TITLE"
DESCRIPTION="Issue by @$AUTHOR_ID: $SHORT_BODY. View more at $URL"
./scripts/alert/lark.js
SHORT_BODY=$(echo "$BODY" | head -n 3) TITLE="New Issue Opened: $ISSUE_TITLE" DESCRIPTION="Issue by @$AUTHOR_ID: $SHORT_BODY. View more at $URL" ./scripts/alert/lark.js
- name: Notify Lark for PR
if: github.event_name == 'pull_request'
Expand All @@ -38,8 +35,5 @@ jobs:
BODY: ${{ github.event.pull_request.body }}
URL: ${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.pull_request.number }}
run: |
SHORT_BODY=$(echo "$BODY" | head -n 3)
TITLE="New PR Opened: $PR_TITLE"
DESCRIPTION="PR by @$AUTHOR_ID: $SHORT_BODY. Check it out at $URL"
./scripts/alert/lark.js
SHORT_BODY=$(echo "$BODY" | head -n 3) TITLE="New PR Opened: $PR_TITLE" DESCRIPTION="PR by @$AUTHOR_ID: $SHORT_BODY. Check it out at $URL" ./scripts/alert/lark.js

0 comments on commit 877b663

Please sign in to comment.