We want to make contributing to this project as easy and transparent as possible.
We actively welcome your pull requests. Keep changes concise to help reviewers. Make sure you focus on a single bugfix or a single feature.
Python is installed. Minimum version we support is Python 3.8.
-
Create a GitHub issue proposing the feature you would like to have added.
-
Fork the repo and create your branch from
master
. -
Set up your environment:
git clone [email protected]:<your github username>/md2conf.git python -m venv ".venv" source .venv/bin/activate pip install -r requirements.txt
-
If you've added code that should be tested, add tests to either
tests
orintegration_tests
directory. Note: The directoryintegration_tests
assumes you have an active Confluence instance to run those against.
python -m unittest discover -s tests
Before running these tests, you must set up your environment variables (e.g. add to your ~/.profile
on Linux, or ~/.bash_profile
or ~/.zshenv
on MacOS, or System properties on Windows.):
CONFLUENCE_DOMAIN='<your domain>.atlassian.net'
CONFLUENCE_PATH='/wiki/'
CONFLUENCE_USER_NAME='<your email>'
CONFLUENCE_API_KEY='0123456789abcdef'
CONFLUENCE_SPACE_KEY='<your space key>'
Runing the tests:
python -m unittest discover -s integration_tests
Verify that all code you have added passes static code checks. Depending on your OS, there is a script for you to use. If using Windows, run check.bat
, otherwise run ./check.sh
.