Skip to content

Commit

Permalink
Add date to parent summary
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorFries committed Oct 6, 2023
1 parent bbacabb commit e3df07c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/helpers/jira-api/create_tickets.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
## Check max results vs. total results in get_summary_list
## Send 2 request when over 50 updates instead of trunkating.
## look into not using regex.
## set up env file for environment variables (level flags ect.)
## *** diagram for security and priv.
##
###################################################################################################

Expand Down
8 changes: 7 additions & 1 deletion .github/helpers/jira-api/refine_tickets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import re
import sys
import json
import datetime

###################################################################################################
##
Expand Down Expand Up @@ -43,6 +44,11 @@ def create_parent_ticket( project_key, updates ):
parent_key (string): captures key of created ticket
"""

# get current day and format as Mon DD, YYYY
today = datetime.date.today()
today = today.strftime("%b %d, %Y")

# format the description of the parent ticket
description = "Currently we have:\n" + \
"- " + str(len(updates[0])) + " Patch updates\n" + \
"- " + str(len(updates[1])) + " Minor updates\n" + \
Expand All @@ -56,7 +62,7 @@ def create_parent_ticket( project_key, updates ):
"project": {
"key": project_key
},
"summary": "Dependency Updates",
"summary": "Dependency Updates " + str(today),
"description": description,
"issuetype": {
"name": "Task"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/app-npm-dep-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:

- name: execute py script
env:
LEVEL_FLAGS: "PATCH MINOR MAJOR" # used to determine what updates to post
LEVEL_FLAGS: "MINOR MAJOR" # used to determine what updates to post
JIRA_BOARD: "TES" # sets what JIRA board to post and pull from
JIRA_API_KEY: ${{ secrets.JIRA_API_KEY }} # key used to access JIRA API
ISSUE_BODY: ${{ env.ISSUE_BODY }} # dependency update list
Expand Down

0 comments on commit e3df07c

Please sign in to comment.