Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit 9eaac67

Browse files
committed
Handle bug template
The bug template are stripping some \n right now. Quote the variables while echoing to avoid this.
1 parent cfdbb9e commit 9eaac67

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

action.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
name: 'Sync github issues to jira'
1+
name: "Sync github issues to jira"
22
inputs:
33
webhook-url:
44
description: >
55
Jira integration webhook URL.
66
Store it as a secret as anyone who has access to it will be able to post to your Jira board.
77
required: true
88
component:
9-
description: 'Jira component to attach your issue to. This component should exists in your project.'
9+
description: "Jira component to attach your issue to. This component should exists in your project."
1010
required: false
1111
label:
12-
description: 'Label which will trigger a Jira import.'
12+
description: "Label which will trigger a Jira import."
1313
required: true
14-
default: 'jira'
14+
default: "jira"
1515

1616
runs:
1717
using: "composite"
@@ -87,8 +87,8 @@ runs:
8787
trap 'rm -rf -- "$TMPDIR"' EXIT
8888
8989
sudo apt install -y python3-mistletoe
90-
echo ${body} > $TMPDIR/body.md
91-
echo ${comment} > $TMPDIR/comment.md
90+
echo "${body}" > $TMPDIR/body.md
91+
echo "${comment}" > $TMPDIR/comment.md
9292
body=$(PYTHONPATH=/usr/share/doc/python3-mistletoe mistletoe -r examples.jira_renderer.JIRARenderer $TMPDIR/body.md)
9393
comment=$(PYTHONPATH=/usr/share/doc/python3-mistletoe mistletoe -r examples.jira_renderer.JIRARenderer $TMPDIR/comment.md)
9494
fi

0 commit comments

Comments
 (0)