You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🚀[Feature]: Linting and Documentation Improvements with Conditional Summary Option (#226)
This pull request introduces improvements to the linting workflows and
documentation, adds new configuration options for linter summary
reporting, and updates test scripts for better visibility. The main
focus is on allowing users to optionally display the super-linter
summary even when no issues are found, and on clarifying documentation
and prompts related to repository operations.
**Workflow and Linter Enhancements:**
* Added `ShowSummaryOnSuccess` option for both documentation and
codebase linting workflows, allowing the super-linter summary to be
displayed even on successful runs. Updated the workflows to post the
summary conditionally based on this setting.
(`.github/workflows/Build-Docs.yml`, `.github/workflows/workflow.yml`,
[[1]](diffhunk://#diff-126bf89616b7daa3d14ebc882ad18666aaf1c3dae888c4ba306a66ec80758bc1R135-R155)
[[2]](diffhunk://#diff-126bf89616b7daa3d14ebc882ad18666aaf1c3dae888c4ba306a66ec80758bc1R189)
[[3]](diffhunk://#diff-7671544ba08199b4a27426300b58127b470b79b74ee36d823dacd165a01036eeR35-R39)
[[4]](diffhunk://#diff-7671544ba08199b4a27426300b58127b470b79b74ee36d823dacd165a01036eeR104-L106)
[[5]](diffhunk://#diff-7671544ba08199b4a27426300b58127b470b79b74ee36d823dacd165a01036eeR122-R136)
* Extended the settings parsing logic to support the new
`ShowSummaryOnSuccess` option for both `Build.Docs` and `Linter`
configurations. (`.github/workflows/Get-Settings.yml`,
[[1]](diffhunk://#diff-68f351d419a9b4db4797434891d5dfad44d83de65bfee7ba1c60badae369dbefR213)
[[2]](diffhunk://#diff-68f351d419a9b4db4797434891d5dfad44d83de65bfee7ba1c60badae369dbefR236)
**Documentation Updates:**
* Updated `README.md` to document the new `ShowSummaryOnSuccess` options
for both documentation and linter workflows, including example
configuration and explanation of its usage. (`README.md`,
[[1]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R252)
[[2]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R265)
[[3]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R280)
[[4]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R338)
[[5]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R426-R436)
* Added a new section to `.github/copilot-instructions.md` for
process-related Copilot instructions.
**Prompt and Command Improvements:**
* Clarified execution steps in `.github/prompts/pr.prompt.md` to specify
changing directory to the root of the attached git folder, and updated
references to GitHub MCP tool commands to use simplified names.
[[1]](diffhunk://#diff-3f8b5491849b0980eb754bd1a7323ca0fbd2d76dee5d0ae0aad303f07768d291L27-R28)
[[2]](diffhunk://#diff-3f8b5491849b0980eb754bd1a7323ca0fbd2d76dee5d0ae0aad303f07768d291L136-R139)
**Test Script Output Improvements:**
* Changed test setup and teardown scripts (`BeforeAll.ps1`,
`AfterAll.ps1`) in both test repositories to use `Write-Warning` instead
of `Write-Host` for better visibility of important messages.
(`tests/srcTestRepo/tests/BeforeAll.ps1`,
[[1]](diffhunk://#diff-194f79f552d669f15c73686eb90d586526eeee16a80ffe29c59dc5bd2697d77cL1-R2)
[[2]](diffhunk://#diff-194f79f552d669f15c73686eb90d586526eeee16a80ffe29c59dc5bd2697d77cL11-R12);
`tests/srcTestRepo/tests/AfterAll.ps1`,
[[3]](diffhunk://#diff-cfa4b632600f9dd5021c13fd59ae56acc5beb93769f64e5837c2b1a4bfa6d181L1-R2)
[[4]](diffhunk://#diff-cfa4b632600f9dd5021c13fd59ae56acc5beb93769f64e5837c2b1a4bfa6d181L11-R12);
`tests/srcWithManifestTestRepo/tests/BeforeAll.ps1`,
[[5]](diffhunk://#diff-4cc16ad5f540b198000f334246b4076322e9c2ecc00a8d5cd76a8d7f8f2d7cd4L1-R8);
`tests/srcWithManifestTestRepo/tests/AfterAll.ps1`,
[[6]](diffhunk://#diff-14dad688a5e209acb84a45277e1c27d98f241cbe994c8450450edfae4e2f6449L1-R8)
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .github/prompts/pr.prompt.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,8 @@ $ARGUMENTS
24
24
25
25
## Execution Steps
26
26
27
-
0. Change directory to the repository root if not already there.
27
+
0. If a folder is **explicitly attached to this chat** (“references”), you **must** change directory to the root of the git folder it is in. If there are no git folders you can change to the provided folder.
28
+
28
29
1.**Detect repository mode**:
29
30
- Run `git remote -v` to check configured remotes.
30
31
-**If `upstream` remote exists**: Fork mode
@@ -133,9 +134,9 @@ $ARGUMENTS
133
134
- Set PR to target the default branch (main/master) of the target repository
134
135
- Open as a **draft PR** (or keep as draft if updating)
135
136
-**Use GitHub MCP tools** to perform these operations in the **target repository**:
136
-
- Create PR (if not exists) - owner/repo should be target repository, use `mcp_github_github_create_pull_request`
137
-
- Update PR (if exists) - owner/repo should be target repository, use `mcp_github_github_update_pull_request`
138
-
- Add labels to PR - owner/repo should be target repository, use `mcp_github_github_add_labels_to_issue` (PRs are issues in GitHub API)
137
+
- Create PR (if not exists) - owner/repo should be target repository, use `create_pull_request`
138
+
- Update PR (if exists) - owner/repo should be target repository, use `update_pull_request`
139
+
- Add labels to PR - owner/repo should be target repository, use `update_issue` (PRs are issues in GitHub API)
139
140
140
141
8.**Apply labels to the PR**:
141
142
- Add the **change type label** based on the type specified (Major, Minor, Patch, Fix, or Docs)
0 commit comments