Skip to content

Commit ed9db65

Browse files
committed
Fix: Remove priority labels (#7474)
1 parent 88f78a4 commit ed9db65

10 files changed

+41
-20
lines changed

.github/ISSUE_TEMPLATE/audited_events_rule_set_review.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
name: Review rule set for audited events
33
about: Issue template for annual review of the rule set for audited events
44
title: Review rule set for audited events
5-
labels: -,compliance,doc,no demo
5+
labels: compliance,doc,no demo
66
assignees: nolunwa-ucsc,bvizzier-ucsc
77
type: Chore
8+
project_item_priority: -,
89
_start: 2025-01-10T10:00
910
_period: 1 year
1011
---

.github/ISSUE_TEMPLATE/fedramp_inventory_review.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
name: Monthly FedRAMP inventory review
33
about: Issue template for the monthly creation and review of the FedRAMP cloud infrastructure inventory
44
title: Monthly FedRAMP inventory review
5-
labels: -,compliance,infra,no demo,operator
5+
labels: compliance,infra,no demo,operator
66
assignees: hannes-ucsc
77
type: Chore
8+
project_item_priority: -,
89
_repository: DataBiosphere/azul-private
910
_start: 2024-03-01T09:00
1011
_period: 1 month

.github/ISSUE_TEMPLATE/opensearch_updates.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
name: Apply Amazon OpenSearch software updates
33
about: Issue template for operator to update the service software version on all OpenSearch domains
44
title: Apply Amazon OpenSearch software updates
5-
labels: -,infra,no demo,operator
5+
labels: infra,no demo,operator
66
type: Chore
7+
project_item_priority: -,
78
_start: 2024-02-26T09:00
89
_period: 14 days
910
---

.github/ISSUE_TEMPLATE/promotion.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
name: Promotion
33
about: Issue template for promoting changes to stable deployments on a weekly basis
44
title: Promotion
5-
labels: -,infra,no demo,operator
5+
labels: infra,no demo,operator
66
type: Chore
7+
project_item_priority: -,
78
_start: 2024-02-27T09:00
89
_period: 7 days
910
---

.github/ISSUE_TEMPLATE/prune_gitlab_backups.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
name: Prune GitLab data volume backups
33
about: Issue template for the quarterly pruning of GitLab data volume snapshots
44
title: Prune GitLab data volume backups
5-
labels: -,infra,operator
5+
labels: infra,operator
66
type: Chore
7+
project_item_priority: -,
78
_start: 2025-04-01T09:00
89
_period: 3 months
910
---

.github/ISSUE_TEMPLATE/public_access_content_review.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
name: Monthly review of publicly accessible content
33
about: Issue template for the system administrator to perform a review of publicly accessible content on a monthly basis
44
title: Monthly review of publicly accessible content
5-
labels: -,compliance,infra,doc
5+
labels: compliance,infra,doc
66
assignees: hannes-ucsc
77
type: Chore
8+
project_item_priority: -,
89
_repository: DataBiosphere/azul-private
910
_start: 2024-08-01T09:00
1011
_period: 1 month

.github/ISSUE_TEMPLATE/upgrade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ about: Issue template for the bi-weekly upgrade of Azul's software dependencies
44
title: Upgrade software dependencies
55
labels: -,operator,infra
66
type: Chore
7+
project_item_priority: -,
78
_start: 2023-11-27T09:00
89
_period: 14 days
910
---

.github/ISSUE_TEMPLATE/vpn_certificate_renewals.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
name: Renew server and client VPN certificates
33
about: Issue template for the quarterly renewal of all VPN certificates
44
title: Renew VPN server and client certificates
5-
labels: -,infra
5+
labels: infra
66
type: Chore
7+
project_item_priority: -,
78
_start: 2025-08-01T09:00
89
_period: 3 months
910
---

.github/ISSUE_TEMPLATE/web_app_vulnerability_scan.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
name: Monthly web app vulnerability scans
33
about: Issue template for the monthly scanning and triaging of web application vulnerabilities
44
title: Monthly web app vulnerability scans
5-
labels: -,compliance,infra,no demo
5+
labels: compliance,infra,no demo
66
type: Chore
7+
project_item_priority: -,
78
_repository: DataBiosphere/azul-private
89
_start: 2025-06-01T09:00
910
_period: 1 month

.github/workflows/schedule.py

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -198,18 +198,30 @@ def create_issue(self, title_date: date) -> None:
198198
# therefore need to verify those.
199199
issue = json.loads(process.stdout)
200200
url = issue['html_url']
201-
log.info('… created %r, verifying labels and assignees …', url)
202-
path = urllib.parse.urlparse(url).path.removeprefix('/')
203-
actual_repository, dir, issue_number = path.rsplit('/', maxsplit=2)
204-
assert dir == 'issues', dir
205-
assert repository == actual_repository, (repository, actual_repository)
206-
actual_assignees = set(map(itemgetter('login'), issue['assignees']))
207-
assert set(assignees) == actual_assignees, (assignees, actual_assignees)
208-
actual_labels = set(map(itemgetter('name'), issue['labels']))
209-
assert set(labels) <= actual_labels, (labels, actual_labels)
210-
actual_type = issue['type']['name']
211-
assert type == actual_type, (type, actual_type)
212-
log.info('Successfully created and verfied issue #%s', issue_number)
201+
self.verify_issue(assignees, issue, labels, repository, type, url)
202+
project_number = '3' # Azul is project 3 in the DataBiosphere organization
203+
command = [
204+
'gh', 'project',
205+
'item-add', project_number,
206+
'--owner', 'DataBiosphere',
207+
url
208+
]
209+
log.info('Running %r …', command)
210+
process = subprocess.run(command, check=True, stdout=subprocess.PIPE)
211+
212+
def verify_issue(self, assignees, issue, labels, repository, type, url):
213+
log.info('… created %r, verifying labels and assignees …', url)
214+
path = urllib.parse.urlparse(url).path.removeprefix('/')
215+
actual_repository, dir, issue_number = path.rsplit('/', maxsplit=2)
216+
assert dir == 'issues', dir
217+
assert repository == actual_repository, (repository, actual_repository)
218+
actual_assignees = set(map(itemgetter('login'), issue['assignees']))
219+
assert set(assignees) == actual_assignees, (assignees, actual_assignees)
220+
actual_labels = set(map(itemgetter('name'), issue['labels']))
221+
assert set(labels) <= actual_labels, (labels, actual_labels)
222+
actual_type = issue['type']['name']
223+
assert type == actual_type, (type, actual_type)
224+
log.info('Successfully created and verfied issue #%s', issue_number)
213225

214226

215227
def main(args):

0 commit comments

Comments
 (0)