Skip to content

Commit 13e901b

Browse files
Merge pull request #11027 from MicrosoftDocs/main638921038663726366sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 654549f + a202d18 commit 13e901b

File tree

6 files changed

+31
-78
lines changed

6 files changed

+31
-78
lines changed

.github/workflows/clean-repo.yml

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,43 @@
1-
name: "clean repo"
1+
name: "clean repo - images"
22

33
on:
44
schedule:
5-
- cron: "0 1 1 */3 *" # Runs at 01:00, on day 1 of every third month
5+
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
clean-repo:
1013
runs-on: ubuntu-latest
1114
permissions:
1215
contents: write
13-
issues: write
1416
pull-requests: write
1517

1618
steps:
17-
- uses: actions/[email protected]
19+
- name: Harden Runner
20+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
21+
with:
22+
egress-policy: audit
23+
24+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1825

1926
# Call clean repo
2027
- name: Clean repo
2128
id: clean-repo-step
22-
uses: dotnet/docs-tools/cleanrepo/CleanRepo@main
29+
uses: dotnet/docs-tools/cleanrepo@main
2330
with:
24-
docfx_directory: '.'
25-
articles_directory: 'docs'
26-
media_directory: 'docs'
27-
snippets_directory: '.' # This includes the ./samples and ./docs directories, which both contain snippets.
28-
includes_directory: 'includes'
29-
url_base_path: '/visualstudio'
30-
delete: true
31-
orphaned_articles: false
32-
orphaned_images: true
33-
catalog_images: false
34-
orphaned_snippets: true
35-
orphaned_includes: false
36-
replace_redirects: true
37-
relative_links: true
38-
remove_hops: true
39-
31+
function: "FindOrphanedImages"
32+
docfx_directory: "docs"
33+
target_directory: "docs"
34+
url_base_path: "/visualstudio"
35+
4036
# Create the PR for the work done by the "clean repo" tool
4137
- name: create-pull-request
42-
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
38+
uses: dotnet/actions-create-pull-request@v4
4339
with:
44-
branch: create-cleanrepo-pull-request/patch
45-
title: "Monthly chores: Automated repo cleanup"
46-
commit-message: 'Bot 🤖 generated CleanRepo tool run'
47-
body: "Find and delete orphaned articles, images, snippets, and include files. Remove redirection hops, update redirected links in articles, and replace site-relative links with file-relative links. Contributes to #..."
40+
branch: cleanrepo-orphaned-images
41+
title: "Monthly chores: Delete orphaned images"
42+
commit-message: "Bot 🤖 generated CleanRepo tool run"
43+
body: "Find and delete orphaned images. Contributes to #..."

.github/workflows/stale-issues.yml

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

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "docs/ide/reference/import-and-export-settings-environment-options-dialog-box.md",
5+
"redirect_url": "/visualstudio/ide/personalizing-the-visual-studio-ide",
6+
"redirect_document_id": false
7+
},
38
{
49
"source_path": "docs/ide/reference/command-window.md",
510
"redirect_url": "/visualstudio/ide/command-window",

docs/extensibility/devenv-command-line-switches-for-vspackage-development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Devenv Command-Line Switches for VSPackage Development
33
description: Learn how developers can automate tasks from the command line when executing devenv.exe, the file that starts the Visual Studio IDE.
4-
ms.date: 12/10/2018
4+
ms.date: 08/28/2025
55
ms.topic: reference
66
helpviewer_keywords:
77
- /Setup command line switch
@@ -37,7 +37,7 @@ Visual Studio documentation describes the user-level `devenv` command-line switc
3737
| Command-line switch | Description |
3838
|---------------------| - |
3939
| `/ResetSkipPkgs` | Clears all skip loading options that have been added by users who want to avoid loading problematic VSPackages, then starts Visual Studio. The presence of a SkipLoading tag disables the loading of a VSPackage. Clearing the tag re-enables the loading of the VSPackage.<br /><br /> This switch takes no arguments. |
40-
| `/RootSuffix` | Starts Visual Studio by using an alternate location. The following command is run by the shortcut created by the Visual Studio SDK installer:<br /><br /> `devenv /RootSuffix exp`<br /><br /> In this case, `exp` identifies a location with a particular suffix (for example, `10.0Exp` instead of `10.0`). The experimental instance allows you to debug a VSPackage separately from the instance of Visual Studio that you're using to write code.<br /><br /> This switch can take any string that identifies a location that you've created by using VSRegEx.exe. For more information, see [The Experimental Instance](../extensibility/the-experimental-instance.md). |
40+
| `/RootSuffix` | Starts Visual Studio by using an alternate location. The following command is run by the shortcut created by the Visual Studio SDK installer:<br /><br /> `devenv /RootSuffix exp`<br /><br /> In this case, `exp` identifies a location with a particular suffix (for example, `10.0Exp` instead of `10.0`). The experimental instance allows you to debug a VSPackage separately from the instance of Visual Studio that you're using to write code.<br /><br /> This switch can take any string that either identifies a location that you've created by using [CreateExpInstance.exe](../extensibility/internals/createexpinstance-utility.md) or the name of an instance to be created. The name of the instance must be a valid file name. For more information, see [The Experimental Instance](../extensibility/the-experimental-instance.md). |
4141
| `/SafeMode` | Launches Visual Studio in safe mode, loading only the default IDE and services. The `/SafeMode` switch prevents all third-party VSPackages from loading when Visual Studio starts, ensuring stable execution.<br /><br /> This switch takes no arguments. |
4242
| `/Setup` | Forces Visual Studio to merge resource metadata that describes menus, toolbars, and command groups from all available VSPackages. You can only run this command as an administrator. <br /><br /> This switch takes no arguments. The `devenv /Setup` command is typically given as the last step of the installation process. Use of the `/Setup` switch doesn't start the IDE.|
4343
| `/Splash` | Shows the Visual Studio splash screen, as usual, and then shows a message box before showing the main IDE. The message box lets you study the splash screen (for example, to check for a VSPackage product icon).<br /><br /> This switch takes no arguments. |

docs/ide/personalizing-the-visual-studio-ide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ author: anandmeg
77
ms.author: meghaanand
88
manager: mijacobs
99
ms.subservice: general-ide
10+
f1_keywords:
11+
- VS.ToolsOptionsPages.Environment.Profiles
1012
#customer intent: As a developer, I want to customize my Visual Studio environment and to be able to export or import those custom settings to use across Visual Studio instances.
1113
---
1214
# Customize the Visual Studio IDE

docs/ide/reference/import-and-export-settings-environment-options-dialog-box.md

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

0 commit comments

Comments
 (0)