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

Commit

Permalink
Handle bug template
Browse files Browse the repository at this point in the history
The bug template are stripping some \n right now. Quote the variables
while echoing to avoid this.
  • Loading branch information
didrocks committed Jun 21, 2024
1 parent cfdbb9e commit 9eaac67
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: 'Sync github issues to jira'
name: "Sync github issues to jira"
inputs:
webhook-url:
description: >
Jira integration webhook URL.
Store it as a secret as anyone who has access to it will be able to post to your Jira board.
required: true
component:
description: 'Jira component to attach your issue to. This component should exists in your project.'
description: "Jira component to attach your issue to. This component should exists in your project."
required: false
label:
description: 'Label which will trigger a Jira import.'
description: "Label which will trigger a Jira import."
required: true
default: 'jira'
default: "jira"

runs:
using: "composite"
Expand Down Expand Up @@ -87,8 +87,8 @@ runs:
trap 'rm -rf -- "$TMPDIR"' EXIT
sudo apt install -y python3-mistletoe
echo ${body} > $TMPDIR/body.md
echo ${comment} > $TMPDIR/comment.md
echo "${body}" > $TMPDIR/body.md
echo "${comment}" > $TMPDIR/comment.md
body=$(PYTHONPATH=/usr/share/doc/python3-mistletoe mistletoe -r examples.jira_renderer.JIRARenderer $TMPDIR/body.md)
comment=$(PYTHONPATH=/usr/share/doc/python3-mistletoe mistletoe -r examples.jira_renderer.JIRARenderer $TMPDIR/comment.md)
fi
Expand Down

0 comments on commit 9eaac67

Please sign in to comment.