Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add method to check if organization has projects enabled #1080

Copy link
Copy link
Closed
@Katsute

Description

@Katsute
Issue body actions

Describe the bug
A clear and concise description of what the bug is.

Trying to retrieve organization project boards when they are disabled causes a GHException.

To Reproduce
Steps to reproduce the behavior:

  1. Disable organization project boards.
  2. Use GHOrganization#listProjects()

Expected behavior
A clear and concise description of what you expected to happen.

Behavior is expected, however a boolean method would be nice.

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 1.126

Additional context
Add any other context about the problem here.

Add a new method GHOrganization#hasProjects(), similar to GHRepository#hasProjects() to check if projects are enabled.

This information can be retrieved from the organization json under the key has_organization_projects.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.