Get repository label setting (beta)

Retrieve the setting (e.g. security/license policy) for a repository label.

Note that repository label settings currently only support issueRules and issueRulesPolicyDefault. A policy is considered "active" for a given repository label if the issueRulesPolicyDefault is set, and inactive when not set. issueRules can be used to further refine the alert triage strategy.

This endpoint consumes 1 unit of your quota.

This endpoint requires the following org token scopes:

  • repo-label:list
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The slug of the organization

string
required

The ID of the label

Query Params
string
required

Setting key to query for in the repository label. Valid values include issueRules, issueRulesPolicyDefault, and licensePolicy

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json