Skip to content

Commit 6f3a3dc

Browse files
authored
Merge pull request #45732 from github/repo-sync
Repo sync
2 parents c14044c + 0102c99 commit 6f3a3dc

9 files changed

Lines changed: 115 additions & 19 deletions

File tree

content/communities/maintaining-your-safety-on-github/blocking-a-user-from-your-personal-account.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@ After you've blocked a user, they cannot:
5353
In repositories you own, blocked users also cannot:
5454
* Open issues
5555
* Send, close, or merge pull requests
56-
* Comment on issues, pull requests, or commits
56+
* Comment on issues, pull requests, discussions, or commits
5757
* Comment on repository security advisories
5858
* Add or edit wiki pages
5959

60-
Blocking a user from a comment doesn't delete the original issue, pull request, or security advisory.
60+
Blocking a user from a comment doesn't delete the original issue, pull request, discussion, or security advisory.
6161

62-
## Blocking a user in an issue, pull request, or repository security advisory
62+
## Blocking a user in an issue, pull request, discussion, or repository security advisory
6363

6464
You must own the repository to block a user from its content.
6565

66-
1. Navigate to the issue, pull request, or repository security advisory that contains the description or comment whose author you would like to block.
66+
1. Navigate to the issue, pull request, discussion, or repository security advisory that contains the description or comment whose author you would like to block.
6767
1. In the upper-right corner of the description or comment whose author you would like to block, click {% octicon "kebab-horizontal" aria-label="Show options" %}, then click **Block user**.
6868
{% data reusables.organizations.close-all-content-when-blocking-user %}
6969
1. Optionally, add a note to describe why you blocked the user. The note will only be visible to you.

content/copilot/concepts/agents/copilot-cli/about-copilot-cli.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ When you use {% data variables.copilot.copilot_cli_short %}, {% data variables.p
204204

205205
You should therefore always keep security considerations in mind when using {% data variables.copilot.copilot_cli_short %}, just as you would when working directly with files yourself, or running commands directly in your terminal. You should always review suggested commands carefully when {% data variables.copilot.copilot_cli_short %} requests your approval.
206206

207+
### Content exclusion
208+
209+
For {% data variables.copilot.copilot_business_short %} and {% data variables.copilot.copilot_enterprise_short %} users, {% data variables.copilot.copilot_cli_short %} respects content exclusion policies configured at the enterprise, organization, and repository levels. Excluded files are not used as context. For more information, see [AUTOTITLE](/copilot/concepts/context/content-exclusion).
210+
207211
### Trusted directories
208212

209213
Trusted directories control where {% data variables.copilot.copilot_cli_short %} can read, modify, and execute files.

content/copilot/concepts/agents/github-copilot-app.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ For more detailed optimization tips, see [AUTOTITLE](/copilot/tutorials/optimize
7878

7979
To share feedback, click the **Give feedback** icon in the bottom-left corner of the app.
8080

81+
## Content exclusion
82+
83+
For {% data variables.copilot.copilot_business_short %} and {% data variables.copilot.copilot_enterprise_short %} users, the {% data variables.copilot.github_copilot_app %} respects content exclusion policies configured at the enterprise, organization, and repository levels. Excluded files are not used as context. For more information, see [AUTOTITLE](/copilot/concepts/context/content-exclusion).
84+
8185
## Public code
8286

8387
{% data variables.copilot.github_copilot_app %} may generate code that is a match or near match of publicly available code, even if the "Suggestions matching public code" policy is set to "Block." See [AUTOTITLE](/copilot/how-tos/manage-your-account/manage-policies#enabling-or-disabling-suggestions-matching-public-code).

content/copilot/concepts/context/content-exclusion.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can use content exclusion to configure {% data variables.product.prodname_co
1919

2020
* Inline suggestions will not be available in the affected files.
2121
* The content in affected files will not inform inline suggestions in other files.
22-
* The content in affected files will not inform {% data variables.copilot.copilot_chat %}'s responses.
22+
* The content in affected files will not inform {% data variables.product.prodname_copilot_short %}'s responses.
2323
* Affected files will not be reviewed in a {% data variables.product.prodname_copilot_short %} code review.
2424

2525
### Who can configure content exclusion
@@ -32,17 +32,19 @@ Repository administrators, organization owners, and enterprise owners can config
3232

3333
The {% data variables.copilot.copilot_business_short %} and {% data variables.copilot.copilot_enterprise_short %} plans provide the following level of support for content exclusion.
3434

35-
| Tool | Inline suggestions support | {% data variables.copilot.copilot_chat_short %} support |
36-
|-------------------------------------------------|:---------------------------------------------:|:----------------------------------------------------------------:|
37-
| {% data variables.product.prodname_vs %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
38-
| {% data variables.product.prodname_vscode %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
39-
| JetBrains IDEs | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
40-
| Vim/Neovim | {% octicon "check" aria-label="Supported" %} | Not applicable |
41-
| Xcode | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
42-
| Eclipse | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
43-
| Azure Data Studio | {% octicon "x" aria-label="Not supported" %} | Not applicable |
44-
| The {% data variables.product.github %} website | Not applicable | {% octicon "check" aria-label="Supported" %} |
45-
| {% data variables.product.prodname_mobile %} | Not applicable | {% octicon "check" aria-label="Supported" %} |
35+
| Tool | Inline suggestions support | Chat and agent support |
36+
|-------------------------------------------------|:---------------------------------------------:|:----------------------------------------------:|
37+
| {% data variables.product.prodname_vs %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
38+
| {% data variables.product.prodname_vscode %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
39+
| JetBrains IDEs | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
40+
| Vim/Neovim | {% octicon "check" aria-label="Supported" %} | Not applicable |
41+
| Xcode | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
42+
| Eclipse | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
43+
| Azure Data Studio | {% octicon "x" aria-label="Not supported" %} | Not applicable |
44+
| The {% data variables.product.github %} website | Not applicable | {% octicon "check" aria-label="Supported" %} |
45+
| {% data variables.product.prodname_mobile %} | Not applicable | {% octicon "check" aria-label="Supported" %} |
46+
| {% data variables.copilot.github_copilot_app %} | Not applicable | {% octicon "check" aria-label="Supported" %} |
47+
| {% data variables.copilot.copilot_cli %} | Not applicable | {% octicon "check" aria-label="Supported" %} |
4648

4749
Content exclusions also apply to {% data variables.copilot.copilot_code-review_short %} on the {% data variables.product.github %} website.
4850

content/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ category:
3131
You can use your repository settings to specify content in your repository that {% data variables.product.prodname_copilot %} should ignore.
3232

3333
> [!NOTE]
34-
> {% data variables.copilot.copilot_cli %} and Agent mode in {% data variables.copilot.copilot_chat_short %} in IDEs do not support content exclusion. For more information about these {% data variables.product.prodname_copilot_short %} features, see [AUTOTITLE](/copilot/concepts/agents/copilot-cli/about-copilot-cli) and [AUTOTITLE](/copilot/how-tos/chat-with-copilot/chat-in-ide).
34+
> Agent mode in {% data variables.copilot.copilot_chat_short %} in IDEs does not support content exclusion. For more information, see [AUTOTITLE](/copilot/how-tos/chat-with-copilot/chat-in-ide).
3535
3636
{% data reusables.repositories.navigate-to-repo %}
3737
{% data reusables.repositories.sidebar-settings %}

content/copilot/how-tos/copilot-cli/administer-copilot-cli-for-your-enterprise.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ Separately, users can also provide their own LLM keys locally. This is not contr
4949

5050
Enterprise-configured custom agents are available to use with {% data variables.copilot.copilot_cli_short %}.
5151

52+
### Content exclusion
53+
54+
Content exclusion policies configured at the enterprise, organization, and repository levels apply to {% data variables.copilot.copilot_cli_short %}. Excluded files are not used as context. For more information, see [AUTOTITLE](/copilot/concepts/context/content-exclusion).
55+
5256
### MCP server policies
5357

5458
Enterprise and organization MCP policies apply to {% data variables.copilot.copilot_cli_short %}. You can configure an MCP registry URL so developers can discover approved servers, and set an allowlist policy to restrict which MCP servers can run. For more information, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-mcp-usage/restrict-based-on-registry).
@@ -70,7 +74,6 @@ Users must have an assigned {% data variables.product.prodname_copilot %} seat t
7074
All other controls do **not** affect {% data variables.copilot.copilot_cli_short %}, notably:
7175

7276
* **IDE-specific policies**: Policies configured for specific IDEs or editor extensions
73-
* **Content exclusions**: File path-based content exclusions
7477

7578
## Why can't my developers access {% data variables.copilot.copilot_cli_short %}?
7679

content/copilot/reference/supported-surfaces-for-policies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A dedicated policy exists to enable or disable each supported feature or surface
2626
| Suggestions matching public code | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %}[^1] | {% octicon "check" aria-label="Supported" %}[^1] | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} |
2727
| MCP servers in {% data variables.product.prodname_copilot_short %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
2828
| Restrict MCP access to registry servers | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} |
29-
| Content exclusion | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
29+
| Content exclusion | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
3030
| Configure models | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} |
3131
| {% data variables.copilot.copilot_memory %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
3232

src/languages/lib/correct-translation-content.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,17 @@ export function correctTranslatedContentStrings(
11221122
}
11231123

11241124
if (context.code === 'ru') {
1125+
// configuring-custom-footers.md: the translator scrambled the sentence
1126+
// around `{% data variables.product.prodname_dotcom %} footer{% ifversion
1127+
// ghes %}, ...{% elsif ghec %}...{% endif %}`, duplicating `{% данных`
1128+
// (data) twice, merging `ifversion ghes`/`elsif ghec` into a single
1129+
// invalid `{% ghversion %}` tag, and dropping the space before the final
1130+
// `{%endif %}` (`tag "ghversion" not found`). Reconstruct the original
1131+
// ifversion/elsif/endif structure with the correct Russian prose.
1132+
content = content.replaceAll(
1133+
'{% данных {% данных variables.product.prodname_dotcom %} нижнего колонтитула {% ghversion %}, для всех пользователей и участников совместной работы на всех страницах репозитория и организации для репозиториев и организаций, принадлежащих к корпоративным variables.location.product_location_enterprise{%endif %}.',
1134+
'{% data variables.product.prodname_dotcom %} нижнего колонтитула{% ifversion ghes %}, для всех пользователей и на всех страницах {% data variables.location.product_location_enterprise %}{% elsif ghec %} для всех пользователей и участников совместной работы на всех страницах репозитория и организации для репозиториев и организаций, принадлежащих к предприятию{% endif %}.',
1135+
)
11251136
content = content.replaceAll('[«AUTOTITLE»](', '[AUTOTITLE](')
11261137
content = content.replaceAll('[АВТОЗАГОЛОВОК](', '[AUTOTITLE](')
11271138
// `[{% autoTITLE](url)` — Liquid-embedded lowercase autotitle (translator lowercased
@@ -2657,6 +2668,28 @@ export function correctTranslatedContentStrings(
26572668
content = content.replace(reorderRegex, '$1$2{% else %}$3{% endif %}')
26582669
}
26592670

2671+
// Restore a trailing `{% endif %}` that translators dropped when it was
2672+
// the very last token of the file (with no space before it in English, so
2673+
// there was nothing visually separating it from the preceding prose for
2674+
// the translator to notice and carry over). We only do this when the
2675+
// English content truly ends with an unspaced `{% endif %}` and the
2676+
// translated content is missing exactly one closer relative to its
2677+
// `ifversion`/`elsif` openers, so we don't add a spurious closer to
2678+
// content that is unrelated or already balanced.
2679+
if (englishContent) {
2680+
const englishTrimmed = englishContent.trimEnd()
2681+
if (englishTrimmed.endsWith('{% endif %}') && !/\s\{% endif %\}$/.test(englishTrimmed)) {
2682+
const contentTrimmed = content.trimEnd()
2683+
if (!contentTrimmed.endsWith('{% endif %}')) {
2684+
const openers = (contentTrimmed.match(/\{%-?\s*ifversion\b/g) || []).length
2685+
const closers = (contentTrimmed.match(/\{%-?\s*endif\b/g) || []).length
2686+
if (openers - closers === 1) {
2687+
content = `${contentTrimmed}{% endif %}\n`
2688+
}
2689+
}
2690+
}
2691+
}
2692+
26602693
// Final catch-all: earlier normalizations (e.g. space-in-braces regex) can
26612694
// recreate `{{% KEYWORD` patterns after the per-keyword fixes already ran.
26622695
// Strip the extra `{` for known Liquid tag names.

0 commit comments

Comments
 (0)