Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Latest commit

 

History

History
36 lines (23 loc) · 1.13 KB

CONTRIBUTING.md

File metadata and controls

36 lines (23 loc) · 1.13 KB

Contributing

When contributing to this repository, please first check the open issues incase some has already suggested a similar change, otherwise open a new issue.

Setting up a development environment

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

Adding new messenger backends

  1. Add a method to src/messenger.py with the following method signature:
def send_to_X(*, author: str, repo: str, commits: List[dict]):
  1. Implement the required logic to send to the new messenger backend in that function. Pull any other required configuration from environment variables.

  2. Add unit tests covering your new messenger to src/messenger_test.py.

  3. Ensure all existing unit tests and other checks pass by running the following commands:

$> make black-check
$> make pytest
$> make pylint
$> make mypy
  1. Add any new environment variables to the action.yml and update the README.md as needed.

  2. Open a new pull request and assign yourself, be prepared to make changes if requested.