Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/actions/pr_notifier/pr_notifier.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sys

from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError

if __name__ == '__main__':
print("Hello world!")
print(sys.version)
8 changes: 8 additions & 0 deletions .github/actions/pr_notifier/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --generate-hashes tools/dependency/requirements.txt
#
slack_sdk==3.5.1 \
--hash=sha256:8ceb46f7989d2ba1694dec8555dbda7f750b9216e453da4ad3e32a498bc9ea9a
24 changes: 24 additions & 0 deletions .github/workflows/pr_notifier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
pull_request:
#workflow_dispatch:
#schedule:
# - cron: '0 */4 * * *'

jobs:
pr_notifier:
name: PR Notifier
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./.github/actions/pr_notifier/requirements.txt
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 - the pip installer i linked doesnt support require-hashes afaict - this sees to be the most straightforward

- name: Display Python version
run: python ./.github/actions/pr_notifier/pr_notifier.py