-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add commit hash to comments #675
Conversation
Can you open a pull request on your fork and link it here to prove that it works? Otherwise can you post any other proof that it works? |
Please check this PR: PhantomCracker#7 |
I don't see the commit hashes there. What are you showing with your linked pull request? I'm not asking to see the code. I'm asking to see proof that it works according to the spec. |
@pavlovcik recheck the PR please; here is also the proof of testing: |
I don't see any comments posted by the bot with the commit hashes on your fork. |
Please check the following GH action results: https://github.com/PhantomCracker/ubiquity-dollar/actions/runs/5445801433/jobs/9905580034 |
@PhantomCracker pls check this PR rndquu#20 It prints |
Thank you for feedback, work in progress! |
Hm... @rndquu i come back with different tests: I have also tried to create a new PR to test this: PhantomCracker#8 Is this the expected functionality? |
pls merge the latest |
Indeed it works! 👍 🥳 |
utils/print-deployments-logs.js
Outdated
@@ -13,7 +13,7 @@ module.exports = async ({ github, context, fs }) => { | |||
const botCommentsArray = []; | |||
|
|||
if (uniqueDeployUrl) { | |||
defaultBody = `[Deployment: ${new Date()}](${uniqueDeployUrl})`; | |||
defaultBody = `[Deployment: ${new Date()} | Commit: ${commitSha}](${uniqueDeployUrl})`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaultBody = `[Deployment: ${new Date()} | Commit: ${commitSha}](${uniqueDeployUrl})`; | |
defaultBody = `- [${commitSha}](${uniqueDeployUrl})`; |
Can you also calculate the seven letter commit SHA like how GitHub displays it? I'm unsure if they slice the end or if they calculate it differently but it should match what shows in the UI (which if I recall is seven characters- sorry I'm on my phone GitHub client now it's not easy for me to check)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I will update it
I hope you verified that the way you're deriving the seven character SHA matches what GitHub displays or ill have to revert this. |
For "dcd6a09fd116d210b173ca8569b94c8a1ab40a83" we will display dcd6a09. |
Resolves #663