Skip to content
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

fix: fixed /stop formatting #33

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

cohow
Copy link
Contributor

@cohow cohow commented Aug 30, 2024

Resolves #32

Copy link
Member

@Keyrxng Keyrxng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @cohow

This doesn't affect the working logic that's causing the issue

https://github.com/ubiquibot/command-start-stop/blob/a094a8c683aee3b2898049fef39f429d5e312a5d/src/handlers/shared/stop.ts#L14

})?.logMessage.diff as string)

the problem is that the error is throwing the diff string which is bubbling up into the catch-all and then it's also being wrapped in a code block.

To fix the issue use logMessage.raw instead, only addCommentToIssue() should use .diff any errors should use .raw.

@cohow
Copy link
Contributor Author

cohow commented Aug 31, 2024

should be good to go now I believe

To fix the issue use logMessage.raw instead, only addCommentToIssue() should use .diff any errors should use .raw.

I'll make sure to remember that for any future issue.

Thanks!

@gentlementlegen
Copy link
Member

gentlementlegen commented Sep 1, 2024

Seems to work fine when tested on my organization: Meniole#10 (comment)

@cohow next time please provide your own tests as well.

However, the commit names do not respect Conventional Commit name, if you can please blame and rename it.

Copy link
Member

@gentlementlegen gentlementlegen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will approve when commit is renamed.

@@ -565,7 +565,7 @@ function createContext(
reviewDelayTolerance: "3 Days",
taskStaleTimeoutDuration: "30 Days",
maxConcurrentTasks: 3,
startRequiresWallet,
startRequiresWallet: false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while rebasing it seems like i merged a new commit from development branch that includes that change, i’ll revert and commit new changes soon.

@cohow
Copy link
Contributor Author

cohow commented Sep 1, 2024

@gentlementlegen requested changes have been done, sorry about the delay I fell asleep yesterday haha.

@Keyrxng
Copy link
Member

Keyrxng commented Sep 1, 2024

gentlementlegen requested changes have been done, sorry about the delay I fell asleep yesterday haha.

@cohow take a look at this cheatsheet for conventional commits. Using --no-verify when committing will bypass our checks which would highlight that your commit naming is wrong. The logic is all good though

@cohow
Copy link
Contributor Author

cohow commented Sep 1, 2024

gentlementlegen requested changes have been done, sorry about the delay I fell asleep yesterday haha.

@cohow take a look at this cheatsheet for conventional commits. Using --no-verify when committing will bypass our checks which would highlight that your commit naming is wrong. The logic is all good though

Okay I think I finally got it right this time... I forgot to add fix: before my apologies.

Interestingly though other repos like https://github.com/ubiquibot/conversation-rewards would not let me commit without a proper commit name. Would be very nice to implement across all repos.

@gentlementlegen
Copy link
Member

Supposedly the webhooks should run with husky before you commit. Maybe there is something wrong with the setup on this repo, thank you for fixing.

@Keyrxng
Copy link
Member

Keyrxng commented Sep 2, 2024

Would be very nice to implement across all repos.

I actually tested your commit title locally in this repo without using --no-verify and it complained and didn't let me commit so I'm certain it is implemented across all repos as it comes from our ts-template which basically every repo is forked from in one way or another, v strange lmk if you notice it again ty

@Keyrxng Keyrxng merged commit ddd787b into ubiquity-os-marketplace:development Sep 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Text formatting issue on /stop if the user is not assigned
3 participants