Skip to content

Commit 9fd598d

Browse files
author
Greg Anderson
authored
Update CONTRIBUTING.md
1 parent 094042e commit 9fd598d

File tree

1 file changed

+9
-24
lines changed

1 file changed

+9
-24
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,28 @@
22

33
Here are a few things to keep in mind when making changes to DefectDojo.
44

5-
## Modifying DefectDojo and testing with Vagrant
5+
## Modifying DefectDojo and Testing
66

7-
This may change in the future, but for now the bash setup and Vagrant setup are
8-
fairly decoupled.
7+
Please use [these test scripts](./tests) to test your changes. These are the exact scripts we run in our [Travis Build](https://travis-ci.org/OWASP/django-DefectDojo)
98

10-
If you want to make changes to the DefectDojo code and test it with Vagrant,
11-
you will need to change the `dd_git_repo` and/or `dd_git_branch` variables
12-
defined in [__ansible/vars.yml__][ansible_vars]. You will also need to port any
13-
changes you make to [__dojo/settings.dist.py__][dojo_settings] into
14-
[__ansible/roles/webserver/templates/settings.j2__][ansible_settings], adding
15-
Ansible variables as necessary (defined in
16-
[__ansible/vars.yml__][ansible_vars]). Any additional pip packages will need to
17-
be defined in [__ansible/roles/webserver/tasks/app.yml__][ansible_app].
9+
For changes that require additional settings. settings.dist.py is the file you want to change. settings.py is populated by setup.bash from settings.dist.py
1810

19-
## Submitting pull requests
11+
## Submitting Pull Requests
2012

2113
The following are things to consider before submitting a pull request to
2214
DefectDojo.
2315

2416
0. Ensure all changes made to the code, packages, etc. are reflected in the
25-
[__setup.bash__][setup_bash] script, the [__setup.py__][setup_py] script, and
26-
the Ansible playbooks in the [__ansible/__][ansible_folder] folder. See
27-
[__Modifying DefectDojo and testing with Vagrant__][modifying_dojo] above for
28-
more information.
17+
[__setup.bash__][setup_bash] script and the [__setup.py__][setup_py] script.
2918

30-
0. If possible, make sure that both the bash and Vagrant installation scripts
31-
are working properly before submitting a pull request.
3219

33-
0. All submitted code should conform to [__PEP8 standards__][pep8].
20+
0. Make sure that the install is working properly.
21+
22+
0. All tests found in [these test scripts](./tests) should be passing.
3423

24+
0. All submitted code should conform to [__PEP8 standards__][pep8].
3525

36-
[ansible_vars]: /ansible/vars.yml "Ansible variables file"
3726
[dojo_settings]: /dojo/settings.dist.py "DefectDojo settings file"
38-
[ansible_settings]: /ansible/roles/webserver/templates/settings.j2 "Ansible settings template"
3927
[setup_py]: /setup.py "Python setup script"
40-
[ansible_app]: /ansible/roles/webserver/tasks/app.yml "Ansible app tasks"
4128
[setup_bash]: /setup.bash "Bash setup script"
42-
[ansible_folder]: /ansible "Ansible folder"
43-
[modifying_dojo]: #modifying-defectdojo-and-testing-with-vagrant "Modifying DefectDojo and testing with Vagrant"
4429
[pep8]: https://www.python.org/dev/peps/pep-0008/ "PEP8"

0 commit comments

Comments
 (0)