diff --git a/.github/labeler.yml b/.github/labeler.yml index 56acb887f..1516e2e58 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,29 +1,40 @@ ---- PR: - "*" +dotnet: + - '**/*.cs' + github_actions: - - .github/workflows/* + - ".github/workflows/*" documentation: - - docs/* + - "docs/*" update: - - src/Directory.Build.props + - "src/Directory.Build.props" -controls: - - src/Wpf.Ui/Controls/* +dependencies: + - "src/Packages.props" + - "branding/package.json" + - "src/Packages.props" + +NuGet: + - "src/Packages.props" styles: - - src/Wpf.Ui/Styles/* + - "src/Wpf.Ui/**/*.xaml" -icons: - - src/Wpf.Ui/Fonts/FluentSystemIcons-Filled.ttf - - src/Wpf.Ui/Fonts/FluentSystemIcons-Regular.ttf +themes: + - "src/Wpf.Ui/Appearance/*" -dependencies: - - src/Packages.props - - branding/package.json +tray: + - "src/Wpf.Ui.Tray/*" -NuGet: - - src/Packages.props +controls: + - "src/Wpf.Ui/Controls/*" + +icons: + - "src/Wpf.Ui/Resources/Fonts/*" + +navigation: + - "src/Wpf.Ui/Controls/NavigationView/*" diff --git a/.github/labels.yml b/.github/labels.yml index 396124380..fa1849006 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -1,4 +1,3 @@ ---- - name: "icons" color: "86CBEC" description: "Fonts and icons updates" @@ -47,6 +46,9 @@ - name: ".NET" color: "7121c6" description: "Pull requests that update .NET code." +- name: "dotnet" + color: "7121c6" + description: "Pull requests that update .NET code." - name: "NuGet" color: "004880" description: "Update of the NuGet package." @@ -71,3 +73,4 @@ - name: "wontfix" color: "ffffff" description: "This will not be worked on." + diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 000000000..884f651c4 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,39 @@ +name: "CodeQL" + +on: + push: + branches: [ main ] + pull_request: + branches: [ development ] + +jobs: + analyze: + name: Analyze + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - uses: microsoft/setup-msbuild@v1.3 + with: + msbuild-architecture: x64 + + - name: Setup .NET Core SDK 8.x + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.x + + - name: Install dependencies + run: dotnet restore + + - name: Build + run: dotnet build src\Wpf.Ui.Gallery\Wpf.Ui.Gallery.csproj --configuration Release --no-restore + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: "csharp" + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 diff --git a/Directory.Build.props b/Directory.Build.props index 5214885e2..a09c48302 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - 3.0.0 + 3.0.1 12.0 true diff --git a/src/Wpf.Ui/Controls/TitleBar/TitleBar.cs b/src/Wpf.Ui/Controls/TitleBar/TitleBar.cs index 63a32234e..495553dcf 100644 --- a/src/Wpf.Ui/Controls/TitleBar/TitleBar.cs +++ b/src/Wpf.Ui/Controls/TitleBar/TitleBar.cs @@ -4,6 +4,7 @@ // All Rights Reserved. using System.Diagnostics; +using System.Windows.Input; using Wpf.Ui.Designer; using Wpf.Ui.Extensions; using Wpf.Ui.Input;