Skip to content

Commit

Permalink
assignees, label changes and domain not setting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaanbaaz committed Nov 25, 2024
1 parent 5ddf1be commit 30bb049
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions events/ticketEventHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,14 @@ async def onTicketCreate(self, eventData):
designer = markdown_contents.get("Designer")

labels = issue["labels"] # Assuming this contains the list of labels
desired_labels = ['C4GT Coding', 'C4GT Advisory', 'C4GT Mentorship', 'C4GT Design', 'C4GT Bounty']
desired_labels = ['C4GT Coding', 'C4GT Advisory', 'C4GT Mentorship', 'C4GT Design', 'C4GT Bounty', 'C4GT Community']
# Filter the labels to include only the desired ones
filtered_labels = [label for label in labels if label in desired_labels]
filtered_labels = []
for label in labels:
if label in desired_labels:
filtered_labels.append(label)

print('filtered labels ', filtered_labels)

category = markdown_contents.get("Category")
domain = markdown_contents.get("Domain")
Expand Down Expand Up @@ -297,9 +302,14 @@ async def onTicketEdit(self, eventData):
designer = markdown_contents.get("Designer")

labels = issue["labels"] # Assuming this contains the list of labels
desired_labels = ['C4GT Coding', 'C4GT Advisory', 'C4GT Mentorship', 'C4GT Design', 'C4GT Bounty']
desired_labels = ['C4GT Coding', 'C4GT Advisory', 'C4GT Mentorship', 'C4GT Design', 'C4GT Bounty', 'C4GT Community']
# Filter the labels to include only the desired ones
filtered_labels = [label for label in labels if label in desired_labels]
filtered_labels = []
for label in labels:
if label in desired_labels:
filtered_labels.append(label)

print('filtered labels ', filtered_labels)

category = markdown_contents.get("Category")
domain = markdown_contents.get("Domain")
Expand Down

0 comments on commit 30bb049

Please sign in to comment.