Skip to content

Commit 575894c

Browse files
authored
Merge pull request #41139 from github/repo-sync
Repo sync
2 parents bf8b56c + 2830f69 commit 575894c

File tree

8 files changed

+12
-521
lines changed

8 files changed

+12
-521
lines changed

content/copilot/how-tos/configure-custom-instructions/add-repository-instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,11 @@ Once saved, these instructions will apply to the current project in Eclipse that
249249

250250
* **Repository-wide custom instructions**, which apply to all requests made in the context of a repository.
251251

252-
These are specified in a `copilot-instructions.md` file in the `.github` directory of the repository. See [Creating repository-wide custom instructions](#creating-repository-wide-custom-instructions).
252+
These are specified in a `copilot-instructions.md` file in the `.github` directory of the repository. See [Creating repository-wide custom instructions](#creating-repository-wide-custom-instructions-1).
253253

254254
* **Path-specific custom instructions**, which apply to requests made in the context of files that match a specified path.
255255

256-
These are specified in one or more `NAME.instructions.md` files within the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions).
256+
These are specified in one or more `NAME.instructions.md` files within the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions-1).
257257

258258
If the path you specify matches a file that {% data variables.product.prodname_copilot_short %} is working on, and a repository-wide custom instructions file also exists, then the instructions from both files are used.
259259

@@ -303,11 +303,11 @@ Once saved, these instructions will apply to the current project in Eclipse that
303303

304304
* **Repository-wide custom instructions** apply to all requests made in the context of a repository.
305305

306-
These are specified in a `copilot-instructions.md` file in the `.github` directory of the repository. See [Creating repository-wide custom instructions](#creating-repository-wide-custom-instructions-1).
306+
These are specified in a `copilot-instructions.md` file in the `.github` directory of the repository. See [Creating repository-wide custom instructions](#creating-repository-wide-custom-instructions-2).
307307

308308
* **Path-specific custom instructions** apply to requests made in the context of files that match a specified path.
309309

310-
These are specified in one or more `NAME.instructions.md` files within the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions-1).
310+
These are specified in one or more `NAME.instructions.md` files within the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions-2).
311311

312312
If the path you specify matches a file that {% data variables.product.prodname_copilot_short %} is working on, and a repository-wide custom instructions file also exists, then the instructions from both files are used.
313313

data/reusables/contributing/content-linter-rules.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
| GHD046 | outdated-release-phase-terminology | Outdated release phase terminology should be replaced with current GitHub terminology | warning | terminology, consistency, release-phases |
5858
| GHD047 | table-column-integrity | Tables must have consistent column counts across all rows | warning | tables, accessibility, formatting |
5959
| GHD051 | frontmatter-versions-whitespace | Versions frontmatter should not contain unnecessary whitespace | warning | frontmatter, versions |
60-
| GHD053 | header-content-requirement | Headers must have content between them, such as an introduction | warning | headers, structure, content |
6160
| GHD054 | third-party-actions-reusable | Code examples with third-party actions must include disclaimer reusable | warning | actions, reusable, third-party |
6261
| GHD056 | frontmatter-landing-recommended | Only landing pages can have recommended articles, there should be no duplicate recommended articles, and all recommended articles must exist | error | frontmatter, landing, recommended |
6362
| GHD057 | ctas-schema | CTA URLs must conform to the schema | error | ctas, schema, urls |

src/content-linter/lib/linting-rules/header-content-requirement.ts

Lines changed: 0 additions & 113 deletions
This file was deleted.

src/content-linter/lib/linting-rules/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ import { octiconAriaLabels } from '@/content-linter/lib/linting-rules/octicon-ar
4646
import { liquidIfversionVersions } from '@/content-linter/lib/linting-rules/liquid-ifversion-versions'
4747
import { outdatedReleasePhaseTerminology } from '@/content-linter/lib/linting-rules/outdated-release-phase-terminology'
4848
import { frontmatterVersionsWhitespace } from '@/content-linter/lib/linting-rules/frontmatter-versions-whitespace'
49-
import { headerContentRequirement } from '@/content-linter/lib/linting-rules/header-content-requirement'
5049
import { thirdPartyActionsReusable } from '@/content-linter/lib/linting-rules/third-party-actions-reusable'
5150
import { frontmatterLandingRecommended } from '@/content-linter/lib/linting-rules/frontmatter-landing-recommended'
5251
import { ctasSchema } from '@/content-linter/lib/linting-rules/ctas-schema'
@@ -111,7 +110,6 @@ export const gitHubDocsMarkdownlint = {
111110
outdatedReleasePhaseTerminology, // GHD046
112111
tableColumnIntegrity, // GHD047
113112
frontmatterVersionsWhitespace, // GHD051
114-
headerContentRequirement, // GHD053
115113
thirdPartyActionsReusable, // GHD054
116114
frontmatterLandingRecommended, // GHD056
117115
ctasSchema, // GHD057

src/content-linter/scripts/lint-content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ function getCustomRule(ruleName: string): Rule | MarkdownlintRule {
738738
}
739739

740740
// Check if a rule should be included based on user-specified rules
741-
// Handles both short names (e.g., GHD053, MD001) and long names (e.g., header-content-requirement, heading-increment)
741+
// Handles both short names (e.g., GHD047, MD001) and long names (e.g., table-column-integrity, heading-increment)
742742
export function shouldIncludeRule(ruleName: string, runRules: string[]) {
743743
// First check if the rule name itself is in the list
744744
if (runRules.includes(ruleName)) {

src/content-linter/style/github-docs.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,6 @@ const githubDocsConfig = {
186186
'partial-markdown-files': true,
187187
'yml-files': true,
188188
},
189-
'header-content-requirement': {
190-
// GHD053
191-
severity: 'warning',
192-
'partial-markdown-files': true,
193-
'yml-files': true,
194-
},
195189
'third-party-actions-reusable': {
196190
// GHD054
197191
severity: 'warning',

0 commit comments

Comments
 (0)