Skip to content

Commit

Permalink
changes in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yevoros committed Aug 5, 2024
1 parent 6cac362 commit 8ef65b6
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/create_jira_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
env:
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_BASE_URL: "https://droidsonroids.atlassian.net"
run: |
run: |
ISSUE_TITLE="${{ github.event.issue.title }}"
ISSUE_BODY="${{ github.event.issue.body }}"
ISSUE_TYPE="Task"
Expand All @@ -32,10 +32,10 @@ jobs:
"project": {
"key": "FT"
},
"summary": "${{ ISSUE_TITLE }}",
"description": "${{ ISSUE_BODY }}",
"summary": \"${ISSUE_TITLE}\",
"description": "${{ github.event.issue.body }}",
"issuetype": {
"name": "${{ ISSUE_TYPE }}",
"name": "Task"
}
}
}' \
Expand All @@ -58,15 +58,14 @@ jobs:
# JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
# JIRA_BASE_URL: "https://droidsonroids.atlassian.net"
# run: |
# ISSUE_TITLE="${{ github.event.issue.title }}"
# ISSUE_BODY="${{ github.event.issue.body }}"
# # ISSUE_TYPE="Task"
# # if echo "${{ github.event.issue.labels.*.name }}" | grep -q "bug"; then
# # ISSUE_TYPE="Bug"
# # elif echo "${{ github.event.issue.labels.*.name }}" | grep -q "feature"; then
# # ISSUE_TYPE="Story"
# # fi

# ISSUE_TITLE="${{ github.event.issue.title }}"
# ISSUE_BODY="${{ github.event.issue.body }}"
# # ISSUE_TYPE="Task"
# # if echo "${{ github.event.issue.labels.*.name }}" | grep -q "bug"; then
# # ISSUE_TYPE="Bug"
# # elif echo "${{ github.event.issue.labels.*.name }}" | grep -q "feature"; then
# # ISSUE_TYPE="Story"
# # fi

# curl -X POST \
# -u "${JIRA_AUTH_EMAIL}:${JIRA_API_TOKEN}" \
Expand Down

0 comments on commit 8ef65b6

Please sign in to comment.