@backstage/plugin-scaffolder-backend-module-gitlab 0.4.5-next.1 → 0.4.5-next.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @backstage/plugin-scaffolder-backend-module-gitlab
2
2
 
3
+ ## 0.4.5-next.3
4
+
5
+ ### Patch Changes
6
+
7
+ - da97131: Added test cases for gitlab:issues:create examples
8
+ - Updated dependencies
9
+ - @backstage/backend-plugin-api@0.8.0-next.3
10
+ - @backstage/backend-common@0.23.4-next.3
11
+ - @backstage/config@1.2.0
12
+ - @backstage/errors@1.2.4
13
+ - @backstage/integration@1.14.0-next.0
14
+ - @backstage/plugin-scaffolder-node@0.4.9-next.3
15
+
16
+ ## 0.4.5-next.2
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @backstage/backend-plugin-api@0.8.0-next.2
22
+ - @backstage/plugin-scaffolder-node@0.4.9-next.2
23
+ - @backstage/backend-common@0.23.4-next.2
24
+ - @backstage/integration@1.14.0-next.0
25
+ - @backstage/config@1.2.0
26
+ - @backstage/errors@1.2.4
27
+
3
28
  ## 0.4.5-next.1
4
29
 
5
30
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -828,8 +828,8 @@ const examples$7 = [
828
828
  title: "Test Issue",
829
829
  assignees: [18],
830
830
  description: "This is the description of the issue",
831
- createdAt: "2022-09-27 18:00:00.000",
832
- dueDate: "2022-09-28 12:00:00.000"
831
+ createdAt: "2022-09-27T18:00:00.000Z",
832
+ dueDate: "2022-09-28T12:00:00.000Z"
833
833
  }
834
834
  }
835
835
  ]
@@ -850,15 +850,172 @@ const examples$7 = [
850
850
  assignees: [18, 15],
851
851
  description: "This is the description of the issue",
852
852
  confidential: false,
853
- createdAt: "2022-09-27 18:00:00.000",
854
- dueDate: "2022-09-28 12:00:00.000",
855
- discussionToResolve: 1,
853
+ createdAt: "2022-09-27T18:00:00.000Z",
854
+ dueDate: "2022-09-28T12:00:00.000Z",
855
+ discussionToResolve: "1",
856
856
  epicId: 1,
857
857
  labels: "phase1:label1,phase2:label2"
858
858
  }
859
859
  }
860
860
  ]
861
861
  })
862
+ },
863
+ {
864
+ description: "Create a GitLab issue with token",
865
+ example: yaml__default.default.stringify({
866
+ steps: [
867
+ {
868
+ id: "gitlabIssue",
869
+ name: "Issues",
870
+ action: "gitlab:issues:create",
871
+ input: {
872
+ ...commonGitlabConfigExample,
873
+ projectId: 12,
874
+ title: "Test Issue",
875
+ description: "This is the description of the issue",
876
+ token: "sample token"
877
+ }
878
+ }
879
+ ]
880
+ })
881
+ },
882
+ {
883
+ description: "Create a GitLab issue with a specific milestone and weight",
884
+ example: yaml__default.default.stringify({
885
+ steps: [
886
+ {
887
+ id: "gitlabIssue",
888
+ name: "Issues",
889
+ action: "gitlab:issues:create",
890
+ input: {
891
+ ...commonGitlabConfigExample,
892
+ projectId: 12,
893
+ title: "Test Issue with Milestone",
894
+ description: "This is the description of the issue",
895
+ milestoneId: 5,
896
+ weight: 3
897
+ }
898
+ }
899
+ ]
900
+ })
901
+ },
902
+ {
903
+ description: "Create a GitLab issue of type INCIDENT",
904
+ example: yaml__default.default.stringify({
905
+ steps: [
906
+ {
907
+ id: "gitlabIssue",
908
+ name: "Issues",
909
+ action: "gitlab:issues:create",
910
+ input: {
911
+ ...commonGitlabConfigExample,
912
+ projectId: 12,
913
+ title: "Confidential Test Issue",
914
+ description: "This is the description of the issue",
915
+ issueType: "incident"
916
+ }
917
+ }
918
+ ]
919
+ })
920
+ },
921
+ {
922
+ description: "Create a GitLab issue of type TEST",
923
+ example: yaml__default.default.stringify({
924
+ steps: [
925
+ {
926
+ id: "gitlabIssue",
927
+ name: "Issues",
928
+ action: "gitlab:issues:create",
929
+ input: {
930
+ ...commonGitlabConfigExample,
931
+ projectId: 12,
932
+ title: "Confidential Test Issue",
933
+ description: "This is the description of the issue",
934
+ issueType: "test_case"
935
+ }
936
+ }
937
+ ]
938
+ })
939
+ },
940
+ {
941
+ description: "Create a GitLab issue of type TASK with assignees",
942
+ example: yaml__default.default.stringify({
943
+ steps: [
944
+ {
945
+ id: "gitlabIssue",
946
+ name: "Issues",
947
+ action: "gitlab:issues:create",
948
+ input: {
949
+ ...commonGitlabConfigExample,
950
+ projectId: 12,
951
+ title: "Confidential Test Issue",
952
+ description: "This is the description of the issue",
953
+ issueType: "task",
954
+ assignees: [18, 22]
955
+ }
956
+ }
957
+ ]
958
+ })
959
+ },
960
+ {
961
+ description: "Create a GitLab issue of type ISSUE and close it",
962
+ example: yaml__default.default.stringify({
963
+ steps: [
964
+ {
965
+ id: "gitlabIssue",
966
+ name: "Issues",
967
+ action: "gitlab:issues:create",
968
+ input: {
969
+ ...commonGitlabConfigExample,
970
+ projectId: 12,
971
+ title: "Confidential Test Issue",
972
+ description: "This is the description of the issue",
973
+ issueType: "issue",
974
+ stateEvent: "close"
975
+ }
976
+ }
977
+ ]
978
+ })
979
+ },
980
+ {
981
+ description: "Create a GitLab issue of type INCIDENT and reopen it",
982
+ example: yaml__default.default.stringify({
983
+ steps: [
984
+ {
985
+ id: "gitlabIssue",
986
+ name: "Issues",
987
+ action: "gitlab:issues:create",
988
+ input: {
989
+ ...commonGitlabConfigExample,
990
+ projectId: 12,
991
+ title: "Confidential Test Issue",
992
+ description: "This is the description of the issue",
993
+ issueType: "incident",
994
+ stateEvent: "reopen"
995
+ }
996
+ }
997
+ ]
998
+ })
999
+ },
1000
+ {
1001
+ description: "Create a GitLab issue to resolve a discussion in a merge request",
1002
+ example: yaml__default.default.stringify({
1003
+ steps: [
1004
+ {
1005
+ id: "gitlabIssue",
1006
+ name: "Issues",
1007
+ action: "gitlab:issues:create",
1008
+ input: {
1009
+ ...commonGitlabConfigExample,
1010
+ projectId: 12,
1011
+ title: "Test Issue for MR Discussion",
1012
+ description: "This is the description of the issue",
1013
+ mergeRequestToResolveDiscussionsOf: 42,
1014
+ discussionToResolve: "abc123"
1015
+ }
1016
+ }
1017
+ ]
1018
+ })
862
1019
  }
863
1020
  ];
864
1021