@mattpolzin/harmony 5.4.0 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/harmony +125 -89
- package/package.json +1 -1
package/harmony
CHANGED
|
@@ -9500,7 +9500,7 @@ function AppVersion_printVersion($0) {
|
|
|
9500
9500
|
|
|
9501
9501
|
/* AppVersion.appVersion : String */
|
|
9502
9502
|
const AppVersion_appVersion = __lazy(function () {
|
|
9503
|
-
return '5.4.
|
|
9503
|
+
return '5.4.2';
|
|
9504
9504
|
});
|
|
9505
9505
|
|
|
9506
9506
|
/* Commands.Help.subcommandHelp' : String -> Doc AnsiStyle */
|
|
@@ -10851,7 +10851,7 @@ function Commands_PullRequest_with__listOpenPRs_1394($0, $1, $2, $3, $4) {
|
|
|
10851
10851
|
}
|
|
10852
10852
|
|
|
10853
10853
|
/* Commands.PullRequest.case block in case block in case block in identifyOrCreatePR,createPR */
|
|
10854
|
-
function
|
|
10854
|
+
function Commands_PullRequest_case__casex20blockx20inx20casex20blockx20inx20identifyOrCreatePRx2ccreatePR_4007($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $a, $b) {
|
|
10855
10855
|
const $1b = $1c => $1d => $1e => {
|
|
10856
10856
|
const $2d = $2e => $2f => $30 => {
|
|
10857
10857
|
const $41 = title => $42 => $43 => {
|
|
@@ -10860,11 +10860,11 @@ function Commands_PullRequest_case__casex20blockx20inx20casex20blockx20inx20iden
|
|
|
10860
10860
|
let $51;
|
|
10861
10861
|
switch($52.h) {
|
|
10862
10862
|
case 0: /* nothing */ {
|
|
10863
|
-
$51 =
|
|
10863
|
+
$51 = Commands_PullRequest_n__11124_3058_inlineDescription($0, $1, $2, $3, $4, $5, csegen_74()(), $9.a2);
|
|
10864
10864
|
break;
|
|
10865
10865
|
}
|
|
10866
10866
|
case undefined: /* just */ {
|
|
10867
|
-
$51 = $60 => $61 => Data_Promise_map_Functor_x28Promisex20x24ex29($64 => Prelude_Types_either(() => $67 => '', () => $69 => $69, $64),
|
|
10867
|
+
$51 = $60 => $61 => Data_Promise_map_Functor_x28Promisex20x24ex29($64 => Prelude_Types_either(() => $67 => '', () => $69 => $69, $64), Commands_PullRequest_n__11124_3056_editorDescription($0, $1, $2, $3, $4, $5, csegen_74()(), $52.a1, templateFilePath, $9.a2), $60, $61);
|
|
10868
10868
|
break;
|
|
10869
10869
|
}
|
|
10870
10870
|
}
|
|
@@ -10879,35 +10879,35 @@ function Commands_PullRequest_case__casex20blockx20inx20casex20blockx20inx20iden
|
|
|
10879
10879
|
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($f => $10 => $11 => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($14 => Prelude_IO_prim__putStr('What would you like the title to be?\n', $14), $f, $10, $11), $1b, $a, $b);
|
|
10880
10880
|
}
|
|
10881
10881
|
|
|
10882
|
-
/* Commands.PullRequest.
|
|
10883
|
-
function
|
|
10882
|
+
/* Commands.PullRequest.10031:2002:userNotice */
|
|
10883
|
+
function Commands_PullRequest_n__10031_2002_userNotice($0, $1, $2, $3, $4, $5, $6) {
|
|
10884
10884
|
switch($6.h) {
|
|
10885
10885
|
case 0: /* nothing */ {
|
|
10886
10886
|
switch($2.h) {
|
|
10887
10887
|
case 0: /* nil */ return 'no users';
|
|
10888
|
-
default: return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $e => $e, {a1:
|
|
10888
|
+
default: return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $e => $e, {a1: Commands_PullRequest_n__10031_1997_csv($0, $1, $2, $3, $4, $5, $2), a2: {h: 0}});
|
|
10889
10889
|
}
|
|
10890
10890
|
}
|
|
10891
|
-
case undefined: /* just */ return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $1f => $1f, {a1:
|
|
10891
|
+
case undefined: /* just */ return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $1f => $1f, {a1: Commands_PullRequest_n__10031_1997_csv($0, $1, $2, $3, $4, $5, {a1: $6.a1, a2: $2}), a2: {h: 0}});
|
|
10892
10892
|
}
|
|
10893
10893
|
}
|
|
10894
10894
|
|
|
10895
|
-
/* Commands.PullRequest.
|
|
10896
|
-
function
|
|
10895
|
+
/* Commands.PullRequest.10031:2001:teamNotice */
|
|
10896
|
+
function Commands_PullRequest_n__10031_2001_teamNotice($0, $1, $2, $3, $4, $5, $6) {
|
|
10897
10897
|
switch($6.h) {
|
|
10898
10898
|
case 0: /* nil */ return '';
|
|
10899
10899
|
case undefined: /* cons */ {
|
|
10900
10900
|
switch($6.a2.h) {
|
|
10901
|
-
case 0: /* nil */ return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $e => $e, {a1: ' and team ', a2: {a1:
|
|
10902
|
-
default: return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $23 => $23, {a1: ' and teams ', a2: {a1:
|
|
10901
|
+
case 0: /* nil */ return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $e => $e, {a1: ' and team ', a2: {a1: Commands_PullRequest_n__10031_1997_csv($0, $1, $2, $3, $4, $5, {a1: $6.a1, a2: {h: 0}}), a2: {h: 0}}});
|
|
10902
|
+
default: return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $23 => $23, {a1: ' and teams ', a2: {a1: Commands_PullRequest_n__10031_1997_csv($0, $1, $2, $3, $4, $5, $6), a2: {h: 0}}});
|
|
10903
10903
|
}
|
|
10904
10904
|
}
|
|
10905
|
-
default: return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $36 => $36, {a1: ' and teams ', a2: {a1:
|
|
10905
|
+
default: return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $36 => $36, {a1: ' and teams ', a2: {a1: Commands_PullRequest_n__10031_1997_csv($0, $1, $2, $3, $4, $5, $6), a2: {h: 0}}});
|
|
10906
10906
|
}
|
|
10907
10907
|
}
|
|
10908
10908
|
|
|
10909
|
-
/* Commands.PullRequest.
|
|
10910
|
-
function
|
|
10909
|
+
/* Commands.PullRequest.11124:3060:prepareDescriptionFile */
|
|
10910
|
+
function Commands_PullRequest_n__11124_3060_prepareDescriptionFile($0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
10911
10911
|
const $1e = $1f => {
|
|
10912
10912
|
switch($1f) {
|
|
10913
10913
|
case 0: return $6.a1.a1.a2(undefined)('');
|
|
@@ -10915,7 +10915,7 @@ function Commands_PullRequest_n__11118_3060_prepareDescriptionFile($0, $1, $2, $
|
|
|
10915
10915
|
const $38 = $39 => {
|
|
10916
10916
|
switch($39.h) {
|
|
10917
10917
|
case 0: /* Left */ return $6.a1.a1.a2(undefined)('');
|
|
10918
|
-
case 1: /* Right */ return $6.a1.a1.a2(undefined)(
|
|
10918
|
+
case 1: /* Right */ return $6.a1.a1.a2(undefined)(Data_String_Extra_join('', csegen_146(), $39.a1.a2));
|
|
10919
10919
|
}
|
|
10920
10920
|
};
|
|
10921
10921
|
return $6.a1.a2(undefined)(undefined)(System_File_ReadWrite_readFilePage($6, 0n, Data_Fuel_limit(5000n), $7))($38);
|
|
@@ -10924,55 +10924,55 @@ function Commands_PullRequest_n__11118_3060_prepareDescriptionFile($0, $1, $2, $
|
|
|
10924
10924
|
};
|
|
10925
10925
|
const $11 = $6.a1.a2(undefined)(undefined)(System_File_Meta_exists($6, $7))($1e);
|
|
10926
10926
|
const $b = $6.a1.a2(undefined)(undefined)($11);
|
|
10927
|
-
const $
|
|
10928
|
-
const $
|
|
10929
|
-
return $6.a1.a1.a1(undefined)(undefined)($
|
|
10927
|
+
const $4f = templateContents => {
|
|
10928
|
+
const $50 = Prelude_Types_foldMap_Foldable_List(csegen_51()(), $56 => $56, {a1: $8, a2: {a1: '\n', a2: {a1: templateContents, a2: {h: 0}}}});
|
|
10929
|
+
return $6.a1.a1.a1(undefined)(undefined)($68 => undefined)(System_File_ReadWrite_writeFile($6, 'pr_description.tmp.md', $50));
|
|
10930
10930
|
};
|
|
10931
|
-
return $b($
|
|
10931
|
+
return $b($4f);
|
|
10932
10932
|
}
|
|
10933
10933
|
|
|
10934
|
-
/* Commands.PullRequest.
|
|
10935
|
-
function
|
|
10934
|
+
/* Commands.PullRequest.11124:3059:prCreationUrl */
|
|
10935
|
+
function Commands_PullRequest_n__11124_3059_prCreationUrl($0, $1, $2, $3, $4, $5) {
|
|
10936
10936
|
const $6 = $5.a3;
|
|
10937
10937
|
const $8 = $5.a2;
|
|
10938
10938
|
return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $f => $f, {a1: 'https://github.com/', a2: {a1: $8, a2: {a1: '/', a2: {a1: $6, a2: {a1: '/compare/', a2: {a1: $2, a2: {a1: '?expand=1', a2: {h: 0}}}}}}}});
|
|
10939
10939
|
}
|
|
10940
10940
|
|
|
10941
|
-
/* Commands.PullRequest.
|
|
10942
|
-
function
|
|
10941
|
+
/* Commands.PullRequest.10031:2000:prComment */
|
|
10942
|
+
function Commands_PullRequest_n__10031_2000_prComment($0, $1, $2, $3, $4, $5, $6) {
|
|
10943
10943
|
return Prelude_Types_foldMap_Foldable_List(csegen_51()(), $c => $c, {a1: ':musical_note: Harmoniously requested review from ', a2: {a1: $6, a2: {a1: '.', a2: {h: 0}}}});
|
|
10944
10944
|
}
|
|
10945
10945
|
|
|
10946
|
-
/* Commands.PullRequest.
|
|
10947
|
-
function
|
|
10948
|
-
return
|
|
10946
|
+
/* Commands.PullRequest.10031:1999:namePrComment */
|
|
10947
|
+
function Commands_PullRequest_n__10031_1999_namePrComment($0, $1, $2, $3, $4, $5, $6) {
|
|
10948
|
+
return Commands_PullRequest_n__10031_2000_prComment($0, $1, $2, $3, $4, $5, Prelude_Types_foldMap_Foldable_List(csegen_51()(), $14 => $14, {a1: $6.a2, a2: {h: 0}}));
|
|
10949
10949
|
}
|
|
10950
10950
|
|
|
10951
|
-
/* Commands.PullRequest.
|
|
10952
|
-
function
|
|
10953
|
-
return
|
|
10951
|
+
/* Commands.PullRequest.10031:1998:mentionPrComment */
|
|
10952
|
+
function Commands_PullRequest_n__10031_1998_mentionPrComment($0, $1, $2, $3, $4, $5, $6) {
|
|
10953
|
+
return Commands_PullRequest_n__10031_2000_prComment($0, $1, $2, $3, $4, $5, Prelude_Types_foldMap_Foldable_List(csegen_51()(), $14 => $14, {a1: '@', a2: {a1: $6, a2: {h: 0}}}));
|
|
10954
10954
|
}
|
|
10955
10955
|
|
|
10956
|
-
/* Commands.PullRequest.
|
|
10957
|
-
function
|
|
10956
|
+
/* Commands.PullRequest.11124:3058:inlineDescription */
|
|
10957
|
+
function Commands_PullRequest_n__11124_3058_inlineDescription($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
10958
10958
|
return $6.a1.a2(undefined)(undefined)($6.a2(undefined)($16 => Prelude_IO_prim__putStr('What would you like the description to be (two blank lines to finish)?\n', $16)))($1b => $6.a1.a2(undefined)(undefined)($6.a2(undefined)($2a => Prelude_IO_prim__putStr(($7+'\n'), $2a)))($31 => $6.a1.a1.a1(undefined)(undefined)($3c => Data_String_fastUnlines({a1: $7, a2: $3c}))(Util_getManyLines($6, Data_Fuel_limit(100n)))));
|
|
10959
10959
|
}
|
|
10960
10960
|
|
|
10961
|
-
/* Commands.PullRequest.
|
|
10962
|
-
function
|
|
10961
|
+
/* Commands.PullRequest.11124:3057:getBaseBranch */
|
|
10962
|
+
function Commands_PullRequest_n__11124_3057_getBaseBranch($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
10963
10963
|
switch($3.h) {
|
|
10964
10964
|
case undefined: /* just */ return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($b => $c => $d => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($10 => Prelude_IO_prim__putStr((Prelude_Types_foldMap_Foldable_List(csegen_51()(), $19 => $19, {a1: 'Will merge into ', a2: {a1: $3.a1, a2: {a1: '.', a2: {h: 0}}}})+'\n'), $10), $b, $c, $d), $27 => $28 => $29 => Data_Promise_pure_Applicative_x28Promisex20x24ex29($3.a1, $28, $29), $6, $7);
|
|
10965
10965
|
case 0: /* nothing */ return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($32 => $33 => $34 => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($37 => Prelude_IO_prim__putStr((Prelude_Types_foldMap_Foldable_List(csegen_51()(), $40 => $40, {a1: 'What branch are you merging into (ENTER for default: ', a2: {a1: $5.a5, a2: {a1: ')?', a2: {h: 0}}}})+'\n'), $37), $32, $33, $34), $4f => $50 => $51 => Data_Promise_map_Functor_x28Promisex20x24ex29($54 => Util_Prompting_orIfEmpty({a1: $5.a5}, Data_String_trim($54)), csegen_410()(), $50, $51), $6, $7);
|
|
10966
10966
|
}
|
|
10967
10967
|
}
|
|
10968
10968
|
|
|
10969
|
-
/* Commands.PullRequest.
|
|
10970
|
-
function
|
|
10969
|
+
/* Commands.PullRequest.9793:1728:forkedReviews */
|
|
10970
|
+
function Commands_PullRequest_n__9793_1728_forkedReviews($0, $1, $2, $3) {
|
|
10971
10971
|
return FFI_Concurrency_fork(csegen_74()(), ('reviews --json '+Prelude_Show_show_Show_Integer($3.a1)));
|
|
10972
10972
|
}
|
|
10973
10973
|
|
|
10974
|
-
/* Commands.PullRequest.
|
|
10975
|
-
function
|
|
10974
|
+
/* Commands.PullRequest.9216:1183:filterString */
|
|
10975
|
+
function Commands_PullRequest_n__9216_1183_filterString($0, $1, $2, $3, $4) {
|
|
10976
10976
|
switch($4.h) {
|
|
10977
10977
|
case 0: /* nothing */ return 'none';
|
|
10978
10978
|
case undefined: /* just */ {
|
|
@@ -10984,8 +10984,8 @@ function Commands_PullRequest_n__9210_1183_filterString($0, $1, $2, $3, $4) {
|
|
|
10984
10984
|
}
|
|
10985
10985
|
}
|
|
10986
10986
|
|
|
10987
|
-
/* Commands.PullRequest.
|
|
10988
|
-
function
|
|
10987
|
+
/* Commands.PullRequest.11124:3056:editorDescription */
|
|
10988
|
+
function Commands_PullRequest_n__11124_3056_editorDescription($0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
10989
10989
|
const $1d = $1e => {
|
|
10990
10990
|
const $36 = $37 => {
|
|
10991
10991
|
switch($37) {
|
|
@@ -10995,16 +10995,16 @@ function Commands_PullRequest_n__11118_3056_editorDescription($0, $1, $2, $3, $4
|
|
|
10995
10995
|
};
|
|
10996
10996
|
return $6.a1.a2(undefined)(undefined)(System_system($6, Prelude_Types_foldMap_Foldable_List(csegen_51()(), $30 => $30, {a1: $7, a2: {a1: ' pr_description.tmp.md', a2: {h: 0}}})))($36);
|
|
10997
10997
|
};
|
|
10998
|
-
return $6.a1.a2(undefined)(undefined)(
|
|
10998
|
+
return $6.a1.a2(undefined)(undefined)(Commands_PullRequest_n__11124_3060_prepareDescriptionFile($0, $1, $2, $3, $4, $5, $6, $8, $9))($1d);
|
|
10999
10999
|
}
|
|
11000
11000
|
|
|
11001
|
-
/* Commands.PullRequest.
|
|
11002
|
-
function
|
|
11001
|
+
/* Commands.PullRequest.10031:1997:csv */
|
|
11002
|
+
function Commands_PullRequest_n__10031_1997_csv($0, $1, $2, $3, $4, $5, $6) {
|
|
11003
11003
|
return Util_renderString($5, Text_PrettyPrint_Prettyprinter_Doc_encloseSep(Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(', '), Prelude_Types_List_mapAppend({h: 0}, $16 => Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($16)), $6)));
|
|
11004
11004
|
}
|
|
11005
11005
|
|
|
11006
|
-
/* Commands.PullRequest.
|
|
11007
|
-
function
|
|
11006
|
+
/* Commands.PullRequest.11124:3055:createPR */
|
|
11007
|
+
function Commands_PullRequest_n__11124_3055_createPR($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
11008
11008
|
const $3b = $3c => $3d => $3e => {
|
|
11009
11009
|
const $4c = $4d => $4e => $4f => {
|
|
11010
11010
|
switch($4d) {
|
|
@@ -11021,23 +11021,23 @@ function Commands_PullRequest_n__11118_3055_createPR($0, $1, $2, $3, $4, $5, $6,
|
|
|
11021
11021
|
};
|
|
11022
11022
|
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($69 => $6a => FFI_Git_unpushedCommits($0, $69, $6a), $6f, $65, $66);
|
|
11023
11023
|
};
|
|
11024
|
-
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($64, $d0 => $d1 => $d2 => Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($d5 => $d6 => $d7 => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($da => Prelude_IO_prim__putStr((Prelude_Types_foldMap_Foldable_List(csegen_51()(), $e3 => $e3, {a1: 'Creating a new PR for the current branch (', a2: {a1: $2, a2: {a1: ').', a2: {h: 0}}}})+'\n'), $da), $d5, $d6, $d7), $f1 => $f2 => $f3 => Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($f6 => $f7 =>
|
|
11024
|
+
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($64, $d0 => $d1 => $d2 => Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($d5 => $d6 => $d7 => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($da => Prelude_IO_prim__putStr((Prelude_Types_foldMap_Foldable_List(csegen_51()(), $e3 => $e3, {a1: 'Creating a new PR for the current branch (', a2: {a1: $2, a2: {a1: ').', a2: {h: 0}}}})+'\n'), $da), $d5, $d6, $d7), $f1 => $f2 => $f3 => Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($f6 => $f7 => Commands_PullRequest_n__11124_3057_getBaseBranch($0, $1, $2, $3, $4, $5, $f6, $f7), baseBranch => $102 => $103 => Commands_PullRequest_case__casex20blockx20inx20casex20blockx20inx20identifyOrCreatePRx2ccreatePR_4007($0, $1, $2, $3, $4, $5, 1, 1, baseBranch, Commands_PullRequest_parseTitleAndBodyPrefix($5, $2), $102, $103), $f2, $f3), $d1, $d2), $60, $61);
|
|
11025
11025
|
}
|
|
11026
11026
|
case 0: return Data_Promise_reject('Not creating a PR (for now)...', $60, $61);
|
|
11027
11027
|
}
|
|
11028
11028
|
};
|
|
11029
|
-
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($53 => $54 =>
|
|
11029
|
+
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($53 => $54 => Commands_PullRequest_n__11124_3053_continueGivenStagedChanges($0, $1, $2, $3, $4, $5, $53, $54), $5e, $4e, $4f);
|
|
11030
11030
|
}
|
|
11031
11031
|
case 0: return Data_Promise_reject('Not creating a PR (for now)...', $4e, $4f);
|
|
11032
11032
|
}
|
|
11033
11033
|
};
|
|
11034
|
-
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($41 => $42 =>
|
|
11034
|
+
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($41 => $42 => Commands_PullRequest_n__11124_3054_continueGivenUncommittedChanges($0, $1, $2, $3, $4, $5, $41, $42), $4c, $3d, $3e);
|
|
11035
11035
|
};
|
|
11036
11036
|
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($a => $b => Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($e => $f => FFI_Git_remoteTrackingBranch($0, $e, $f), $15 => Util_whenNothing(csegen_66()(), $15, $1c => $1d => Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($20 => $21 => $22 => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($25 => Prelude_IO_prim__putStr('Creating a new remote branch...\n', $25), $20, $21, $22), $2d => $2e => $2f => FFI_Git_pushNewBranch($0, $5.a4, $2, $2e, $2f), $1c, $1d)), $a, $b), $3b, $6, $7);
|
|
11037
11037
|
}
|
|
11038
11038
|
|
|
11039
|
-
/* Commands.PullRequest.
|
|
11040
|
-
function
|
|
11039
|
+
/* Commands.PullRequest.11124:3054:continueGivenUncommittedChanges */
|
|
11040
|
+
function Commands_PullRequest_n__11124_3054_continueGivenUncommittedChanges($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
11041
11041
|
const $10 = $11 => $12 => $13 => {
|
|
11042
11042
|
switch($11.h) {
|
|
11043
11043
|
case undefined: /* just */ return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($17 => $18 => $19 => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($1c => Prelude_IO_prim__putStr('The following files have uncommitted changes:\n', $1c), $17, $18, $19), $24 => $25 => $26 => Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($29 => $2a => $2b => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($2e => Prelude_IO_prim__putStr(($11.a1+'\n'), $2e), $29, $2a, $2b), csegen_702(), $25, $26), $12, $13);
|
|
@@ -11047,8 +11047,8 @@ function Commands_PullRequest_n__11118_3054_continueGivenUncommittedChanges($0,
|
|
|
11047
11047
|
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($a => $b => FFI_Git_uncommittedChanges($0, $a, $b), $10, $6, $7);
|
|
11048
11048
|
}
|
|
11049
11049
|
|
|
11050
|
-
/* Commands.PullRequest.
|
|
11051
|
-
function
|
|
11050
|
+
/* Commands.PullRequest.11124:3053:continueGivenStagedChanges */
|
|
11051
|
+
function Commands_PullRequest_n__11124_3053_continueGivenStagedChanges($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
11052
11052
|
const $10 = $11 => $12 => $13 => {
|
|
11053
11053
|
switch($11.h) {
|
|
11054
11054
|
case undefined: /* just */ return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($17 => $18 => $19 => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($1c => Prelude_IO_prim__putStr('The following files have staged but uncommitted changes:\n', $1c), $17, $18, $19), $24 => $25 => $26 => Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($29 => $2a => $2b => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($2e => Prelude_IO_prim__putStr(($11.a1+'\n'), $2e), $29, $2a, $2b), csegen_702(), $25, $26), $12, $13);
|
|
@@ -11065,7 +11065,7 @@ function Commands_PullRequest_rf__allReviewers($0) {
|
|
|
11065
11065
|
|
|
11066
11066
|
/* Commands.PullRequest.reviewsForPrs : Config => Octokit => List PullRequest -> Promise' (List Review) */
|
|
11067
11067
|
function Commands_PullRequest_reviewsForPrs($0, $1, $2, $3, $4) {
|
|
11068
|
-
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29(Prelude_Basics_flip(csegen_325(), csegen_624(), Prelude_Types_traverse_Traversable_List(csegen_66()(), $12 =>
|
|
11068
|
+
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29(Prelude_Basics_flip(csegen_325(), csegen_624(), Prelude_Types_traverse_Traversable_List(csegen_66()(), $12 => Commands_PullRequest_n__9793_1728_forkedReviews($0, $1, $2, $12), $2)), reviewsJson => $1a => $1b => Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29($1e => Data_Promise_either(Prelude_Types_traverse_Traversable_List(csegen_219(), $25 => Language_JSON_Accessors_array($28 => Data_Review_parseReview($28), $25), reviewsJson), $1e), reviews => $2f => $30 => Data_Promise_pure_Applicative_x28Promisex20x24ex29(Prelude_Types_join_Monad_List(reviews), $2f, $30), $1a, $1b), $3, $4);
|
|
11069
11069
|
}
|
|
11070
11070
|
|
|
11071
11071
|
/* Commands.PullRequest.reviewsByUser : Config => Octokit => String -> List PullRequest -> Promise' (List Review) */
|
|
@@ -11152,8 +11152,8 @@ function Commands_PullRequest_requestReviewers($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
|
11152
11152
|
return $7f => {
|
|
11153
11153
|
switch($0.a8) {
|
|
11154
11154
|
case 0: return Data_Promise_pure_Applicative_x28Promisex20x24ex29(undefined, $7d, $7f);
|
|
11155
|
-
case 2: return FFI_GitHub_createComment($1, $0.a2, $0.a3, $2.a1,
|
|
11156
|
-
case 1: return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29(FFI_GitHub_getUser($1)(chosenUser.a1), user => $a0 => $a1 => FFI_GitHub_createComment($1, $0.a2, $0.a3, $2.a1,
|
|
11155
|
+
case 2: return FFI_GitHub_createComment($1, $0.a2, $0.a3, $2.a1, Commands_PullRequest_n__10031_1998_mentionPrComment($1, $5, $4, $3, $2, $0, chosenUser.a1), $7d, $7f);
|
|
11156
|
+
case 1: return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29(FFI_GitHub_getUser($1)(chosenUser.a1), user => $a0 => $a1 => FFI_GitHub_createComment($1, $0.a2, $0.a3, $2.a1, Commands_PullRequest_n__10031_1999_namePrComment($1, $5, $4, $3, $2, $0, user), $a0, $a1), $7d, $7f);
|
|
11157
11157
|
}
|
|
11158
11158
|
};
|
|
11159
11159
|
}
|
|
@@ -11177,11 +11177,11 @@ function Commands_PullRequest_requestReviewers($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
|
11177
11177
|
let $c0;
|
|
11178
11178
|
switch($c1) {
|
|
11179
11179
|
case 1: {
|
|
11180
|
-
$c0 = () => $c6 => $c7 => $c8 => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($cb => Prelude_IO_prim__putStr((Util_renderString($0, Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Could not pick a user from the given Team ')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('(perhaps the only option was the author of the pull request?).'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Types_foldMap_Foldable_List(csegen_51()(), $e9 => $e9, {a1: 'Requested review from ', a2: {a1:
|
|
11180
|
+
$c0 = () => $c6 => $c7 => $c8 => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($cb => Prelude_IO_prim__putStr((Util_renderString($0, Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Could not pick a user from the given Team ')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('(perhaps the only option was the author of the pull request?).'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Types_foldMap_Foldable_List(csegen_51()(), $e9 => $e9, {a1: 'Requested review from ', a2: {a1: Commands_PullRequest_n__10031_2001_teamNotice($1, $5, $4, $3, $2, $0, $53), a2: {a1: ' for the open PR ', a2: {h: 0}}}})), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Types_foldMap_Foldable_List(csegen_51()(), $102 => $102, {a1: 'for the current branch (', a2: {a1: Data_PullRequest_rf__webURI($0, $2), a2: {a1: ').', a2: {h: 0}}}})), a2: {h: 0}}}}}))+'\n'), $cb), $c6, $c7, $c8);
|
|
11181
11181
|
break;
|
|
11182
11182
|
}
|
|
11183
11183
|
case 0: {
|
|
11184
|
-
$c0 = () => $113 => $114 => $115 => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($118 => Prelude_IO_prim__putStr((Util_renderString($0, Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Types_foldMap_Foldable_List(csegen_51()(), $129 => $129, {a1: 'Requested review from ', a2: {a1:
|
|
11184
|
+
$c0 = () => $113 => $114 => $115 => Data_Promise_liftIO_HasIO_x28Promisex20x24ex29($118 => Prelude_IO_prim__putStr((Util_renderString($0, Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Types_foldMap_Foldable_List(csegen_51()(), $129 => $129, {a1: 'Requested review from ', a2: {a1: Commands_PullRequest_n__10031_2002_userNotice($1, $5, $4, $3, $2, $0, chosenUser), a2: {a1: Commands_PullRequest_n__10031_2001_teamNotice($1, $5, $4, $3, $2, $0, $53), a2: {a1: ' for the open PR ', a2: {h: 0}}}}})), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Types_foldMap_Foldable_List(csegen_51()(), $14c => $14c, {a1: 'for the current branch (', a2: {a1: Data_PullRequest_rf__webURI($0, $2), a2: {a1: ').', a2: {h: 0}}}})), a2: {h: 0}}}))+'\n'), $118), $113, $114, $115);
|
|
11185
11185
|
break;
|
|
11186
11186
|
}
|
|
11187
11187
|
}
|
|
@@ -11255,8 +11255,8 @@ function Commands_PullRequest_identifyOrCreatePR($0, $1, $2, $3, $4, $5, $6, $7)
|
|
|
11255
11255
|
return $21 => {
|
|
11256
11256
|
const $2a = $2b => $2c => $2d => {
|
|
11257
11257
|
switch($2b) {
|
|
11258
|
-
case 1: return Data_Promise_map_Functor_x28Promisex20x24ex29($31 => ({h: 0 /* Actual */, a1: 1, a2: $31}), $35 => $36 =>
|
|
11259
|
-
case 0: return Data_Promise_pure_Applicative_x28Promisex20x24ex29({h: 1 /* Hypothetical */, a1:
|
|
11258
|
+
case 1: return Data_Promise_map_Functor_x28Promisex20x24ex29($31 => ({h: 0 /* Actual */, a1: 1, a2: $31}), $35 => $36 => Commands_PullRequest_n__11124_3055_createPR($1, $2, $5, $4, $3, $0, $35, $36), $2c, $2d);
|
|
11259
|
+
case 0: return Data_Promise_pure_Applicative_x28Promisex20x24ex29({h: 1 /* Hypothetical */, a1: Commands_PullRequest_n__11124_3059_prCreationUrl($1, $2, $5, $4, $3, $0)}, $2c, $2d);
|
|
11260
11260
|
}
|
|
11261
11261
|
};
|
|
11262
11262
|
return Data_Promise_x3ex3ex3d_Monad_x28Promisex20x24ex29(System_File_Meta_isTTY(csegen_74()(), System_File_Virtual_stdout()), $2a, $13, $21);
|
|
@@ -11270,7 +11270,7 @@ function Commands_PullRequest_identifyOrCreatePR($0, $1, $2, $3, $4, $5, $6, $7)
|
|
|
11270
11270
|
|
|
11271
11271
|
/* Commands.PullRequest.forkedPRs : Maybe GitHubPRState -> Nat -> Nat -> Nat -> () -> Promise' Future */
|
|
11272
11272
|
function Commands_PullRequest_forkedPRs($0, $1, $2, $3, $4) {
|
|
11273
|
-
return FFI_Concurrency_fork(csegen_74()(), Prelude_Types_foldMap_Foldable_List(csegen_51()(), $f => $f, {a1: 'pulls --json ', a2: {a1:
|
|
11273
|
+
return FFI_Concurrency_fork(csegen_74()(), Prelude_Types_foldMap_Foldable_List(csegen_51()(), $f => $f, {a1: 'pulls --json ', a2: {a1: Commands_PullRequest_n__9216_1183_filterString($3, $4, $2, $1, $0), a2: {a1: ' ', a2: {a1: Prelude_Show_show_Show_Nat($1), a2: {a1: ' ', a2: {a1: Prelude_Show_show_Show_Nat($2), a2: {h: 0}}}}}}}));
|
|
11274
11274
|
}
|
|
11275
11275
|
|
|
11276
11276
|
/* Commands.PullRequest.empty : PRHistory */
|
|
@@ -11293,18 +11293,18 @@ function Commands_PullRequest_combined($0) {
|
|
|
11293
11293
|
return Prelude_Types_List_tailRecAppend($0.a1, $0.a2);
|
|
11294
11294
|
}
|
|
11295
11295
|
|
|
11296
|
-
/* Util.Github.2647:
|
|
11297
|
-
const
|
|
11298
|
-
return {a1: 1, a2: {h: 0}};
|
|
11296
|
+
/* Util.Github.2647:829:startOver */
|
|
11297
|
+
const Util_Github_n__2647_829_startOver = __lazy(function () {
|
|
11298
|
+
return {a1: {h: 1 /* 2647:825:StartOver */}, a2: {h: 0}};
|
|
11299
11299
|
});
|
|
11300
11300
|
|
|
11301
|
-
/* Util.Github.2647:
|
|
11302
|
-
function
|
|
11301
|
+
/* Util.Github.2647:828:guardSuccess */
|
|
11302
|
+
function Util_Github_n__2647_828_guardSuccess($0) {
|
|
11303
11303
|
switch($0.h) {
|
|
11304
11304
|
case undefined: /* cons */ {
|
|
11305
|
-
switch($0.a1) {
|
|
11306
|
-
case
|
|
11307
|
-
case
|
|
11305
|
+
switch($0.a1.h) {
|
|
11306
|
+
case 5: /* 2647:821:PostSlash */ return {a1: $0.a2};
|
|
11307
|
+
case 4: /* 2647:819:Number */ return {a1: $0.a2};
|
|
11308
11308
|
default: return {h: 0};
|
|
11309
11309
|
}
|
|
11310
11310
|
}
|
|
@@ -11312,51 +11312,87 @@ function Util_Github_n__2647_823_guardSuccess($0) {
|
|
|
11312
11312
|
}
|
|
11313
11313
|
}
|
|
11314
11314
|
|
|
11315
|
-
/* Util.Github.2647:
|
|
11316
|
-
function
|
|
11317
|
-
switch($0.
|
|
11318
|
-
case
|
|
11315
|
+
/* Util.Github.2647:827:goPrefix */
|
|
11316
|
+
function Util_Github_n__2647_827_goPrefix($0, $1) {
|
|
11317
|
+
switch($0.h) {
|
|
11318
|
+
case undefined: /* cons */ {
|
|
11319
|
+
switch($0.a1) {
|
|
11320
|
+
case 0: {
|
|
11321
|
+
switch($1) {
|
|
11322
|
+
case 'H': return {a1: {h: 3 /* 2647:823:Prefix */, a1: 1}, a2: $0.a2};
|
|
11323
|
+
default: return Util_Github_n__2647_829_startOver();
|
|
11324
|
+
}
|
|
11325
|
+
}
|
|
11326
|
+
case 1: {
|
|
11327
|
+
switch($1) {
|
|
11328
|
+
case '-': return {a1: {h: 3 /* 2647:823:Prefix */, a1: 2}, a2: $0.a2};
|
|
11329
|
+
default: return Util_Github_n__2647_829_startOver();
|
|
11330
|
+
}
|
|
11331
|
+
}
|
|
11332
|
+
case 2: {
|
|
11333
|
+
switch(Prelude_Types_isDigit($1)) {
|
|
11334
|
+
case 1: return {a1: {h: 4 /* 2647:819:Number */}, a2: {a1: $1, a2: $0.a2}};
|
|
11335
|
+
case 0: return Util_Github_n__2647_829_startOver();
|
|
11336
|
+
}
|
|
11337
|
+
}
|
|
11338
|
+
default: return Util_Github_n__2647_829_startOver();
|
|
11339
|
+
}
|
|
11340
|
+
}
|
|
11341
|
+
default: return Util_Github_n__2647_829_startOver();
|
|
11342
|
+
}
|
|
11343
|
+
}
|
|
11344
|
+
|
|
11345
|
+
/* Util.Github.2647:826:go */
|
|
11346
|
+
function Util_Github_n__2647_826_go($0, $1) {
|
|
11347
|
+
switch($0.a1.h) {
|
|
11348
|
+
case 0: /* 2647:824:Start */ {
|
|
11319
11349
|
switch($1) {
|
|
11320
|
-
case '/': return {a1: 2, a2: $0.a2};
|
|
11350
|
+
case '/': return {a1: {h: 2 /* 2647:822:PreSlash */}, a2: $0.a2};
|
|
11351
|
+
case 'G': return {a1: {h: 3 /* 2647:823:Prefix */, a1: 0}, a2: $0.a2};
|
|
11321
11352
|
default: {
|
|
11322
11353
|
switch(Prelude_Types_isDigit($1)) {
|
|
11323
|
-
case 1: return {a1:
|
|
11324
|
-
case 0: return
|
|
11354
|
+
case 1: return {a1: {h: 4 /* 2647:819:Number */}, a2: {a1: $1, a2: $0.a2}};
|
|
11355
|
+
case 0: return Util_Github_n__2647_829_startOver();
|
|
11325
11356
|
}
|
|
11326
11357
|
}
|
|
11327
11358
|
}
|
|
11328
11359
|
}
|
|
11329
|
-
case
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
case
|
|
11360
|
+
case 3: /* 2647:823:Prefix */ return Util_Github_n__2647_827_goPrefix({a1: $0.a1.a1, a2: $0.a2}, $1);
|
|
11361
|
+
case 2: /* 2647:822:PreSlash */ {
|
|
11362
|
+
switch($1) {
|
|
11363
|
+
case 'G': return {a1: {h: 3 /* 2647:823:Prefix */, a1: 0}, a2: $0.a2};
|
|
11364
|
+
default: {
|
|
11365
|
+
switch(Prelude_Types_isDigit($1)) {
|
|
11366
|
+
case 1: return {a1: {h: 4 /* 2647:819:Number */}, a2: {a1: $1, a2: $0.a2}};
|
|
11367
|
+
case 0: return Util_Github_n__2647_829_startOver();
|
|
11368
|
+
}
|
|
11369
|
+
}
|
|
11333
11370
|
}
|
|
11334
11371
|
}
|
|
11335
|
-
case 1: {
|
|
11372
|
+
case 1: /* 2647:825:StartOver */ {
|
|
11336
11373
|
switch($1) {
|
|
11337
|
-
case '/': return {a1: 2, a2: $0.a2};
|
|
11338
|
-
default: return
|
|
11374
|
+
case '/': return {a1: {h: 2 /* 2647:822:PreSlash */}, a2: $0.a2};
|
|
11375
|
+
default: return Util_Github_n__2647_829_startOver();
|
|
11339
11376
|
}
|
|
11340
11377
|
}
|
|
11341
|
-
case
|
|
11378
|
+
case 4: /* 2647:819:Number */ {
|
|
11342
11379
|
switch($1) {
|
|
11343
|
-
case '/': return {a1:
|
|
11380
|
+
case '/': return {a1: {h: 5 /* 2647:821:PostSlash */}, a2: $0.a2};
|
|
11344
11381
|
default: {
|
|
11345
11382
|
switch(Prelude_Types_isDigit($1)) {
|
|
11346
|
-
case 1: return {a1:
|
|
11347
|
-
case 0: return
|
|
11383
|
+
case 1: return {a1: {h: 4 /* 2647:819:Number */}, a2: {a1: $1, a2: $0.a2}};
|
|
11384
|
+
case 0: return Util_Github_n__2647_829_startOver();
|
|
11348
11385
|
}
|
|
11349
11386
|
}
|
|
11350
11387
|
}
|
|
11351
11388
|
}
|
|
11352
|
-
case 5: return {a1: 5, a2: $0.a2};
|
|
11353
|
-
case 4: return {a1: 4, a2: $0.a2};
|
|
11389
|
+
case 5: /* 2647:821:PostSlash */ return {a1: {h: 5 /* 2647:821:PostSlash */}, a2: $0.a2};
|
|
11354
11390
|
}
|
|
11355
11391
|
}
|
|
11356
11392
|
|
|
11357
11393
|
/* Util.Github.parseGithubIssueNumber : String -> Maybe String */
|
|
11358
11394
|
function Util_Github_parseGithubIssueNumber($0) {
|
|
11359
|
-
return Prelude_Types_map_Functor_Maybe(csegen_738(),
|
|
11395
|
+
return Prelude_Types_map_Functor_Maybe(csegen_738(), Util_Github_n__2647_828_guardSuccess(Prelude_Types_foldl_Foldable_List($9 => $a => Util_Github_n__2647_826_go($9, $a), {a1: {h: 0 /* 2647:824:Start */}, a2: {h: 0}}, Prelude_Types_fastUnpack($0))));
|
|
11360
11396
|
}
|
|
11361
11397
|
|
|
11362
11398
|
/* Util.Jira.2647:823:startOver */
|