Skip to content

Commit fba9eac

Browse files
authored
Merge pull request #14762 from DefectDojo/master-into-bugfix/2.57.3-2.58.0-dev
Release: Merge back 2.57.3 into bugfix from: master-into-bugfix/2.57.3-2.58.0-dev
2 parents a7abba8 + f5eb6e0 commit fba9eac

6 files changed

Lines changed: 30 additions & 12 deletions

File tree

.github/workflows/release-1-create-pr.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,17 @@ jobs:
111111
with:
112112
github-token: ${{ secrets.GITHUB_TOKEN }}
113113
script: |
114-
github.rest.pulls.create({
114+
const pr = await github.rest.pulls.create({
115115
owner: '${{ env.GITHUB_ORG }}',
116116
repo: 'django-DefectDojo',
117117
title: 'Release: Merge release into master from: ${{ env.NEW_BRANCH }}',
118118
body: `Release triggered by \`${ process.env.GITHUB_ACTOR }\``,
119119
head: '${{ env.NEW_BRANCH }}',
120120
base: 'master'
121121
})
122+
await github.rest.issues.addLabels({
123+
owner: '${{ env.GITHUB_ORG }}',
124+
repo: 'django-DefectDojo',
125+
issue_number: pr.data.number,
126+
labels: ['release-management']
127+
})

.github/workflows/release-3-master-into-dev.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,20 @@ jobs:
9999
with:
100100
github-token: ${{ secrets.GITHUB_TOKEN }}
101101
script: |
102-
github.rest.pulls.create({
102+
const pr = await github.rest.pulls.create({
103103
owner: '${{ env.GITHUB_ORG }}',
104104
repo: 'django-DefectDojo',
105105
title: 'Release: Merge back ${{ inputs.release_number_new }} into dev from: ${{ env.NEW_BRANCH }}',
106106
body: `Release triggered by \`${ process.env.GITHUB_ACTOR }\``,
107107
head: '${{ env.NEW_BRANCH }}',
108108
base: 'dev'
109109
})
110+
await github.rest.issues.addLabels({
111+
owner: '${{ env.GITHUB_ORG }}',
112+
repo: 'django-DefectDojo',
113+
issue_number: pr.data.number,
114+
labels: ['release-management']
115+
})
110116
111117
create_pr_for_merge_back_into_bugfix:
112118
runs-on: ubuntu-latest
@@ -175,11 +181,17 @@ jobs:
175181
with:
176182
github-token: ${{ secrets.GITHUB_TOKEN }}
177183
script: |
178-
github.rest.pulls.create({
184+
const pr = await github.rest.pulls.create({
179185
owner: '${{ env.GITHUB_ORG }}',
180186
repo: 'django-DefectDojo',
181187
title: 'Release: Merge back ${{ inputs.release_number_new }} into bugfix from: ${{ env.NEW_BRANCH }}',
182188
body: `Release triggered by \`${ process.env.GITHUB_ACTOR }\``,
183189
head: '${{ env.NEW_BRANCH }}',
184190
base: 'bugfix'
185191
})
192+
await github.rest.issues.addLabels({
193+
owner: '${{ env.GITHUB_ORG }}',
194+
repo: 'django-DefectDojo',
195+
issue_number: pr.data.number,
196+
labels: ['release-management']
197+
})

dojo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# Django starts so that shared_task will use this app.
55
from .celery import app as celery_app # noqa: F401
66

7-
__version__ = "2.57.2"
7+
__version__ = "2.57.3"
88
__url__ = "https://github.com/DefectDojo/django-DefectDojo"
99
__docs__ = "https://documentation.defectdojo.com"

helm/defectdojo/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: "2.58.0-dev"
33
description: A Helm chart for Kubernetes to install DefectDojo
44
name: defectdojo
5-
version: 1.9.24-dev
5+
version: 1.9.25-dev
66
icon: https://defectdojo.com/hubfs/DefectDojo_favicon.png
77
maintainers:
88
- name: madchap

helm/defectdojo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ The HELM schema will be generated for you.
511511
512512
# General information about chart values
513513
514-
![Version: 1.9.24-dev](https://img.shields.io/badge/Version-1.9.24--dev-informational?style=flat-square) ![AppVersion: 2.58.0-dev](https://img.shields.io/badge/AppVersion-2.58.0--dev-informational?style=flat-square)
514+
![Version: 1.9.25-dev](https://img.shields.io/badge/Version-1.9.25--dev-informational?style=flat-square) ![AppVersion: 2.58.0-dev](https://img.shields.io/badge/AppVersion-2.58.0--dev-informational?style=flat-square)
515515
516516
A Helm chart for Kubernetes to install DefectDojo
517517

tests/announcement_banner_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def disable_announcement(self):
4141
def test_create_announcement(self):
4242
driver = self.driver
4343
driver.get(self.base_url)
44-
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner"))
44+
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner:not([data-source])"))
4545

4646
text = "Big important announcement, definitely pay attention!"
4747
self.enable_announcement(text, dismissable=False, style=self.type)
@@ -56,7 +56,7 @@ def test_create_announcement(self):
5656
def test_create_dismissable_announcement(self):
5757
driver = self.driver
5858
driver.get(self.base_url)
59-
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner"))
59+
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner:not([data-source])"))
6060

6161
text = "Big important announcement, definitely pay don't dismiss this one."
6262
self.enable_announcement(text, dismissable=True, style=self.type)
@@ -77,7 +77,7 @@ def test_create_dismissable_announcement(self):
7777
def test_dismissing_announcement_does_not_dismiss_for_others(self):
7878
driver = self.driver
7979
driver.get(self.base_url)
80-
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner"))
80+
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner:not([data-source])"))
8181

8282
text = "Everyone sees this, right?"
8383
self.enable_announcement(text, dismissable=True, style=self.type)
@@ -103,7 +103,7 @@ def test_dismissing_announcement_does_not_dismiss_for_others(self):
103103
def test_announcement_ui_disabled_when_set(self):
104104
driver = self.driver
105105
driver.get(self.base_url)
106-
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner"))
106+
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner:not([data-source])"))
107107

108108
text = "The most important announcement of the year."
109109
self.enable_announcement(text, dismissable=False, style=self.type)
@@ -121,7 +121,7 @@ def test_announcement_ui_disabled_when_set(self):
121121
def test_announcement_empty_after_removal(self):
122122
driver = self.driver
123123
driver.get(self.base_url)
124-
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner"))
124+
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner:not([data-source])"))
125125

126126
text = "Surely no-one would delete this announcement quickly"
127127
self.enable_announcement(text, dismissable=False, style=self.type)
@@ -139,7 +139,7 @@ def test_announcement_empty_after_removal(self):
139139
def test_html_announcement(self):
140140
driver = self.driver
141141
driver.get(self.base_url)
142-
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner"))
142+
self.assertFalse(self.is_element_by_css_selector_present(".announcement-banner:not([data-source])"))
143143

144144
text = "Links in announcements? <a href='https://github.com/DefectDojo/django-DefectDojo' style='color: #224477;' target='_blank'>you bet!</a>"
145145
self.enable_announcement(text, dismissable=False, style=self.type)

0 commit comments

Comments
 (0)