Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into live #43294

Merged
merged 7 commits into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/policies/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ configuration:
label: ':octocat: auto-merge'
- targetsBranch:
branch: main
- or:
- isActivitySender:
user: dotnet-policy-service[bot]
- isActivitySender:
user: dotnet-policy-service[bot]
then:
- enableAutoMerge:
mergeMethod: Squash
Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/clean-repo.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/cleanrepo-orphaned-articles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "clean repo - articles"

on:
schedule:
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
workflow_dispatch:

permissions:
contents: read

jobs:
clean-repo:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Call clean repo
- name: Clean repo
id: clean-repo-step
uses: dotnet/docs-tools/cleanrepo@b1ebc174a5bbd18e6904a12069a8fae2c5cc3b6f
with:
function: "FindOrphanedArticles"
docfx_directory: "."
target_directory: "docs"
url_base_path: "/dotnet"

# Create the PR for the work done by the "clean repo" tool
- name: create-pull-request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
with:
branch: cleanrepo-orphaned-articles
title: "Monthly chores: Delete orphaned articles"
commit-message: "Bot 🤖 generated CleanRepo tool run"
body: "Find and delete orphaned articles. Contributes to #..."
43 changes: 43 additions & 0 deletions .github/workflows/cleanrepo-orphaned-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "clean repo - images"

on:
schedule:
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
workflow_dispatch:

permissions:
contents: read

jobs:
clean-repo:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Call clean repo
- name: Clean repo
id: clean-repo-step
uses: dotnet/docs-tools/cleanrepo@b1ebc174a5bbd18e6904a12069a8fae2c5cc3b6f
with:
function: "FindOrphanedImages"
docfx_directory: "."
target_directory: "docs"
url_base_path: "/dotnet"

# Create the PR for the work done by the "clean repo" tool
- name: create-pull-request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
with:
branch: cleanrepo-orphaned-images
title: "Monthly chores: Delete orphaned images"
commit-message: "Bot 🤖 generated CleanRepo tool run"
body: "Find and delete orphaned images. Contributes to #..."
43 changes: 43 additions & 0 deletions .github/workflows/cleanrepo-orphaned-includes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "clean repo - includes"

on:
schedule:
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
workflow_dispatch:

permissions:
contents: read

jobs:
clean-repo:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Call clean repo
- name: Clean repo
id: clean-repo-step
uses: dotnet/docs-tools/cleanrepo@b1ebc174a5bbd18e6904a12069a8fae2c5cc3b6f
with:
function: "FindOrphanedIncludes"
docfx_directory: "."
target_directory: "."
url_base_path: "/dotnet"

# Create the PR for the work done by the "clean repo" tool
- name: create-pull-request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
with:
branch: cleanrepo-orphaned-includes
title: "Monthly chores: Delete orphaned include files"
commit-message: "Bot 🤖 generated CleanRepo tool run"
body: "Find and delete orphaned include files. Contributes to #..."
43 changes: 43 additions & 0 deletions .github/workflows/cleanrepo-orphaned-snippets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "clean repo - snippets"

on:
schedule:
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
workflow_dispatch:

permissions:
contents: read

jobs:
clean-repo:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Call clean repo
- name: Clean repo
id: clean-repo-step
uses: dotnet/docs-tools/cleanrepo@b1ebc174a5bbd18e6904a12069a8fae2c5cc3b6f
with:
function: "FindOrphanedSnippets"
docfx_directory: "."
target_directory: "docs"
url_base_path: "/dotnet"

# Create the PR for the work done by the "clean repo" tool
- name: create-pull-request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
with:
branch: cleanrepo-orphaned-snippets
title: "Monthly chores: Delete orphaned snippets"
commit-message: "Bot 🤖 generated CleanRepo tool run"
body: "Find and delete orphaned snippets. Contributes to #..."
43 changes: 43 additions & 0 deletions .github/workflows/cleanrepo-redirect-hops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "clean repo - redirect hops"

on:
schedule:
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
workflow_dispatch:

permissions:
contents: read

jobs:
clean-repo:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Call clean repo
- name: Clean repo
id: clean-repo-step
uses: dotnet/docs-tools/cleanrepo@b1ebc174a5bbd18e6904a12069a8fae2c5cc3b6f
with:
function: "RemoveRedirectHops"
docfx_directory: "."
target_directory: "docs"
url_base_path: "/dotnet"

# Create the PR for the work done by the "clean repo" tool
- name: create-pull-request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
with:
branch: cleanrepo-remove-hops
title: "Monthly chores: Remove redirect hops"
commit-message: "Bot 🤖 generated CleanRepo tool run"
body: "Remove redirect hops, for example, if a -> b and b -> c, replace a -> b with a -> c. Contributes to #..."
43 changes: 43 additions & 0 deletions .github/workflows/cleanrepo-relative-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "clean repo - relative links"

on:
schedule:
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
workflow_dispatch:

permissions:
contents: read

jobs:
clean-repo:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Call clean repo
- name: Clean repo
id: clean-repo-step
uses: dotnet/docs-tools/cleanrepo@b1ebc174a5bbd18e6904a12069a8fae2c5cc3b6f
with:
function: "ReplaceWithRelativeLinks"
docfx_directory: "."
target_directory: "docs"
url_base_path: "/dotnet"

# Create the PR for the work done by the "clean repo" tool
- name: create-pull-request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
with:
branch: cleanrepo-relative-links
title: "Monthly chores: Use relative links"
commit-message: "Bot 🤖 generated CleanRepo tool run"
body: "Find and replace absolute links with relative links. Contributes to #..."
43 changes: 43 additions & 0 deletions .github/workflows/cleanrepo-replace-redirects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "clean repo - replace redirects"

on:
schedule:
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
workflow_dispatch:

permissions:
contents: read

jobs:
clean-repo:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Call clean repo
- name: Clean repo
id: clean-repo-step
uses: dotnet/docs-tools/cleanrepo@b1ebc174a5bbd18e6904a12069a8fae2c5cc3b6f
with:
function: "ReplaceRedirectTargets"
docfx_directory: "."
target_directory: "docs"
url_base_path: "/dotnet"

# Create the PR for the work done by the "clean repo" tool
- name: create-pull-request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
with:
branch: cleanrepo-replace-redirects
title: "Monthly chores: Replace redirect targets"
commit-message: "Bot 🤖 generated CleanRepo tool run"
body: "Replace redirected links with target URL. Contributes to #..."
2 changes: 1 addition & 1 deletion .openpublishing.redirection.fsharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
{
"source_path_from_root": "/docs/fsharp/tutorials/getting-started/getting-started-visual-studio-for-mac.md",
"redirect_url": "/dotnet/fsharp/get-started/get-started-vscode",
"redirect_url": "/dotnet/fsharp/get-started/get-started-vscode"
},
{
"source_path_from_root": "/docs/fsharp/tutorials/getting-started/getting-started-visual-studio.md",
Expand Down
Loading
Loading