Skip to content

Commit 19269a0

Browse files
authored
Merge pull request #1800 from madchap/drafter-improvements
A bit fancier release-drafter template
2 parents e0901dc + 8854c71 commit 19269a0

File tree

3 files changed

+53
-5
lines changed

3 files changed

+53
-5
lines changed

.github/release-drafter.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1+
name-template: 'v$NEXT_PATCH_VERSION 🌈'
2+
tag-template: 'v$NEXT_PATCH_VERSION'
3+
categories:
4+
- title: '🚀 New scanners'
5+
labels:
6+
- 'Import Scans'
7+
- title: '🚀 Features and enhancements'
8+
labels:
9+
- 'feature'
10+
- 'enhancement'
11+
- title: '🐛 Bug Fixes'
12+
labels:
13+
- 'fix'
14+
- 'bugfix'
15+
- 'bug'
16+
- title: '🧰 Maintenance'
17+
labels:
18+
- 'dependencies'
19+
- 'maintenance'
20+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
121
template: |
2-
## What's Changed
22+
## Changes
323
424
$CHANGES
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: release-drafter/[email protected]
15+
# with:
16+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
17+
# config-name: my-config.yml
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

PULL_REQUEST_TEMPLATE.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
**Note: DefectDojo is now on Python3 and Django 2.2.1 Please submit your pull requests to the 'dev' branch as the 'legacy-python2.7' branch is only for bug fixes. Any new features submitted to the legacy branch will be ignored and closed.**
1+
**Note: DefectDojo is now on Python3.5 and Django 2.2.x Please submit your pull requests to the 'dev' branch as the 'legacy-python2.7' branch is only for bug fixes. Any new features submitted to the legacy branch will be ignored and closed.**
22

33
When submitting a pull request, please make sure you have completed the following checklist:
44

55
- [ ] Your code is flake8 compliant
6-
- [ ] Your code is python 3.5 compliant
6+
- [ ] Your code is python 3.5 compliant (specific python >=3.6 syntax is currently not accepted)
77
- [ ] If this is a new feature and not a bug fix, you've included the proper documentation in the ReadTheDocs documentation folder. https://github.com/DefectDojo/Documentation/tree/master/docs or provide feature documentation in the PR.
8-
- [ ] Model changes must include the necessary migrations in the dojo/dd_migrations folder.
9-
- [ ] Add applicable tests to the unit tests.
8+
- [ ] Model changes must include the necessary migrations in the dojo/db_migrations folder.
9+
- [ ] Add applicable tests to the unit tests.
10+
- [ ] Add the proper label to categorize your PR
11+
12+
Current accepted labels for PRs:
13+
- Import Scans (for new scanners/importers)
14+
- enhancement
15+
- feature
16+
- bugfix
17+
- maintenance (a.k.a chores)
18+
- dependencies

0 commit comments

Comments
 (0)