Skip to content

Commit

Permalink
Fix #17523: Github Team Discussion deprecation (#2)
Browse files Browse the repository at this point in the history
* initial changes

* few more changes

* update readme

* some suggested changes

* update comment content

* update readme and add check for args

* mock and test post

* mock post request with errors

* to get help

* unnecessary code

* fix integration test

* add tests in index and services

* some suggested changes and more

* more changes

* nit

* update docstring

* add comment for explanation

* sean's requested changes

* create Assignee at once

* add test in github_services

* few more changes

* add delete comment functionality

* fix lint checks

* nits

* update template
  • Loading branch information
SD-13 authored Aug 9, 2023
1 parent 90da825 commit 5c3267f
Show file tree
Hide file tree
Showing 19 changed files with 2,412 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/PENDING_REVIEW_NOTIFICATION_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Hi {{ username }},

It looks like you're assigned to this PR, but haven't taken any action for at least 2 days:
{{ pr_list }}

Please review and unassign yourself from the pending PRs as soon as possible.

To avoid these messages in the future, please bookmark [this link](https://github.com/pulls/assigned) and check it daily. Thanks!
26 changes: 26 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint Checks
on:
push:
branches:
- develop
pull_request:
branches:
- develop

jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8.15'
architecture: 'x64'
- name: Install dependencies
run: pip install -r requirements_dev.txt; pip install -r requirements.txt
shell: bash
- name: Run pylint checks
run: pylint src --rcfile=.pylintrc
26 changes: 26 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Python script unit and integration tests
on:
push:
branches:
- develop
pull_request:
branches:
- develop

jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8.15'
architecture: 'x64'
- name: Install dependencies
run: pip install -r requirements_dev.txt; pip install -r requirements.txt
shell: bash
- name: Run python unit tests
run: python -m unittest discover -p "*_test.py"
27 changes: 27 additions & 0 deletions .github/workflows/python_type_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Python type checks
on:
push:
branches:
- develop
pull_request:
branches:
- develop

jobs:
mypy_check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8.15'
architecture: 'x64'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install Mypy
run: pip install mypy
- name: Run Mypy checks
run: mypy --strict .
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
*~
*.pyc
*.swp
*.swo
*.bak
*.egg-info
__pycache__/
.coverage*
!.coveragerc
coverage.xml
.viminfo
.vscode/*
.nyc_output/*
env/
venv/
*.db
.DS_Store
.idea
.vagrant/*
.lock
.local/*
.env
.pytest_cache/v/cache/*
.direnv/*
.envrc
.python-version
Loading

0 comments on commit 5c3267f

Please sign in to comment.