-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tg-notify on closed PRs * Add pep8speaks settings * fixup! Add tg-notify on closed PRs
- Loading branch information
Showing
2 changed files
with
44 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,35 @@ | ||
name: telegram notify | ||
on: | ||
pull_request: | ||
types: [ closed ] | ||
|
||
jobs: | ||
|
||
merge_job: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: send custom message with args | ||
uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_CHAT_ID }} | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
args: "The ${{github.event_name}} '${{github.event.pull_request.title}}' (#${{github.event.number}}) was merged. | ||
\nLink: ${{github.event.pull_request.html_url}} | ||
\nDescription: ${{github.event.pull_request.body}} | ||
\n | ||
\nCheck it out to keep your local repository updated." | ||
|
||
|
||
close_job: | ||
if: github.event.pull_request.merged == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: send custom message with args | ||
uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.CHAT_ID }} | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
args: The ${{github.event_name}} ${{github.event.pull_request.title}} (${{github.event.number}}) was closed. |
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,9 @@ | ||
scanner: | ||
diff_only: False # The entire file touched by the PR will be scanned for errors | ||
linter: flake8 | ||
|
||
flake8: | ||
max-line-length: 120 # Default is 79 in PEP 8 | ||
ignore: [] | ||
|
||
no_blank_comment: False # Every PR will have its own pep8speaks stats |