Skip to content

Commit 421e35a

Browse files
committed
fix: add title attribute to policies
1 parent 447a455 commit 421e35a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/policies.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const github = require('./github')
22

33
const policies = [{
44
name: 'restrictRepoCreationGitHub',
5+
title: 'Restrict Repository Creation',
56
description: 'This policy is designed to prevent members of a GitHub organization from creating new repositories. This includes public and private repositories.',
67
technicalDetails: 'This policy will set the following values for the organization(`members_allowed_repository_creation_type=none`, `members_can_create_public_repositories=false`, `members_can_create_private_repositories=false`) at the organization level.',
78
policy: github.restrictRepoCreationGitHub

scripts/export-policies.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const { join } = require('path')
44

55
const data = policies.map(policy => {
66
return {
7+
title: policy.title,
78
name: policy.name,
89
description: policy.description,
910
technicalDetails: policy.technicalDetails

0 commit comments

Comments
 (0)