When contributing to this repository, please first check the open issues incase some has already suggested a similar change, otherwise open a new issue.
We use pipenv
to manage Python dependencies and make
to automate common tasks. You can setup a pipenv
environment by running the following:
$> make setup
- Add a method to
src/messenger.py
with the following method signature:
def send_to_X(*, author: str, repo: str, commits: List[dict]):
-
Implement the required logic to send to the new messenger backend in that function. Pull any other required configuration from environment variables.
-
Add unit tests covering your new messenger to
src/messenger_test.py
. -
Ensure all existing unit tests and other checks pass by running the following commands:
$> make black-check
$> make pytest
$> make pylint
$> make mypy
-
Add any new environment variables to the
action.yml
and update theREADME.md
as needed. -
Open a new pull request and assign yourself, be prepared to make changes if requested.