Fix GH api commit link (#2560)

* Update createRelease.ts

* another
This commit is contained in:
ameer2468 2024-06-20 16:47:38 +03:00 committed by GitHub
parent 47a4e9a1f7
commit 44d2d8b439
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,7 @@ export async function createModal(
type: 'plain_text',
text: 'View Commit'
},
url: `${github.REPO_API}/commit/${commit}`
url: `${github.REPO_API}/commits/${commit}`
},
text: {
type: 'mrkdwn',
@ -267,7 +267,7 @@ export async function handleSubmission(
type: 'plain_text',
text: 'View Commit'
},
url: `https://github.com/${env.GITHUB_ORG}/${env.GITHUB_REPO}/commit/${commit}`
url: `https://github.com/${env.GITHUB_ORG}/${env.GITHUB_REPO}/commits/${commit}`
}
]
}