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 a trailing slash from getWorkflowJob #1158

Merged
merged 3 commits into from
May 28, 2021

Conversation

shuheiktgw
Copy link
Contributor

@shuheiktgw shuheiktgw commented May 27, 2021

Description

I found the request URL looks like https://api.github.com/repos/owner/repo/actions/jobs//xxx and the URL contains // between jobs and its id. I looked into it and found we need to remove a trailing slash from the getWorkflowJob method. Thank you for your review!

Currently, the API returned 404 when we use the getWorkflowJob method so I'd really appreciate it if you would review and release this change soon.

Before submitting a PR:

We love getting PRs, but we hate asking people for the same basic changes every time.

  • Push your changes to a branch other than main. Create your PR from that branch.
  • Add JavaDocs and other comments
  • Write tests that run and pass in CI. See CONTRIBUTING.md for details on how to capture snapshot data.
  • Run mvn -D enable-ci clean install site locally. If this command doesn't succeed, your change will not pass CI.

When creating a PR:

  • Fill in the "Description" above.
  • Enable "Allow edits from maintainers".

Copy link
Contributor

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Good catch, thanks!

Copy link
Member

@bitwiseman bitwiseman left a comment

Choose a reason for hiding this comment

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

@shuheiktgw
You'll need to update the test files to match this change. Otherwise looks great thanks!

@shuheiktgw
Copy link
Contributor Author

@bitwiseman Sorry for not noticing the test! I've updated it so would you review the change again?

@codecov
Copy link

codecov bot commented May 28, 2021

Codecov Report

Merging #1158 (946b4e9) into main (63b9188) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #1158   +/-   ##
=========================================
  Coverage     73.55%   73.55%           
  Complexity     1831     1831           
=========================================
  Files           185      185           
  Lines          6127     6127           
  Branches        365      365           
=========================================
  Hits           4507     4507           
  Misses         1400     1400           
  Partials        220      220           
Impacted Files Coverage Δ
src/main/java/org/kohsuke/github/GHRepository.java 67.23% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 63b9188...946b4e9. Read the comment docs.

@bitwiseman bitwiseman merged commit 1a77dd2 into hub4j:main May 28, 2021
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.

3 participants