diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml new file mode 100644 index 00000000..b8494f1e --- /dev/null +++ b/.github/workflows/notify.yml @@ -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. diff --git a/.pep8speaks.yml b/.pep8speaks.yml new file mode 100644 index 00000000..03fa3391 --- /dev/null +++ b/.pep8speaks.yml @@ -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