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

Remove "sweep" or "sweep: " from issue title #42

Closed
wants to merge 1 commit into from

Conversation

sweep-nightly[bot]
Copy link
Contributor

@sweep-nightly sweep-nightly bot commented Jun 22, 2023

This PR addresses the issue of removing "sweep" or "sweep: " from the issue title if it exists. The changes are made in the on_ticket.py file where the issue title is processed.

A check has been added to remove "sweep" or "sweep: " from the issue title during the processing of "issues labeled" event. This ensures that the issue title is correctly formatted without any unnecessary prefixes.

Please review and provide feedback.

Fixes #24.

Copy link
Contributor Author

@sweep-nightly sweep-nightly bot left a comment

Choose a reason for hiding this comment

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

Hi there, good job on your work so far! I noticed a small issue that needs to be addressed:

  • In src/handlers/on_ticket.py, there's a misplaced code block in the function definition causing a syntax error. The block of code that modifies the title variable should be inside the function body, not in the function definition. Please move the following code block to the correct place:
title = title.replace('sweep: ', '').replace('sweep ', '') if title.lower().startswith(('sweep: ', 'sweep ')) else title

Keep up the good work!

@wwzeng1 wwzeng1 closed this Jun 23, 2023
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.

Sweep: Remove "sweep" or "sweep: " from the issue title if it exists.
1 participant