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

[BUG]: check_runs_for_check_suite generates invalid path if a repo string is passed in #1574

Open
1 task done
zrdaley opened this issue May 22, 2023 · 1 comment
Open
1 task done
Labels
hacktoberfest Issues for participation in Hacktoberfest Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented

Comments

@zrdaley
Copy link

zrdaley commented May 22, 2023

What happened?

check_runs_for_check_suite accepts a repo name or id and then renders it to an API url using the path helper:

  1. Repo name case ❌ :
    • result: repos/:repo_nwo/check-suites/:check_suite_id/check-runs
    • expected: /repos/{owner}/{repo}/check-runs/{check_run_id}
  2. Repo ID case ✅ :
    • result: repositories/:repo_id/check-suites/:check_suite_id/check-runs
    • expected: same as above

Versions

gem "octokit", "~> 4.18.0"

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@zrdaley zrdaley added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels May 22, 2023
@kfcampbell kfcampbell added Priority: Normal Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels May 31, 2023
@nickfloyd nickfloyd added the hacktoberfest Issues for participation in Hacktoberfest label Sep 20, 2023
@DeepakRaj228
Copy link

Hi @nickfloyd and @zrdaley - I'm sorry, but I had difficulty understanding. Could you kindly clarify or provide more information? can you kindly explain what should be the expected one with the example?

I got values for both the endpoints which is mentioned

Repo name case ❌ :
current: repos/:repo_nwo/check-suites/:check_suite_id/check-runs
expected: /repos/{owner}/{repo}/check-runs/{check_run_id}

should it return list of all the check_run_ids from the check_suite from the expected endpoint?

  1. current(/check-suites/#{id}/check-runs) behaviour returns details of the check_suites
Screenshot 2023-12-20 at 11 43 48 PM
  1. Expected path which is mentioned /check-runs/{check_run_id} returns details of the check run but, we should pass the check_run_id instrad of check_suite_id
Screenshot 2023-12-20 at 11 44 02 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Issues for participation in Hacktoberfest Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

4 participants