-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21808e4
commit 75637cb
Showing
2 changed files
with
45 additions
and
0 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,23 @@ | ||
name: Comment | ||
on: | ||
issue_comment: | ||
types: [created] | ||
pull_request_review_comment: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
name: Telegram | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.issue.pull_request }} | ||
steps: | ||
- name: Send telegram message on push | ||
uses: appleboy/[email protected] | ||
with: | ||
to: ${{ secrets.TELEGRAM_ISSUE_CHAT_ID }} | ||
token: ${{ secrets.TELEGRAM_ISSUE_TOKEN }} | ||
format: Markdown | ||
# this might go wrong, because `title` and `body` can have arbitrary markdown | ||
message: | | ||
✏️ [${{ github.event.comment.user.login }}](${{ github.event.comment.html_url }}): ${{ github.event.comment.body }} | ||
🔀 ${{ 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,22 @@ | ||
name: Pull request | ||
on: | ||
pull_request: | ||
types: [opened, reopened] | ||
|
||
jobs: | ||
build: | ||
name: Telegram | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send telegram message on push | ||
uses: appleboy/[email protected] | ||
with: | ||
to: ${{ secrets.TELEGRAM_ISSUE_CHAT_ID }} | ||
token: ${{ secrets.TELEGRAM_ISSUE_TOKEN }} | ||
format: Markdown | ||
# this might go wrong, because `title` can have arbitrary markdown | ||
message: | | ||
🍰 [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }}) | ||
🌲 ${{ github.repository }} | ||
👤 ${{ github.actor }} | ||
🔀 ${{ github.event.pull_request.base.label }} <- ${{ github.event.pull_request.head.label }} |