Commit 104ae05 1 parent e066719 commit 104ae05 Copy full SHA for 104ae05
File tree 2 files changed +3
-10
lines changed
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,7 @@ class Jira {
26
26
27
27
async updateField ( issueId , data ) {
28
28
try {
29
- const array = data . split ( ',' ) ;
30
- const parsedData = array . reduce ( ( newData , item ) => {
31
- const splitItem = item . split ( ':' ) ;
32
- if ( splitItem . length === 2 ) {
33
- newData [ splitItem [ 0 ] . trim ( ) ] = splitItem [ 1 ] ;
34
- }
35
- return newData ;
36
- } , { } ) ;
29
+ const parsedData = JSON . parse ( data ) ;
37
30
return this . fetch (
38
31
"updateField" ,
39
32
{
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ async function exec () {
26
26
return
27
27
}
28
28
29
- console . log ( 'Failed to comment an issue.' )
29
+ console . log ( 'Failed to update an issue.' )
30
30
process . exit ( 78 )
31
31
} catch ( error ) {
32
32
console . error ( error )
@@ -37,7 +37,7 @@ async function exec () {
37
37
function parseArgs ( ) {
38
38
return {
39
39
issue : core . getInput ( 'issue' ) ,
40
- comment : core . getInput ( 'comment ' )
40
+ fields : core . getInput ( 'fields ' )
41
41
}
42
42
}
43
43
You can’t perform that action at this time.
0 commit comments