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

feat: Detect the number of issues created that have a bounty #17

Merged
merged 14 commits into from
Dec 4, 2024

Conversation

Anshgrover23
Copy link
Contributor

/claim #15
Fixes #15

@Anshgrover23
Copy link
Contributor Author

@seveibar can u please review sir.

@Anshgrover23 Anshgrover23 requested a review from seveibar December 3, 2024 04:49
Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

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

Can you demonstrate that this works and remove the package lock (we use bun in all projects)

@Anshgrover23
Copy link
Contributor Author

@seveibar added a test which show this image
For the user: Anshgrover23(which is me)
Screenshot from 2024-12-03 13-53-26
For user: seveibar(which is you sir)
Screenshot from 2024-12-03 13-54-00

@Anshgrover23 Anshgrover23 requested a review from seveibar December 3, 2024 09:28
// Function to extract bounty amount from comment body
function extractBountyAmountFromComment(
commentBody: string | undefined,
): number {
Copy link
Contributor

Choose a reason for hiding this comment

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

Import code under test, dont redefine it

Copy link
Contributor

Choose a reason for hiding this comment

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

Goes for almost this entire file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@seveibar done.

Signed-off-by: Anshgrover23 <168731971+Anshgrover23@users.noreply.github.com>
@Anshgrover23 Anshgrover23 requested a review from seveibar December 3, 2024 10:36
@seveibar
Copy link
Contributor

seveibar commented Dec 3, 2024

Your screenshot doesnt show any users that have a bounty amount greater than 0, try shibo

}

// Fetch bountied issues for a specific contributor
export async function fetchBountiedIssues(
Copy link
Contributor

Choose a reason for hiding this comment

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

Function name should match file name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@Anshgrover23
Copy link
Contributor Author

@seveibar done.
image

@Anshgrover23 Anshgrover23 requested a review from seveibar December 3, 2024 12:56
@Anshgrover23
Copy link
Contributor Author

Anshgrover23 commented Dec 3, 2024

@seveibar see more photo for reference: for user(shibo)
image
image
image


// Extract the bounty amount from the bot's comment
const amount = botComment && botComment.body ? extractBountyAmountFromComment(botComment.body) : 0
console.log(botComment?.body);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
console.log(botComment?.body);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@seveibar
Copy link
Contributor

seveibar commented Dec 3, 2024

@Anshgrover23 can you show the result of actually generating the table? It's been broken in the past by people not fully testing, i'd like to make sure it actually generates the table properly.

@Anshgrover23
Copy link
Contributor Author

@seveibar can u tell uniform streamlined way to check this? like i did not find anything in readme.md regarding this.

@Anshgrover23 can you show the result of actually generating the table? It's been broken in the past by people not fully testing, i'd like to make sure it actually generates the table properly.

@seveibar
Copy link
Contributor

seveibar commented Dec 3, 2024

bun scripts/generate-weekly-overview.ts should do it.

Remember that when you PR code, it is expected that you've run the code, never PR code you haven't run.

I've actually only ever suspended one contributor from tscircuit, and it was for not running their code and repeatedly introducing bugs. So this is a very critical/important thing to do.

@Anshgrover23 Anshgrover23 requested a review from seveibar December 3, 2024 14:18
@Anshgrover23
Copy link
Contributor Author

@seveibar Herre is the current Progress Now it is working.
image

@imrishabh18
Copy link
Member

@Anshgrover23 I don't think the data is correct, see the issues created column. It's 0 for all

@Anshgrover23
Copy link
Contributor Author

Anshgrover23 commented Dec 3, 2024

@imrishabh18 i am making fix for it
image

@Anshgrover23
Copy link
Contributor Author

Anshgrover23 commented Dec 3, 2024

@imrishabh18 @seveibar done. you can see now.

@seveibar seveibar merged commit 89d1d77 into tscircuit:main Dec 4, 2024
@Anshgrover23
Copy link
Contributor Author

@seveibar thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants