|
1 |
| -// gitlabIntegration.js |
2 |
| -import IntegrationInterface from "./contract/contract.js"; |
3 |
| -import { Gitlab } from "@gitbeaker/rest"; |
4 | 1 | import {
|
5 |
| - createResource, |
6 |
| - getAsset, |
7 |
| - getDownstreamAssets, |
8 |
| - sendSegmentEvent, |
9 |
| - getClassifications, |
10 |
| -} from "../api/index.js"; |
| 2 | + ATLAN_INSTANCE_URL, |
| 3 | + CI_COMMIT_MESSAGE, |
| 4 | + CI_COMMIT_SHA, |
| 5 | + CI_JOB_URL, |
| 6 | + CI_PROJECT_ID, |
| 7 | + CI_PROJECT_NAME, |
| 8 | + CI_PROJECT_NAMESPACE, |
| 9 | + CI_PROJECT_PATH, |
| 10 | + IGNORE_MODEL_ALIAS_MATCHING, |
| 11 | + IS_DEV, |
| 12 | + getCIMergeRequestIID, |
| 13 | +} from "../utils/get-environment-variables.js"; |
11 | 14 | import {
|
12 | 15 | auth,
|
13 |
| - getConnectorImage, |
14 | 16 | getCertificationImage,
|
| 17 | + getConnectorImage, |
15 | 18 | getGitLabEnvironments,
|
16 | 19 | truncate,
|
17 | 20 | } from "../utils/index.js";
|
18 |
| -import stringify from "json-stringify-safe"; |
19 | 21 | import {
|
20 |
| - getSetResourceOnAssetComment, |
21 |
| - getErrorResponseStatus401, |
22 |
| - getErrorResponseStatusUndefined, |
| 22 | + createResource, |
| 23 | + getAsset, |
| 24 | + getClassifications, |
| 25 | + getDownstreamAssets, |
| 26 | + sendSegmentEvent, |
| 27 | +} from "../api/index.js"; |
| 28 | +import { |
23 | 29 | getAssetInfo,
|
24 | 30 | getDownstreamTable,
|
25 |
| - getViewAssetButton, |
26 |
| - getMDCommentForModel, |
| 31 | + getErrorResponseStatus401, |
| 32 | + getErrorResponseStatusUndefined, |
27 | 33 | getMDCommentForMaterialisedView,
|
| 34 | + getMDCommentForModel, |
| 35 | + getSetResourceOnAssetComment, |
28 | 36 | getTableMD,
|
| 37 | + getViewAssetButton, |
29 | 38 | } from "../templates/gitlab-integration.js";
|
30 |
| -import { getNewModelAddedComment, getBaseComment } from "../templates/atlan.js"; |
31 |
| -import { |
32 |
| - IS_DEV, |
33 |
| - ATLAN_INSTANCE_URL, |
34 |
| - CI_PROJECT_PATH, |
35 |
| - CI_PROJECT_ID, |
36 |
| - CI_JOB_URL, |
37 |
| - IGNORE_MODEL_ALIAS_MATCHING, |
38 |
| - CI_COMMIT_MESSAGE, |
39 |
| - CI_PROJECT_NAME, |
40 |
| - CI_COMMIT_SHA, |
41 |
| - getCIMergeRequestIID, |
42 |
| - CI_PROJECT_NAMESPACE, |
43 |
| -} from "../utils/get-environment-variables.js"; |
| 39 | +import { getBaseComment, getNewModelAddedComment } from "../templates/atlan.js"; |
| 40 | + |
| 41 | +import { Gitlab } from "@gitbeaker/rest"; |
| 42 | +// gitlabIntegration.js |
| 43 | +import IntegrationInterface from "./contract/contract.js"; |
44 | 44 | import logger from "../logger/logger.js";
|
| 45 | +import stringify from "json-stringify-safe"; |
45 | 46 | const integrationName = "gitlab";
|
46 | 47 | var CI_MERGE_REQUEST_IID;
|
47 | 48 |
|
@@ -647,6 +648,8 @@ ${content}`;
|
647 | 648 | ...properties,
|
648 | 649 | gitlab_job_id: CI_JOB_URL,
|
649 | 650 | domain,
|
| 651 | + base_asset_type: "dbtModel", |
| 652 | + action_repo_name: "dbt-action" |
650 | 653 | },
|
651 | 654 | });
|
652 | 655 |
|
|
0 commit comments