Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Add formatting back using pandoc via docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhjp committed Nov 10, 2020
1 parent 1beb1d4 commit 5f39ec3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.14

require (
github.com/stretchr/testify v1.6.1
github.com/tomhjp/gh-action-jira v0.1.0
github.com/tomhjp/gh-action-jira v0.1.1
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/tomhjp/gh-action-jira v0.1.0 h1:7/0uQCxCT0mQ5cYGaAV0A3bGo/55jyhHaDNLvvl1qF0=
github.com/tomhjp/gh-action-jira v0.1.0/go.mod h1:ToAaW7uKSN8UP2aztAkiMl2ShRtn0n7vRkN1visxwFc=
github.com/tomhjp/gh-action-jira v0.1.1 h1:QST7UUVzfmCp3hyWsq8fiiikNmeLsjzRKte05bN1wcM=
github.com/tomhjp/gh-action-jira v0.1.1/go.mod h1:ToAaW7uKSN8UP2aztAkiMl2ShRtn0n7vRkN1visxwFc=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
Expand Down
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"os"

"github.com/tomhjp/gh-action-jira/config"
"github.com/tomhjp/gh-action-jira/format"
"github.com/tomhjp/gh-action-jira/jira"
)

Expand All @@ -32,14 +33,19 @@ func create() error {
extraFields := map[string]interface{}{}
err := json.Unmarshal([]byte(extraFieldsString), &extraFields)
if err != nil {
return fmt.Errorf("failed to deserialise extraFields: %s", err)
return fmt.Errorf("failed to deserialise extraFields: %w", err)
}

config, err := config.ReadConfig()
if err != nil {
return err
}

description, err = format.GitHubToJira(description)
if err != nil {
return fmt.Errorf("failed to convert GitHub markdown to Jira: %w", err)
}

key, err := createIssue(config, project, issueType, summary, description, extraFields)
if err != nil {
return err
Expand Down

0 comments on commit 5f39ec3

Please sign in to comment.