10000 Implement method to check, if vulnerability alerts are enabled by ihrigb · Pull Request #1923 · hub4j/github-api · GitHub
[go: up one dir, main page]

Skip to content

Implement method to check, if vulnerability alerts are enabled #1923

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

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert unintended format changes
  • Loading branch information
ihrigb committed Sep 3, 2024
commit 6ffaa175e17a0adbb35887cabe9a7e04549c6755
9 changes: 3 additions & 6 deletions src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -620,12 +620,9 @@ public Map<String, Long> listLanguages() throws IOException {
* @return the owner name
*/
public String getOwnerName() {
// consistency of the GitHub API is super... some serialized forms of
// GHRepository populate
// a full GHUser while others populate only the owner and email. This later form
// is super helpful
// in putting the login in owner.name not owner.login... thankfully we can
// easily identify this
// consistency of the GitHub API is super... some serialized forms of GHRepository populate
// a full GHUser while others populate only the owner and email. This later form is super helpful
// in putting the login in owner.name not owner.login... thankfully we can easily identify this
// second set because owner.login will be null
return owner.login != null ? owner.login : owner.name;
}
Expand Down
Loading
0