Skip to content

Commit 8f04242

Browse files
committed
do not mark as dependency for now
1 parent 777de10 commit 8f04242

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

action.yaml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -211,46 +211,46 @@ runs:
211211
fi
212212
echo "Linked ${{ steps.create_jira_issue.outputs.jira_issue_key }} to GitHub issue ${{ github.event.issue.number }}"
213213
214-
- name: "Link issue to Epic"
215-
if: ${{ env.NeedsJiraUpdate == 'true' }}
216-
id: link_to_epic
217-
shell: bash
218-
env:
219-
JIRA_USERNAME: '${{ inputs.JIRA_USERNAME }}'
220-
JIRA_API_TOKEN: '${{ inputs.JIRA_API_TOKEN }}'
221-
JIRA_AUTHORIZATION: '${{ inputs.JIRA_AUTHORIZATION }}'
222-
run: |
223-
set -eu
224-
225-
if [[ -z "${JIRA_AUTHORIZATION}" ]]; then
226-
jira_auth=$(echo -n "${JIRA_USERNAME}:${JIRA_API_TOKEN}" | base64 | tr -d '\n')
227-
else
228-
jira_auth="${JIRA_AUTHORIZATION}"
229-
fi
230-
jira_auth_header="Authorization: Basic $jira_auth"
231-
232-
echo "Linking Jira issue to epic"
233-
epic_link_body='{
234-
"type": {
235-
"name": "Dependency",
236-
"inward": "has dependency",
237-
"outward": "depends on"
238-
},
239-
"inwardIssue": {
240-
"key": "${{ inputs.JIRA_EPIC_KEY }}"
241-
},
242-
"outwardIssue": {
243-
"key": "${{ steps.create_jira_issue.outputs.jira_issue_key }}"
244-
}
245-
}'
246-
link_epic_response=$(curl --silent -w "%{http_code}" -o /tmp/link_epic_response.json -H "$jira_auth_header" -X POST -H "Content-Type: application/json" --data "${epic_link_body}" "${{ inputs.JIRA_URL }}/rest/api/2/issueLink")
247-
248-
http_status=$(tail -n1 <<< "$link_epic_response")
249-
if [[ $http_status != 2* ]]; then
250-
echo "Linking epic failed with status $http_status"
251-
exit 1
252-
fi
253-
echo "Linked jira issue ${{ steps.create_jira_issue.outputs.jira_issue_key }} to jira epic ${{ inputs.JIRA_EPIC_KEY }}"
214+
# - name: "Link issue to Epic"
215+
# if: ${{ env.NeedsJiraUpdate == 'true' }}
216+
# id: link_to_epic
217+
# shell: bash
218+
# env:
219+
# JIRA_USERNAME: '${{ inputs.JIRA_USERNAME }}'
220+
# JIRA_API_TOKEN: '${{ inputs.JIRA_API_TOKEN }}'
221+
# JIRA_AUTHORIZATION: '${{ inputs.JIRA_AUTHORIZATION }}'
222+
# run: |
223+
# set -eu
224+
#
225+
# if [[ -z "${JIRA_AUTHORIZATION}" ]]; then
226+
# jira_auth=$(echo -n "${JIRA_USERNAME}:${JIRA_API_TOKEN}" | base64 | tr -d '\n')
227+
# else
228+
# jira_auth="${JIRA_AUTHORIZATION}"
229+
# fi
230+
# jira_auth_header="Authorization: Basic $jira_auth"
231+
#
232+
# echo "Linking Jira issue to epic"
233+
# epic_link_body='{
234+
# "type": {
235+
# "name": "Dependency",
236+
# "inward": "has dependency",
237+
# "outward": "depends on"
238+
# },
239+
# "inwardIssue": {
240+
# "key": "${{ inputs.JIRA_EPIC_KEY }}"
241+
# },
242+
# "outwardIssue": {
243+
# "key": "${{ steps.create_jira_issue.outputs.jira_issue_key }}"
244+
# }
245+
# }'
246+
# link_epic_response=$(curl --silent -w "%{http_code}" -o /tmp/link_epic_response.json -H "$jira_auth_header" -X POST -H "Content-Type: application/json" --data "${epic_link_body}" "${{ inputs.JIRA_URL }}/rest/api/2/issueLink")
247+
#
248+
# http_status=$(tail -n1 <<< "$link_epic_response")
249+
# if [[ $http_status != 2* ]]; then
250+
# echo "Linking epic failed with status $http_status"
251+
# exit 1
252+
# fi
253+
# echo "Linked jira issue ${{ steps.create_jira_issue.outputs.jira_issue_key }} to jira epic ${{ inputs.JIRA_EPIC_KEY }}"
254254

255255
- name: Adding label to GitHub issue
256256
if: ${{ env.NeedsJiraUpdate == 'true' }}

0 commit comments

Comments
 (0)