v1

latestOpenAPI 3.0.02026-07-249055687.1 KB
repo-labels

Update repository label setting (beta)

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

Note that repository label settings currently only support issueRules, issueRulesPolicyDefault, licensePolicy, and recentlyPublishedThresholdMs. 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:update
put/orgs/{org_slug}/repos/labels/{label_id}/label-setting

Path parameters

org_slugstring required

The slug of the organization

label_idstring required

The ID of the label

Request body

issueRulesPolicyDefault'default' | 'low' | 'medium' | 'high'

The default security policy for the repository label

licensePolicyLicenseAllowListRequest
recentlyPublishedThresholdMsinteger nullable

The recently published package alert threshold for the repository label, in milliseconds

Response

Success

statusstring required