github-api icon indicating copy to clipboard operation
github-api copied to clipboard

Generate test data, create initial changes

Open km2018 opened this issue 4 years ago • 0 comments

Description

This PR aims to solve issue #1024. Aims to solve the following scenario. In cases where the Github URL contains /api/v3, getPath() assembles the URL incorrectly and duplicates /api/v3, causing a FileNotFoundException in 3 places in GHProjectCard.java: getProject(), getColumn(), and getContent(). To solve this issue, the PR removes this portion of the URL, so that it is assembled correctly.

Before submitting a PR:

  • [ ] Changes must not break binary backwards compatibility. If you are unclear on how to make the change you think is needed while maintaining backward compatibility, CONTRIBUTING.md for details.
  • [ ] Add JavaDocs and other comments as appropriate. Consider including links in comments to relevant documentation on https://docs.github.com/en/rest .
  • [ ] Add tests that cover any added or changed code. This generally requires capturing snapshot test data. See CONTRIBUTING.md for details.
  • [ ] Run mvn -D enable-ci clean install site locally. If this command doesn't succeed, your change will not pass CI.
  • [ ] Push your changes to a branch other than main. You will create your PR from that branch.

When creating a PR:

  • [x] Fill in the "Description" above with clear summary of the changes. This includes:
    • [x] If this PR fixes one or more issues, include "Fixes #" lines for each issue.
    • [ ] Provide links to relevant documentation on https://docs.github.com/en/rest where possible.
  • [ ] All lines of new code should be covered by tests as reported by code coverage. Any lines that are not covered must have PR comments explaining why they cannot be covered. For example, "Reaching this particular exception is hard and is not a particular common scenario."
  • [x] Enable "Allow edits from maintainers".

km2018 avatar Dec 08 '21 20:12 km2018