Skip to content

Add method to check if organization has projects enabled #1080

@Katsute

Description

@Katsute

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