Merge pull request #15898 from backstage/freben/substr

🧹  get rid of usages of substr which is deprecated
This commit is contained in:
Fredrik Adelöw
2023-01-26 13:29:56 +01:00
committed by GitHub
18 changed files with 37 additions and 21 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ const mapSourceDetails = (buildData: BuildSummary) => {
branchName: String(buildData.branch),
commit: {
hash: String(buildData.vcs_revision),
shortHash: String(buildData.vcs_revision).substr(0, 7),
shortHash: String(buildData.vcs_revision).slice(0, 7),
committerName: buildData.committer_name,
url: commitDetails.commit_url,
},