pomelo-io / bounties-issues-dev

Dev repo for bounties
0 stars 0 forks source link

💰 0 USDT Bounty - "Test issue for a bounty" #36

Open PomeloBounties opened 11 months ago

PomeloBounties commented 11 months ago

Bounty

Test issue for a bounty created by @YaroShkvorets on Pomelo Bounties

Summary

Solve test issue for a bounty: Implement an issue retrieval solution using the Go client library for the GitHub API to fetch and check for the existence of a GitHub issue. If the issue is not found, return an error stating that the issue was not found.

Apply

https://bounties.pomelo.io/4cd1bd24cfca

Original Issue

https://github.com/PomeloBounties/test/issues/8

Title

Test issue for a bounty

Body

Please solve this for me:

    issue, _, err := g.client.Issues.Get(ctx, owner, repo, issueNumber)
    if err != nil {
        if e, ok := err.(*github.ErrorResponse); ok {
            if e.Response.StatusCode == 404 {
                return "", "", ErrGithubIssueNotFound
            }
        }
        return "", "", err
    }

Thanks!

Reward

0.0500 USDT

Note

For technical discussion use the original issue. This issue is for tracking the bounty application and implementation progress.