Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yevoros committed Aug 5, 2024
1 parent 0bd0b0b commit d83990b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create_jira_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Sync issues to jira
on:
issues:
types: [labeled]
types: [opened, labeled]

jobs:
create-task:
Expand All @@ -18,9 +18,9 @@ jobs:
ISSUE_TITLE="${{ github.event.issue.title }}"
ISSUE_BODY="${{ github.event.issue.body }}"
ISSUE_TYPE="Task"
labels="${{ toJSON(github.event.issue.labels.*.name) }}"
labels="${{ join(github.event.issue.labels.*.name, ' ') }}"
echo "Labels: $labels"
if echo "$labels" | grep -q '"bug"'; then
if echo "$labels" | grep -i 'bug'; then
ISSUE_TYPE="Bug"
elif echo "${{ github.event.issue.labels.*.name }}" | grep -q "feature"; then
ISSUE_TYPE="Story"
Expand Down

0 comments on commit d83990b

Please sign in to comment.