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 4e2ed6e commit f167dd3
Showing 1 changed file with 1 addition and 44 deletions.
45 changes: 1 addition & 44 deletions .github/workflows/create_jira_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
ISSUE_TITLE="${{ github.event.issue.title }}"
ISSUE_BODY="${{ github.event.issue.body }}"
ISSUE_TYPE="Task"
if echo "${{ join(github.event.issue.labels.*.name, '/n')}}" | grep -q '"bug"'; then
if echo "${{ join(github.event.issue.labels.*.name, '\n')}}" | grep -q '"bug"'; then
ISSUE_TYPE="Bug"
elif echo "${{ github.event.issue.labels.*.name }}" | grep -q "feature"; then
ISSUE_TYPE="Story"
Expand Down Expand Up @@ -47,46 +47,3 @@ jobs:
}
}' \
$JIRA_BASE_URL/rest/api/2/issue/
# name: Sync issues to jira
# on:
# issues:
# types: [labeled]

# jobs:
# create-task:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v2

# - name: Create Jira Issue
# env:
# 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

# curl -X POST \
# -u "${JIRA_AUTH_EMAIL}:${JIRA_API_TOKEN}" \
# -H "Content-Type: application/json" \
# -d '{
# "fields": {
# "project": {
# "key": "FT"
# },
# "summary": "$ISSUE_TITLE",
# "description": "$ISSUE_BODY",
# "issuetype": {
# "name": "Task"
# }
# }
# }' \
# $JIRA_BASE_URL/rest/api/2/issue/

0 comments on commit f167dd3

Please sign in to comment.