Skip to content

Commit 4a63c0c

Browse files
committed
Changed setResourceOnAsset message
1 parent efdf3de commit 4a63c0c

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

adapters/templates/github-integration.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ Set your repository action secrets [here](https://github.com/${context.payload.r
2222
export function getSetResourceOnAssetComment(tableMd, setResourceFailed) {
2323
return `## 🎊 Congrats on the merge!
2424
25-
This pull request has been added as a resource to the following assets:
26-
Name | Resource set successfully
27-
--- | ---
28-
${tableMd}
29-
${setResourceFailed ? '> Seems like we were unable to set the resources for some of the assets due to insufficient permissions. To ensure that the pull request is linked as a resource, you will need to assign the right persona with requisite permissions to the API token.' : ''}
30-
`
25+
This pull request has been added as a resource to the following assets:
26+
27+
${setResourceFailed ? '> ⚠️ Seems like we were unable to set the resources for some of the assets due to insufficient permissions. To ensure that the pull request is linked as a resource, you will need to assign the right persona with requisite permissions to the API token.' : ''}
28+
29+
Name | Resource set successfully
30+
--- | ---
31+
${tableMd}
32+
`
3133
}
3234

3335
export function getAssetInfo(ATLAN_INSTANCE_URL, asset, materialisedAsset, environmentName, projectName) {

adapters/templates/gitlab-integration.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ export function getSetResourceOnAssetComment(tableMd, setResourceFailed) {
2323
return `## 🎊 Congrats on the merge!
2424
2525
This pull request has been added as a resource to the following assets:
26+
27+
${setResourceFailed ? '> ⚠️ Seems like we were unable to set the resources for some of the assets due to insufficient permissions. To ensure that the pull request is linked as a resource, you will need to assign the right persona with requisite permissions to the API token.' : ''}
28+
2629
Name | Resource set successfully
2730
--- | ---
2831
${tableMd}
29-
${setResourceFailed ? '> Seems like we were unable to set the resources for some of the assets due to insufficient permissions. To ensure that the pull request is linked as a resource, you will need to assign the right persona with requisite permissions to the API token.' : ''}
3032
`
3133
}
3234

dist/index.js

+11-7
Original file line numberDiff line numberDiff line change
@@ -25437,12 +25437,14 @@ Set your repository action secrets [here](https://github.com/${context.payload.r
2543725437
function getSetResourceOnAssetComment(tableMd, setResourceFailed) {
2543825438
return `## 🎊 Congrats on the merge!
2543925439

25440-
This pull request has been added as a resource to the following assets:
25441-
Name | Resource set successfully
25442-
--- | ---
25443-
${tableMd}
25444-
${setResourceFailed ? '> Seems like we were unable to set the resources for some of the assets due to insufficient permissions. To ensure that the pull request is linked as a resource, you will need to assign the right persona with requisite permissions to the API token.' : ''}
25445-
`
25440+
This pull request has been added as a resource to the following assets:
25441+
25442+
${setResourceFailed ? '> ⚠️ Seems like we were unable to set the resources for some of the assets due to insufficient permissions. To ensure that the pull request is linked as a resource, you will need to assign the right persona with requisite permissions to the API token.' : ''}
25443+
25444+
Name | Resource set successfully
25445+
--- | ---
25446+
${tableMd}
25447+
`
2544625448
}
2544725449

2544825450
function getAssetInfo(ATLAN_INSTANCE_URL, asset, materialisedAsset, environmentName, projectName) {
@@ -33967,10 +33969,12 @@ function gitlab_integration_getSetResourceOnAssetComment(tableMd, setResourceFai
3396733969
return `## 🎊 Congrats on the merge!
3396833970

3396933971
This pull request has been added as a resource to the following assets:
33972+
33973+
${setResourceFailed ? '> ⚠️ Seems like we were unable to set the resources for some of the assets due to insufficient permissions. To ensure that the pull request is linked as a resource, you will need to assign the right persona with requisite permissions to the API token.' : ''}
33974+
3397033975
Name | Resource set successfully
3397133976
--- | ---
3397233977
${tableMd}
33973-
${setResourceFailed ? '> Seems like we were unable to set the resources for some of the assets due to insufficient permissions. To ensure that the pull request is linked as a resource, you will need to assign the right persona with requisite permissions to the API token.' : ''}
3397433978
`
3397533979
}
3397633980

0 commit comments

Comments
 (0)