Closed manish-singh-bisht closed 2 months ago
@manish-singh-bisht is attempting to deploy a commit to the formbricks Team on Vercel.
A member of the Team first needs to authorize it.
Thank you for following the naming conventions for pull request titles! 🙏
Hey @manish-singh-bisht
thanks a lot for working on this and sorry for the delay in review!
Here is my feedback:
1. Lots of bot messages
As you can see here in my test issue, the bot created 19 comments:
https://github.com/jobenjada/test-ossgg/issues/5
Please make sure this doesn't happen.
I'm sorry if that wasn't clear from the ticket description, but we need this to work in PRs and not in Issues. So in the PR itself, I comment/reject This is my reason
and then the described actions happen. In a nutshell, this needs to happen:
This should also cut down a bit on the logic needed in the hook 🤓
Other than that, great work! Works very well :))
Please see Discord message, in my test repo it does not work.
Please make a video and explain how your fixes make it work as described in the comment 🙏
Thanks!!
hey @jobenjada , removed the oss label checks for the pr,your pr didn't had ossgg labels so it didnt work , now it will.
heres the updated video
/award 250
Awarding manish-singh-bisht: 250 points!
What does this PR do?
fixes #47
Technical description- since there is no persistent storage to store users whose pr is rejected , i am utilizing comment of GitHub. when /reject is executed for the first time a comment will be created "Attempted:user1". this comment is updated ,adding the new user ,every time the reject command is executed. this comment will be between the reject command and the rejection message. placement is important, as it makes it faster to catch this particular comment while looping through all the comment in the issue comment section when the assign command is executed by the user whose pr is already rejected,and is sure that this comment will be just above the first rejection message or just below the first reject command
Regex at multiple places be careful.
Screencast from 12-04-24 02:42:00 AM IST.webm
How should this be tested?
on an issue write /reject pr #prNumber message
Required
pnpm build
console.logs
git pull origin main
Appreciated