-
Notifications
You must be signed in to change notification settings - Fork 0
Updated/Added files in .github folder #27
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
Changes from all commits
8b9a9bd
e790712
25d6181
cc87eaf
ca99512
a16249f
87a7be5
b736793
d7f011b
31b9120
e524429
5ec728b
d4e67f5
df3a998
eeb2f08
0143e2e
1e3023a
5353c56
19a1cb5
6ff81c8
5209105
4ef0de5
418ce9a
ef06450
2e1db28
9571c37
0a56a98
6984348
6aa8693
1ea6a64
0444473
2bb11df
12e1a60
7cd92f9
d186e55
68a5642
b8c1e86
9302cae
b1e5b7e
5c4f1c5
3e1fd69
f47afb7
7b17229
7f4beb1
28e278b
0e893a6
e23c86f
ea6dd38
17182c2
8340adb
b8a657c
739b097
aca6b2a
eb1d693
bfb6324
0da0fc6
0a405df
4210005
ae0a411
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # This CODEOWNERS file designates code owners for different parts of the repository. | ||
| # Update usernames or teams as appropriate for your project. | ||
|
|
||
| # Set the default owner for everything in the repository | ||
| * @Chris-Wolfgang | ||
|
|
||
| # Example: Assign a team or user to a specific directory | ||
| # /src/ @Chris-Wolfgang | ||
|
|
||
| # Example: Assign a different owner to documentation files | ||
| # /docs/ @Chris-Wolfgang | ||
|
|
||
| # Example: Assign an owner to GitHub Actions workflows | ||
| # /.github/workflows/ @Chris-Wolfgang | ||
|
|
||
| # Example: Assign an owner to the .github folder to protect the CODEOWNERS file | ||
| /.github/ @Chris-Wolfgang |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| name: "🐞 Bug report" | ||
| description: "File a bug report to help us improve" | ||
| title: "[Bug]: " | ||
| labels: [bug, needs-triage] | ||
| assignees: [] | ||
| body: | ||
| - type: markdown | ||
| attributes: | ||
| value: | | ||
| ## Thanks for reporting a bug! | ||
|
|
||
| Please fill out the information below to help us resolve the issue as quickly as possible. | ||
|
|
||
| - type: textarea | ||
| id: description | ||
| attributes: | ||
| label: "Describe the bug" | ||
| description: "A clear and concise description of what the bug is." | ||
| placeholder: "Bug details go here..." | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: textarea | ||
| id: steps-to-reproduce | ||
| attributes: | ||
| label: "Steps to reproduce" | ||
| description: "How can we reproduce the behavior?" | ||
| placeholder: | | ||
| 1. Go to '...' | ||
| 2. Click on '....' | ||
| 3. Scroll down to '....' | ||
| 4. See error | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: textarea | ||
| id: expected-behavior | ||
| attributes: | ||
| label: "Expected behavior" | ||
| description: "What did you expect to happen?" | ||
| placeholder: "It should..." | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: textarea | ||
| id: actual-behavior | ||
| attributes: | ||
| label: "Actual behavior" | ||
| description: "What actually happened?" | ||
| placeholder: "Instead, it..." | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: input | ||
| id: environment | ||
| attributes: | ||
| label: "Environment" | ||
| description: "Please provide information about your environment (OS, browser, version, etc.)" | ||
| placeholder: "e.g. Windows 11, Chrome 124.0.1" | ||
| validations: | ||
| required: false | ||
|
|
||
| - type: textarea | ||
| id: screenshots | ||
| attributes: | ||
| label: "Screenshots" | ||
| description: "If applicable, add screenshots to help explain your problem." | ||
| placeholder: "Drag & drop images or paste them here." | ||
| validations: | ||
| required: false | ||
|
|
||
| - type: textarea | ||
| id: additional-context | ||
| attributes: | ||
| label: "Additional context" | ||
| description: "Add any other context about the problem here." | ||
| placeholder: "Anything else?" | ||
| validations: | ||
| required: false |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,46 @@ | ||
| # To get started with Dependabot version updates, you'll need to specify which | ||
| # package ecosystems to update and where the package manifests are located. | ||
| # Please see the documentation for all configuration options: | ||
| # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
|
||
| version: 2 | ||
| updates: | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "nuget" | ||
| directory: "/" # Root - for solution-level dependencies | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 5 | ||
| labels: | ||
| - "dependencies" | ||
| - "dotnet" | ||
|
|
||
| - package-ecosystem: "nuget" | ||
| directory: "/src" | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 5 | ||
| open-pull-requests-limit: 5 | ||
| labels: | ||
| - "dependencies" | ||
| - "dotnet" | ||
|
|
||
| - package-ecosystem: "nuget" | ||
| directory: "/tests" | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 5 | ||
| labels: | ||
| - "dependencies" | ||
| - "dotnet" | ||
|
|
||
| - package-ecosystem: "nuget" | ||
| directory: "/benchmarks" | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 5 | ||
| labels: | ||
| - "dependencies" | ||
| - "dotnet" | ||
|
Comment on lines
+30
to
+37
|
||
|
|
||
| - package-ecosystem: "nuget" | ||
| directory: "/examples" | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 5 | ||
| labels: | ||
| - "dependencies" | ||
| - "dotnet" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| ## Description | ||
|
|
||
| <!-- Please include a summary of the change and which issue is fixed. Also include relevant motivation and context. List any dependencies that are required for this change. --> | ||
|
|
||
| Fixes/Complete # (issue) | ||
|
|
||
| ## Type of change | ||
|
|
||
| Please delete options that are not relevant. | ||
|
|
||
| - [ ] Bug fix | ||
| - [ ] New feature | ||
| - [ ] Breaking change | ||
| - [ ] Documentation update | ||
| - [ ] Refactor | ||
|
|
||
| ## How Has This Been Tested? | ||
|
|
||
| <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. --> | ||
|
|
||
| - [ ] Test A | ||
| - [ ] Test B | ||
|
|
||
| ## Checklist | ||
|
|
||
| - [ ] My code follows the style guidelines of this project | ||
| - [ ] I have performed a self-review of my own code | ||
| - [ ] I have commented my code, particularly in hard-to-understand areas | ||
| - [ ] I have made corresponding changes to the documentation | ||
| - [ ] My changes generate no new warnings | ||
| - [ ] I have added tests that prove my fix is effective or that my feature works | ||
| - [ ] New and existing unit tests pass locally with my changes | ||
|
|
||
| ## Screenshots (if applicable) | ||
|
|
||
| <!-- Please add any screenshots or gifs to help reviewers understand your changes. --> | ||
|
|
||
| ## Additional context | ||
|
|
||
| <!-- Add any other context about the pull request here. --> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| name: Create Dependabot Security and Dependencies Labels | ||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| create-labels: | ||
| permissions: | ||
| issues: write | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Create "dependabot - security" label | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| script: | | ||
| try { | ||
| await github.rest.issues.createLabel({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| name: "dependabot - security", | ||
| color: "b60205" | ||
| }); | ||
| } catch (error) { | ||
| if (error.status === 422 && error.response?.data?.errors?.[0]?.code === 'already_exists') { | ||
| console.log('Label "dependabot - security" already exists, skipping creation'); | ||
| } else { | ||
| console.error('Failed to create label "dependabot - security":', error.message); | ||
| throw error; | ||
| } | ||
| } | ||
|
Comment on lines
+22
to
+29
|
||
| - name: Create "dependabot-dependencies" label | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| script: | | ||
| try { | ||
| await github.rest.issues.createLabel({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| name: "dependabot-dependencies", | ||
| color: "d93f0b" | ||
| }); | ||
| } catch (error) { | ||
| if (error.status === 422 && error.response?.data?.errors?.[0]?.code === 'already_exists') { | ||
| console.log('Label "dependabot-dependencies" already exists, skipping creation'); | ||
| } else { | ||
| console.error('Failed to create label "dependabot-dependencies":', error.message); | ||
| throw error; | ||
| } | ||
| } | ||
| - name: Create "dependencies" label | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| script: | | ||
| try { | ||
| await github.rest.issues.createLabel({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| name: "dependencies", | ||
| color: "0366d6" | ||
| }); | ||
| } catch (error) { | ||
| if (error.status === 422 && error.response?.data?.errors?.[0]?.code === 'already_exists') { | ||
| console.log('Label "dependencies" already exists, skipping creation'); | ||
| } else { | ||
| console.error('Failed to create label "dependencies":', error.message); | ||
| throw error; | ||
| } | ||
| } | ||
| - name: Create "dotnet" label | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| script: | | ||
| try { | ||
| await github.rest.issues.createLabel({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| name: "dotnet", | ||
| color: "512bd4" | ||
| }); | ||
| } catch (error) { | ||
| if (error.status === 422 && error.response?.data?.errors?.[0]?.code === 'already_exists') { | ||
| console.log('Label "dotnet" already exists, skipping creation'); | ||
| } else { | ||
| console.error('Failed to create label "dotnet":', error.message); | ||
| throw error; | ||
| } | ||
| } | ||
|
Chris-Wolfgang marked this conversation as resolved.
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Deploy DocFX Pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main # Your primary branch | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
| contents: read # Allow read access for checkout | ||
| pages: write # Allow write access for Pages deployment | ||
| id-token: write # Allow writing of ID tokens for deployment | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
|
|
||
| - name: Install DocFX | ||
| run: dotnet tool update docfx --global | ||
|
|
||
| - name: Build DocFx Metadata | ||
| run: docfx metadata | ||
| working-directory: docfx_project | ||
|
|
||
| - name: Build Docs | ||
| run: docfx build | ||
| working-directory: docfx_project | ||
|
|
||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: docfx_project/_site # The path to the folder to upload | ||
|
Comment on lines
+30
to
+40
|
||
|
|
||
| deploy: | ||
| needs: build | ||
| permissions: | ||
| pages: write | ||
| id-token: write | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Dependabot configuration references labels "dependencies" and "dotnet" that are not created by the create-labels.yaml workflow. The create-labels workflow only creates "dependabot - security" and "dependabot-dependencies" labels. Either update the create-labels workflow to include these labels, or ensure they are created manually, otherwise Dependabot PRs will fail to apply these labels.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot open a new pull request to apply changes based on this feedback