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

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,42 @@
1
1
  # @backstage/plugin-scaffolder-backend-module-gitlab
2
2
 
3
+ ## 0.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - da97131: Added test cases for gitlab:issues:create examples
8
+ - fad1b90: Allow the `createGitlabProjectVariableAction` to use oauth tokens
9
+ - aab708e: Added test cases for gitlab:issue:edit examples
10
+ - ef742dc: Added test cases for gitlab:projectAccessToken:create example
11
+ - 1ba4c2f: Added test cases for gitlab:pipeline:trigger examples
12
+ - a6603e4: Add custom action for merge request: **auto**
13
+
14
+ The **Auto** action selects the committed action between _create_ and _update_.
15
+
16
+ The **Auto** action fetches files using the **/projects/repository/tree endpoint**.
17
+ After fetching, it checks if the file exists locally and in the repository. If it does, it chooses **update**; otherwise, it chooses **create**.
18
+
19
+ - Updated dependencies
20
+ - @backstage/backend-plugin-api@0.8.0
21
+ - @backstage/backend-common@0.24.0
22
+ - @backstage/plugin-scaffolder-node@0.4.9
23
+ - @backstage/integration@1.14.0
24
+ - @backstage/config@1.2.0
25
+ - @backstage/errors@1.2.4
26
+
27
+ ## 0.4.5-next.3
28
+
29
+ ### Patch Changes
30
+
31
+ - da97131: Added test cases for gitlab:issues:create examples
32
+ - Updated dependencies
33
+ - @backstage/backend-plugin-api@0.8.0-next.3
34
+ - @backstage/backend-common@0.23.4-next.3
35
+ - @backstage/config@1.2.0
36
+ - @backstage/errors@1.2.4
37
+ - @backstage/integration@1.14.0-next.0
38
+ - @backstage/plugin-scaffolder-node@0.4.9-next.3
39
+
3
40
  ## 0.4.5-next.2
4
41
 
5
42
  ### 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