Skip to content

Commit be5d7c7

Browse files
authored
Merge pull request #36208 from github/repo-sync
Repo sync
2 parents 308b928 + e582062 commit be5d7c7

File tree

48 files changed

+54
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+54
-107
lines changed

content/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/using-your-github-profile-to-enhance-your-resume.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ If you want to improve your profile even more, incorporate these practices into
109109

110110
## Further reading
111111

112-
* [AUTOTITLE](/copilot/copilot-chat-cookbook/refactoring-code/improving-code-readability-and-maintainability)
112+
* [AUTOTITLE](/copilot/example-prompts-for-github-copilot-chat/refactoring-code/improving-code-readability-and-maintainability)

content/admin/managing-iam/configuring-authentication-for-enterprise-managed-users/configuring-saml-single-sign-on-for-enterprise-managed-users.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ To configure SAML SSO for your {% data variables.enterprise.prodname_emu_enterpr
9696

9797
After you configure SAML SSO for {% data variables.product.prodname_emus %} on your IdP, you can configure your enterprise on {% data variables.product.github %}.
9898

99-
After the initial configuration of SAML SSO, the only setting you can update on {% data variables.product.github %} for your existing SAML configuration is the SAML certificate. If you need to update the sign-on URL or issuer URL, you must first disable SAML SSO, then reconfigure SAML SSO with the new settings. For more information, see [AUTOTITLE](/admin/identity-and-access-management/configuring-authentication-for-enterprise-managed-users/disabling-authentication-for-enterprise-managed-users).
99+
After the initial configuration of SAML SSO, the only setting you can update on {% data variables.product.github %} for your existing SAML configuration is the SAML certificate, which can be done by any member with the enterprise owner role. If you need to update the sign-on URL or issuer URL, you must first disable SAML SSO, then reconfigure SAML SSO with the new settings. For more information, see [AUTOTITLE](/admin/identity-and-access-management/configuring-authentication-for-enterprise-managed-users/disabling-authentication-for-enterprise-managed-users).
100100

101101
{% data reusables.emus.sign-in-as-setup-user %}
102102

content/copilot/copilot-chat-cookbook/debugging-errors/debugging-invalid-json.md renamed to content/copilot/example-prompts-for-github-copilot-chat/debugging-errors/debugging-invalid-json.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Debugging invalid JSON
33
shortTitle: Debug invalid JSON
44
intro: '{% data variables.product.prodname_copilot_chat_short %} can identify and resolve syntax errors or structural issues in JSON data.'
5-
redirect_from:
6-
- /copilot/example-prompts-for-github-copilot-chat/debugging-errors/debugging-invalid-json
75
versions:
86
feature: copilot
97
category:
@@ -54,7 +52,7 @@ Below is the JSON data that caused the error:
5452

5553
{% data reusables.copilot.example-prompts.response-is-an-example %}
5654

57-
{% data variables.product.prodname_copilot_short %} might suggest that your JSON is invalid because it is missing a closing quote for the `conditions` value. Here is the corrected JSON:
55+
{% data variables.product.prodname_copilot_short %} might suggest that your JSON is invalid because it's missing a closing quote for the `conditions` value. Here is the corrected JSON:
5856

5957
```json
6058
{

content/copilot/copilot-chat-cookbook/debugging-errors/handling-api-rate-limits.md renamed to content/copilot/example-prompts-for-github-copilot-chat/debugging-errors/handling-api-rate-limits.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Handling API rate limits
33
shortTitle: Handle API rate limits
44
intro: '{% data variables.product.prodname_copilot_chat_short %} can help handle API rate limits by suggesting code that detects implements retry logic.'
5-
redirect_from:
6-
- /copilot/example-prompts-for-github-copilot-chat/debugging-errors/handling-api-rate-limits
75
versions:
86
feature: copilot
97
category:
@@ -34,7 +32,7 @@ def get_weather():
3432
city = request.args.get('city')
3533
# Simulate an API request to the external weather service
3634
response = requests.get(WEATHER_API_URL, params={"city": city})
37-
weather_data = response.json()
35+
weather_data = response.json()
3836

3937
return weather_data
4038
```

content/copilot/copilot-chat-cookbook/debugging-errors/index.md renamed to content/copilot/example-prompts-for-github-copilot-chat/debugging-errors/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Debugging errors
33
intro: 'Discover ways that you can use {% data variables.product.prodname_copilot %} to debug errors during development.'
4-
redirect_from:
5-
- /copilot/example-prompts-for-github-copilot-chat/debugging-errors
64
versions:
75
feature: copilot
86
topics:

content/copilot/copilot-chat-cookbook/documenting-code/documenting-legacy-code.md renamed to content/copilot/example-prompts-for-github-copilot-chat/documenting-code/documenting-legacy-code.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: 'Documenting legacy code'
33
shortTitle: Document legacy code
44
intro: '{% data variables.product.prodname_copilot_chat_short %} can help with documenting legacy code.'
5-
redirect_from:
6-
- /copilot/example-prompts-for-github-copilot-chat/documenting-code/documenting-legacy-code
75
versions:
86
feature: copilot
97
category:
@@ -61,8 +59,8 @@ INSERT-AND-VALIDATE.
6159
ELSE
6260
EXEC SQL ROLLBACK END-EXEC
6361
SET FAILED TO TRUE
64-
STRING "DB Error: " SQLCODE
65-
DELIMITED BY SIZE
62+
STRING "DB Error: " SQLCODE
63+
DELIMITED BY SIZE
6664
INTO WS-ERROR-MSG
6765
DISPLAY WS-ERROR-MSG
6866
END-IF
@@ -136,8 +134,8 @@ For example:
136134
ELSE
137135
EXEC SQL ROLLBACK END-EXEC *> Rollback if failed
138136
SET FAILED TO TRUE
139-
STRING "DB Error: " SQLCODE
140-
DELIMITED BY SIZE
137+
STRING "DB Error: " SQLCODE
138+
DELIMITED BY SIZE
141139
INTO WS-ERROR-MSG
142140
DISPLAY WS-ERROR-MSG
143141
END-IF

content/copilot/copilot-chat-cookbook/documenting-code/explaining-complex-algorithms-or-logic.md renamed to content/copilot/example-prompts-for-github-copilot-chat/documenting-code/explaining-complex-algorithms-or-logic.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: 'Explaining complex algorithms or logic'
33
shortTitle: Explain complex logic
44
intro: '{% data variables.product.prodname_copilot_chat_short %} can help add clear and concise documentation on complex algorithms or logic.'
5-
redirect_from:
6-
- /copilot/example-prompts-for-github-copilot-chat/documenting-code/explaining-complex-algorithms-or-logic
75
versions:
86
feature: copilot
97
category:

content/copilot/copilot-chat-cookbook/documenting-code/explaining-legacy-code.md renamed to content/copilot/example-prompts-for-github-copilot-chat/documenting-code/explaining-legacy-code.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: 'Explaining legacy code'
33
shortTitle: Explain legacy code
44
intro: '{% data variables.product.prodname_copilot_chat_short %} can help with explaining unfamiliar code.'
5-
redirect_from:
6-
- /copilot/example-prompts-for-github-copilot-chat/documenting-code/explaining-legacy-code
75
versions:
86
feature: copilot
97
category:
@@ -62,8 +60,8 @@ INSERT-AND-VALIDATE.
6260
ELSE
6361
EXEC SQL ROLLBACK END-EXEC
6462
SET FAILED TO TRUE
65-
STRING "DB Error: " SQLCODE
66-
DELIMITED BY SIZE
63+
STRING "DB Error: " SQLCODE
64+
DELIMITED BY SIZE
6765
INTO WS-ERROR-MSG
6866
DISPLAY WS-ERROR-MSG
6967
END-IF

content/copilot/copilot-chat-cookbook/documenting-code/index.md renamed to content/copilot/example-prompts-for-github-copilot-chat/documenting-code/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Documenting code
33
intro: 'Discover ways that you can use {% data variables.product.prodname_copilot_chat %} to document your code.'
4-
redirect_from:
5-
- /copilot/example-prompts-for-github-copilot-chat/documenting-code
64
versions:
75
feature: copilot
86
topics:

content/copilot/copilot-chat-cookbook/documenting-code/syncing-documentation-with-code-changes.md renamed to content/copilot/example-prompts-for-github-copilot-chat/documenting-code/syncing-documentation-with-code-changes.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: 'Syncing documentation with code changes'
33
shortTitle: Sync documentation
44
intro: '{% data variables.product.prodname_copilot_chat_short %} can help with keeping code documentation up-to-date.'
5-
redirect_from:
6-
- /copilot/example-prompts-for-github-copilot-chat/documenting-code/syncing-documentation-with-code-changes
75
versions:
86
feature: copilot
97
category:
@@ -24,14 +22,14 @@ It can be difficult to keep documentation up to date with changes to code. Howev
2422
```typescript
2523
/**
2624
* Retrieves all products belonging to a specific category.
27-
*
25+
*
2826
* @param categoryId - The unique identifier of the product category
2927
* @returns Promise that resolves to an array of Product objects
30-
*
28+
*
3129
* @example
3230
* const products = await getByCategoryName(5);
3331
* // Returns: [{id: 1, name: "Product 1", categoryId: 5}, ...]
34-
*
32+
*
3533
* @throws {PrismaClientKnownRequestError} If database query fails
3634
* @see {@link https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#findmany}
3735
*/
@@ -67,16 +65,16 @@ For example:
6765
```typescript
6866
/**
6967
* Retrieves all products belonging to a specific category with pagination and recent reviews.
70-
*
68+
*
7169
* @param categoryId - The unique identifier of the product category
7270
* @param page - The page number for pagination (default: 1)
7371
* @param pageSize - Number of products per page (default: 10)
7472
* @returns Promise that resolves to an array of Product objects with their 5 most recent reviews
75-
*
73+
*
7674
* @example
7775
* const products = await getByCategoryName(5, 2, 20);
7876
* // Returns: [{id: 1, name: "Product 1", categoryId: 5, reviews: [...5 recent reviews]}, ...]
79-
*
77+
*
8078
* @throws {PrismaClientKnownRequestError} If database query fails
8179
* @see {@link https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#findmany}
8280
*/

0 commit comments

Comments
 (0)