Skip to content

Commit 64d14ea

Browse files
authored
Merge branch 'github:main' into main
2 parents 66bb9af + 867e093 commit 64d14ea

29 files changed

+427
-667
lines changed

.github/workflows/codeowners-legal.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ name: Codeowners - Legal
66

77
on:
88
workflow_dispatch:
9+
pull_request:
10+
types:
11+
- edited
12+
- opened
13+
- ready_for_review
14+
- reopened
15+
- synchronize
16+
paths:
17+
- 'content/**'
918

1019
permissions:
1120
contents: read
@@ -19,40 +28,31 @@ jobs:
1928
github.event.pull_request.head.ref != 'repo-sync' }}
2029
runs-on: ubuntu-latest
2130
steps:
22-
- name: Get files changed
23-
uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd
24-
id: filter
25-
with:
26-
# Base branch used to get changed files
27-
base: 'main'
28-
29-
# Enables setting an output in the format in `${FILTER_NAME}_files
30-
# with the names of the matching files formatted as JSON array
31-
list-files: json
32-
33-
# Returns list of changed files matching each filter
34-
filters: |
35-
rai:
36-
- 'content/**'
37-
3831
- name: Check out repo
3932
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
4033

34+
- name: Get changed files
35+
id: changed-files
36+
uses: tj-actions/changed-files@40526807ee1e208a1a8c1bbe6bd2d1b044ef6368 # v40.0.2
37+
with:
38+
files: 'content/**'
39+
output_renamed_files_as_deleted_and_added: true
40+
4141
- name: Set up Node and dependencies
42+
if: steps.changed-files.outputs.any_changed == 'true'
4243
uses: ./.github/actions/node-npm-setup
4344

4445
- name: Check content type
46+
if: steps.changed-files.outputs.any_changed == 'true'
4547
id: checkContentType
4648
run: npm run check-content-type
4749
env:
48-
FILE_PATHS_CONTENT_TYPES: ${{ steps.filter.outputs.rai_files }}
50+
# all_changed_files does not include deleted files
51+
CHANGED_FILE_PATHS: ${{ steps.changed-files.outputs.all_changed_files }}
4952
CONTENT_TYPE: 'rai'
50-
- name: Logging
51-
run: |
52-
echo ${{ steps.checkContentType.outputs.contentType }}
5353

5454
- name: Add Legal team as a reviewer
55-
if: ${{ steps.checkContentType.outputs.contentType == 'true' }}
55+
if: steps.checkContentType.outputs.containsContentType == 'true'
5656
env:
5757
# The GH CLI uses a slightly different env name for
5858
# the token than the GITHUB_TOKEN used by actions

.github/workflows/triage-unallowed-contributions.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
- name: Check out repo
2626
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
2727

28-
- name: Set up Node and dependencies
29-
uses: ./.github/actions/node-npm-setup
30-
3128
- name: Get files changed
3229
uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd
3330
id: filter
@@ -42,6 +39,10 @@ jobs:
4239
# Returns list of changed files matching each filter
4340
filters: 'src/workflows/unallowed-contribution-filters.yml'
4441

42+
- name: Set up Node and dependencies
43+
if: ${{ steps.filter.outputs.notAllowed || steps.filter.outputs.contentTypes}}
44+
uses: ./.github/actions/node-npm-setup
45+
4546
# When there are changes to files we can't accept, leave a comment
4647
# explaining this to the PR author
4748
- name: "Comment about changes we can't accept"
@@ -51,5 +52,6 @@ jobs:
5152
REPO_OWNER_AND_NAME: ${{ github.repository }}
5253
PR_NUMBER: ${{ github.event.number }}
5354
FILE_PATHS_NOT_ALLOWED: ${{ steps.filter.outputs.notAllowed_files }}
54-
FILE_PATHS_CONTENT_TYPES: ${{ steps.filter.outputs.contentTypes_files }}
55+
CHANGED_FILE_PATHS: ${{ steps.filter.outputs.contentTypes_files }}
56+
ADDED_CONTENT_FILES: ${{ steps.filter.outputs.added_files }}
5557
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

content/rest/copilot/copilot-business.md renamed to content/rest/copilot/copilot-user-management.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Copilot business
3-
shortTitle: Copilot business
4-
intro: 'Use the REST API to manage the {% data variables.product.prodname_copilot_for_business %} subscription for your organization.'
2+
title: Copilot user management
3+
shortTitle: Copilot user management
4+
intro: 'Use the REST API to manage the {% data variables.product.prodname_copilot_for_business %} or {% data variables.product.prodname_copilot_enterprise %} subscription for your organization.'
55
versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖
66
fpt: '*'
77
ghec: '*'
@@ -11,6 +11,7 @@ autogenerated: rest
1111
allowTitleToDifferFromFilename: true
1212
redirect_from:
1313
- /rest/copilot/copilot-for-business
14+
- /rest/copilot/copilot-business
1415
---
1516

1617
{% note %}

content/rest/copilot/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ topics:
99
autogenerated: rest
1010
allowTitleToDifferFromFilename: true
1111
children:
12-
- /copilot-business
12+
- /copilot-user-management
1313
versions:
1414
fpt: '*'
1515
ghec: '*'

src/github-apps/data/fpt-2022-11-28/fine-grained-pat-permissions.json

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -503,44 +503,62 @@
503503
"permissions": [
504504
{
505505
"category": "copilot",
506-
"slug": "get-copilot-business-seat-information-and-settings-for-an-organization",
507-
"subcategory": "copilot-business",
506+
"slug": "get-copilot-seat-information-and-settings-for-an-organization",
507+
"subcategory": "copilot-user-management",
508508
"verb": "get",
509509
"requestPath": "/orgs/{org}/copilot/billing",
510510
"additional-permissions": false,
511511
"access": "write"
512512
},
513513
{
514514
"category": "copilot",
515-
"slug": "list-all-copilot-business-seat-assignments-for-an-organization",
516-
"subcategory": "copilot-business",
515+
"slug": "list-all-copilot-seat-assignments-for-an-organization",
516+
"subcategory": "copilot-user-management",
517517
"verb": "get",
518518
"requestPath": "/orgs/{org}/copilot/billing/seats",
519519
"additional-permissions": false,
520520
"access": "write"
521521
},
522522
{
523523
"category": "copilot",
524-
"slug": "remove-teams-from-the-copilot-business-subscription-for-an-organization",
525-
"subcategory": "copilot-business",
524+
"slug": "add-teams-to-the-copilot-subscription-for-an-organization",
525+
"subcategory": "copilot-user-management",
526+
"verb": "post",
527+
"requestPath": "/orgs/{org}/copilot/billing/selected_teams",
528+
"additional-permissions": false,
529+
"access": "write"
530+
},
531+
{
532+
"category": "copilot",
533+
"slug": "remove-teams-from-the-copilot-subscription-for-an-organization",
534+
"subcategory": "copilot-user-management",
526535
"verb": "delete",
527536
"requestPath": "/orgs/{org}/copilot/billing/selected_teams",
528537
"additional-permissions": false,
529538
"access": "write"
530539
},
531540
{
532541
"category": "copilot",
533-
"slug": "remove-users-from-the-copilot-business-subscription-for-an-organization",
534-
"subcategory": "copilot-business",
542+
"slug": "add-users-to-the-copilot-subscription-for-an-organization",
543+
"subcategory": "copilot-user-management",
544+
"verb": "post",
545+
"requestPath": "/orgs/{org}/copilot/billing/selected_users",
546+
"additional-permissions": false,
547+
"access": "write"
548+
},
549+
{
550+
"category": "copilot",
551+
"slug": "remove-users-from-the-copilot-subscription-for-an-organization",
552+
"subcategory": "copilot-user-management",
535553
"verb": "delete",
536554
"requestPath": "/orgs/{org}/copilot/billing/selected_users",
537555
"additional-permissions": false,
538556
"access": "write"
539557
},
540558
{
541559
"category": "copilot",
542-
"slug": "get-copilot-business-seat-assignment-details-for-a-user",
543-
"subcategory": "copilot-business",
560+
"slug": "get-copilot-seat-assignment-details-for-a-user",
561+
"subcategory": "copilot-user-management",
544562
"verb": "get",
545563
"requestPath": "/orgs/{org}/members/{username}/copilot",
546564
"additional-permissions": false,

src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,32 +1831,44 @@
18311831
],
18321832
"copilot": [
18331833
{
1834-
"slug": "get-copilot-business-seat-information-and-settings-for-an-organization",
1835-
"subcategory": "copilot-business",
1834+
"slug": "get-copilot-seat-information-and-settings-for-an-organization",
1835+
"subcategory": "copilot-user-management",
18361836
"verb": "get",
18371837
"requestPath": "/orgs/{org}/copilot/billing"
18381838
},
18391839
{
1840-
"slug": "list-all-copilot-business-seat-assignments-for-an-organization",
1841-
"subcategory": "copilot-business",
1840+
"slug": "list-all-copilot-seat-assignments-for-an-organization",
1841+
"subcategory": "copilot-user-management",
18421842
"verb": "get",
18431843
"requestPath": "/orgs/{org}/copilot/billing/seats"
18441844
},
18451845
{
1846-
"slug": "remove-teams-from-the-copilot-business-subscription-for-an-organization",
1847-
"subcategory": "copilot-business",
1846+
"slug": "add-teams-to-the-copilot-subscription-for-an-organization",
1847+
"subcategory": "copilot-user-management",
1848+
"verb": "post",
1849+
"requestPath": "/orgs/{org}/copilot/billing/selected_teams"
1850+
},
1851+
{
1852+
"slug": "remove-teams-from-the-copilot-subscription-for-an-organization",
1853+
"subcategory": "copilot-user-management",
18481854
"verb": "delete",
18491855
"requestPath": "/orgs/{org}/copilot/billing/selected_teams"
18501856
},
18511857
{
1852-
"slug": "remove-users-from-the-copilot-business-subscription-for-an-organization",
1853-
"subcategory": "copilot-business",
1858+
"slug": "add-users-to-the-copilot-subscription-for-an-organization",
1859+
"subcategory": "copilot-user-management",
1860+
"verb": "post",
1861+
"requestPath": "/orgs/{org}/copilot/billing/selected_users"
1862+
},
1863+
{
1864+
"slug": "remove-users-from-the-copilot-subscription-for-an-organization",
1865+
"subcategory": "copilot-user-management",
18541866
"verb": "delete",
18551867
"requestPath": "/orgs/{org}/copilot/billing/selected_users"
18561868
},
18571869
{
1858-
"slug": "get-copilot-business-seat-assignment-details-for-a-user",
1859-
"subcategory": "copilot-business",
1870+
"slug": "get-copilot-seat-assignment-details-for-a-user",
1871+
"subcategory": "copilot-user-management",
18601872
"verb": "get",
18611873
"requestPath": "/orgs/{org}/members/{username}/copilot"
18621874
}

src/github-apps/data/fpt-2022-11-28/server-to-server-permissions.json

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,8 @@
607607
"permissions": [
608608
{
609609
"category": "copilot",
610-
"slug": "get-copilot-business-seat-information-and-settings-for-an-organization",
611-
"subcategory": "copilot-business",
610+
"slug": "get-copilot-seat-information-and-settings-for-an-organization",
611+
"subcategory": "copilot-user-management",
612612
"verb": "get",
613613
"requestPath": "/orgs/{org}/copilot/billing",
614614
"access": "write",
@@ -618,8 +618,8 @@
618618
},
619619
{
620620
"category": "copilot",
621-
"slug": "list-all-copilot-business-seat-assignments-for-an-organization",
622-
"subcategory": "copilot-business",
621+
"slug": "list-all-copilot-seat-assignments-for-an-organization",
622+
"subcategory": "copilot-user-management",
623623
"verb": "get",
624624
"requestPath": "/orgs/{org}/copilot/billing/seats",
625625
"access": "write",
@@ -629,8 +629,19 @@
629629
},
630630
{
631631
"category": "copilot",
632-
"slug": "remove-teams-from-the-copilot-business-subscription-for-an-organization",
633-
"subcategory": "copilot-business",
632+
"slug": "add-teams-to-the-copilot-subscription-for-an-organization",
633+
"subcategory": "copilot-user-management",
634+
"verb": "post",
635+
"requestPath": "/orgs/{org}/copilot/billing/selected_teams",
636+
"access": "write",
637+
"user-to-server": true,
638+
"server-to-server": true,
639+
"additional-permissions": false
640+
},
641+
{
642+
"category": "copilot",
643+
"slug": "remove-teams-from-the-copilot-subscription-for-an-organization",
644+
"subcategory": "copilot-user-management",
634645
"verb": "delete",
635646
"requestPath": "/orgs/{org}/copilot/billing/selected_teams",
636647
"access": "write",
@@ -640,8 +651,19 @@
640651
},
641652
{
642653
"category": "copilot",
643-
"slug": "remove-users-from-the-copilot-business-subscription-for-an-organization",
644-
"subcategory": "copilot-business",
654+
"slug": "add-users-to-the-copilot-subscription-for-an-organization",
655+
"subcategory": "copilot-user-management",
656+
"verb": "post",
657+
"requestPath": "/orgs/{org}/copilot/billing/selected_users",
658+
"access": "write",
659+
"user-to-server": true,
660+
"server-to-server": true,
661+
"additional-permissions": false
662+
},
663+
{
664+
"category": "copilot",
665+
"slug": "remove-users-from-the-copilot-subscription-for-an-organization",
666+
"subcategory": "copilot-user-management",
645667
"verb": "delete",
646668
"requestPath": "/orgs/{org}/copilot/billing/selected_users",
647669
"access": "write",
@@ -651,8 +673,8 @@
651673
},
652674
{
653675
"category": "copilot",
654-
"slug": "get-copilot-business-seat-assignment-details-for-a-user",
655-
"subcategory": "copilot-business",
676+
"slug": "get-copilot-seat-assignment-details-for-a-user",
677+
"subcategory": "copilot-user-management",
656678
"verb": "get",
657679
"requestPath": "/orgs/{org}/members/{username}/copilot",
658680
"access": "write",

src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,32 +1559,44 @@
15591559
],
15601560
"copilot": [
15611561
{
1562-
"slug": "get-copilot-business-seat-information-and-settings-for-an-organization",
1563-
"subcategory": "copilot-business",
1562+
"slug": "get-copilot-seat-information-and-settings-for-an-organization",
1563+
"subcategory": "copilot-user-management",
15641564
"verb": "get",
15651565
"requestPath": "/orgs/{org}/copilot/billing"
15661566
},
15671567
{
1568-
"slug": "list-all-copilot-business-seat-assignments-for-an-organization",
1569-
"subcategory": "copilot-business",
1568+
"slug": "list-all-copilot-seat-assignments-for-an-organization",
1569+
"subcategory": "copilot-user-management",
15701570
"verb": "get",
15711571
"requestPath": "/orgs/{org}/copilot/billing/seats"
15721572
},
15731573
{
1574-
"slug": "remove-teams-from-the-copilot-business-subscription-for-an-organization",
1575-
"subcategory": "copilot-business",
1574+
"slug": "add-teams-to-the-copilot-subscription-for-an-organization",
1575+
"subcategory": "copilot-user-management",
1576+
"verb": "post",
1577+
"requestPath": "/orgs/{org}/copilot/billing/selected_teams"
1578+
},
1579+
{
1580+
"slug": "remove-teams-from-the-copilot-subscription-for-an-organization",
1581+
"subcategory": "copilot-user-management",
15761582
"verb": "delete",
15771583
"requestPath": "/orgs/{org}/copilot/billing/selected_teams"
15781584
},
15791585
{
1580-
"slug": "remove-users-from-the-copilot-business-subscription-for-an-organization",
1581-
"subcategory": "copilot-business",
1586+
"slug": "add-users-to-the-copilot-subscription-for-an-organization",
1587+
"subcategory": "copilot-user-management",
1588+
"verb": "post",
1589+
"requestPath": "/orgs/{org}/copilot/billing/selected_users"
1590+
},
1591+
{
1592+
"slug": "remove-users-from-the-copilot-subscription-for-an-organization",
1593+
"subcategory": "copilot-user-management",
15821594
"verb": "delete",
15831595
"requestPath": "/orgs/{org}/copilot/billing/selected_users"
15841596
},
15851597
{
1586-
"slug": "get-copilot-business-seat-assignment-details-for-a-user",
1587-
"subcategory": "copilot-business",
1598+
"slug": "get-copilot-seat-assignment-details-for-a-user",
1599+
"subcategory": "copilot-user-management",
15881600
"verb": "get",
15891601
"requestPath": "/orgs/{org}/members/{username}/copilot"
15901602
}

0 commit comments

Comments
 (0)