-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-super-linter
- Loading branch information
Showing
75 changed files
with
1,035 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "08:00" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: nuget | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "08:30" | ||
ignore: | ||
# Microsoft.CodeAnalysis.* packages defined in the analyzer project can impact compatibility with older SDKs for | ||
# our users. We don't want to bump these without first considering the user impact. | ||
# | ||
# We don't wildcard Microsoft.CodeAnalysis.* here though, as there are testing libraries and analyzers that | ||
# can be upgraded without impacting our users. | ||
- dependency-name: "Microsoft.CodeAnalysis.CSharp" | ||
- dependency-name: "Microsoft.CodeAnalysis.CSharp.Workspaces" | ||
- dependency-name: "Microsoft.CodeAnalysis.Common" | ||
- dependency-name: "Microsoft.CodeAnalysis.Workspaces.Common" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Add 'build' label to any change in the 'build' directory | ||
build: | ||
- changed-files: | ||
- any-glob-to-any-file: 'build/**/*' | ||
|
||
# Add 'dependencies' label to any change in one of the packages files | ||
dependencies: | ||
- changed-files: | ||
- any-glob-to-any-file: ['build/**/Packages.props', 'Directory.Packages.props'] | ||
|
||
# Add 'documentation' label to any change within the 'docs' directory or any '.md' file | ||
documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: ['docs/**', '**/*.md'] | ||
|
||
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name | ||
feature: | ||
- head-branch: ['^feature', 'feature'] | ||
|
||
# Add 'bug' label to any PR where the head branch name starts with `bug` or has a `bug` section in the name | ||
bug: | ||
- head-branch: ['^bug', 'bug'] | ||
|
||
# Add 'releasable' label to any PR that is opened against the `main` branch | ||
releasable: | ||
- base-branch: 'main' | ||
|
||
# Add 'github_actions' label to any change to one of the GitHub workflows or configuration files | ||
github_actions: | ||
- changed-files: | ||
- any-glob-to-any-file: ['.github/workflows/*.yml', '.github/dependabot.yml', '.github/labeler.yml'] | ||
|
||
# Add 'analyzers' label to any change to an analyzer, code fix, or shipping documentation | ||
analyzers: | ||
- changed-files: | ||
- any-glob-to-any-file: ['src/Moq.Analyzers/AnalyzerReleases.*.md', 'src/Moq.Analyzers/**/*Analyzer.cs', 'src/Moq.Analyzers/**/*CodeFix.cs'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This workflow will read information about an issue and attempt to label it initially for triage and sorting | ||
|
||
name: Label issues | ||
on: | ||
issues: | ||
types: | ||
- reopened | ||
- opened | ||
|
||
jobs: | ||
label_issues: | ||
name: "Issue: add labels" | ||
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.GH_ACTIONS_PR_WRITE }} | ||
script: | | ||
// Get the issue body and title | ||
const body = context.payload.issue.body | ||
let title = context.payload.issue.title | ||
// Define the labels array | ||
let labels = ["triage"] | ||
// Check if the body or the title contains the word 'PowerShell' (case-insensitive) | ||
if ((body != null && body.match(/powershell/i)) || (title != null && title.match(/powershell/i))) { | ||
// Add the 'powershell' label to the array | ||
labels.push("powershell") | ||
} | ||
// Check if the body or the title contains the words 'dotnet', '.net', 'c#' or 'csharp' (case-insensitive) | ||
if ((body != null && body.match(/.net/i)) || (title != null && title.match(/.net/i)) || | ||
(body != null && body.match(/dotnet/i)) || (title != null && title.match(/dotnet/i)) || | ||
(body != null && body.match(/C#/i)) || (title != null && title.match(/C#/i)) || | ||
(body != null && body.match(/csharp/i)) || (title != null && title.match(/csharp/i))) { | ||
// Add the '.NET' label to the array | ||
labels.push(".NET") | ||
} | ||
// Add the labels to the issue | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: labels | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This workflow will triage pull requests and apply a label based on the | ||
# paths that are modified in the pull request. | ||
# | ||
# To use this workflow, you will need to set up a .github/labeler.yml | ||
# file with configuration. For more information, see: | ||
# https://github.com/actions/labeler | ||
|
||
name: Label PR | ||
on: [pull_request_target] | ||
|
||
jobs: | ||
add_label: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GH_ACTIONS_PR_WRITE }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.