Skip to content

Commit 91e9f88

Browse files
authored
Merge branch 'master' into patch-1
2 parents 7ed180e + e775a7e commit 91e9f88

File tree

508 files changed

+17993
-437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

508 files changed

+17993
-437
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/dotnet/.devcontainer/base.Dockerfile
2+
# [Choice] .NET version: 6.0, 5.0, 3.1, 6.0-bullseye, 5.0-bullseye, 3.1-bullseye, 6.0-focal, 5.0-focal, 3.1-focal
3+
ARG VARIANT="6.0-bullseye"
4+
FROM mcr.microsoft.com/vscode/devcontainers/dotnet
5+
6+
# "install" the dotnet 3.1 & 6.0 runtime for tests
7+
COPY --from=mcr.microsoft.com/dotnet/sdk:3.1 /usr/share/dotnet/shared /usr/share/dotnet/shared
8+
COPY --from=mcr.microsoft.com/dotnet/sdk:6.0 /usr/share/dotnet/shared /usr/share/dotnet/shared

.devcontainer/devcontainer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/dotnet
3+
{
4+
"name": "Octokit.net",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
"args": {
8+
// Update 'VARIANT' to pick a .NET Core version: 3.1, 5.0, 6.0
9+
// Append -bullseye or -focal to pin to an OS version.
10+
"VARIANT": "latest"
11+
}
12+
},
13+
// Set *default* container specific settings.json values on container create.
14+
"settings": {
15+
"omnisharp.path": "latest",
16+
"omnisharp.defaultLaunchSolution": "Octokit.GraphQL.sln",
17+
"omnisharp.disableMSBuildDiagnosticWarning": false,
18+
"omnisharp.useModernNet": true,
19+
"omnisharp.enableAsyncCompletion": true,
20+
"omnisharp.enableEditorConfigSupport": true,
21+
"omnisharp.enableImportCompletion": true,
22+
"omnisharp.enableRoslynAnalyzers": true,
23+
"omnisharp.organizeImportsOnFormat": true
24+
},
25+
// Add the IDs of extensions you want installed when the container is created.
26+
"extensions": [
27+
"ms-dotnettools.csharp",
28+
"eamodio.gitlens",
29+
"fernandoescolar.vscode-solution-explorer",
30+
"redhat.vscode-yaml"
31+
],
32+
// This is needed so that the C# extension can resolve to the correct SDK version
33+
"remoteEnv": {
34+
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
35+
"DOTNET_MULTILEVEL_LOOKUP": "0",
36+
"TARGET": "net7.0",
37+
"DOTNET_WATCH_SUPPRESS_LAUNCH_BROWSER": "true"
38+
}
39+
}

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Bug
2+
description: File a bug report
3+
title: "[BUG]: "
4+
labels: ["Type: Bug", "Status: Triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: textarea
11+
id: what-happened
12+
attributes:
13+
label: What happened?
14+
description: What did you do? What happened? What did you expect to happen?
15+
placeholder: Put your description of the bug here.
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: versions
20+
attributes:
21+
label: Versions
22+
description: What versions of the relevant software are you running?
23+
placeholder: Octokit.js v2.0.10, Node v16.18.0
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: logs
28+
attributes:
29+
label: Relevant log output
30+
description: |
31+
Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
32+
Please check your logs before submission to ensure sensitive information is redacted.
33+
render: shell
34+
- type: checkboxes
35+
id: terms
36+
attributes:
37+
label: Code of Conduct
38+
description: By submitting this issue, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md)
39+
options:
40+
- label: I agree to follow this project's Code of Conduct
41+
required: true
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Documentation
2+
description: Update or add documentation
3+
title: "[DOCS]: "
4+
labels: ["Type: Documentation", "Status: Triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill this out!
10+
- type: textarea
11+
id: describe-need
12+
attributes:
13+
label: Describe the need
14+
description: What do you wish was different about our docs?
15+
placeholder: Describe the need for documentation updates here.
16+
validations:
17+
required: true
18+
- type: input
19+
id: sdk_version
20+
attributes:
21+
label: SDK Version
22+
description: Do these docs apply to a specific SDK version?
23+
placeholder: Octokit.NET v4.0.1
24+
validations:
25+
required: false
26+
- type: input
27+
id: api_version
28+
attributes:
29+
label: API Version
30+
description: Do these docs apply to a specific version of the GitHub REST API or GraphQL API?
31+
placeholder: ex. v1.1.1
32+
validations:
33+
required: false
34+
- type: textarea
35+
id: logs
36+
attributes:
37+
label: Relevant log output
38+
description: |
39+
Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
40+
Please check your logs before submission to ensure sensitive information is redacted.
41+
render: shell
42+
- type: checkboxes
43+
id: terms
44+
attributes:
45+
label: Code of Conduct
46+
description: By submitting this issue, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md)
47+
options:
48+
- label: I agree to follow this project's Code of Conduct
49+
required: true

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Feature
2+
description: Suggest an idea for a new feature or enhancement
3+
title: "[FEAT]: "
4+
labels: ["Type: Feature", "Status: Triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill this out!
10+
- type: textarea
11+
id: describe-need
12+
attributes:
13+
label: Describe the need
14+
description: What do you want to happen? What problem are you trying to solve?
15+
placeholder: Describe the need for the feature.
16+
validations:
17+
required: true
18+
- type: input
19+
id: sdk_version
20+
attributes:
21+
label: SDK Version
22+
description: Does this feature suggestion apply to a specific SDK version?
23+
placeholder: Octokit.rb v6.0.0
24+
validations:
25+
required: false
26+
- type: input
27+
id: api_version
28+
attributes:
29+
label: API Version
30+
description: Does this feature suggestion apply to a specific version of the GitHub REST API or GraphQL API?
31+
placeholder: ex. v1.1.1
32+
validations:
33+
required: false
34+
- type: textarea
35+
id: logs
36+
attributes:
37+
label: Relevant log output
38+
description: |
39+
Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
40+
Please check your logs before submission to ensure sensitive information is redacted.
41+
render: shell
42+
- type: checkboxes
43+
id: terms
44+
attributes:
45+
label: Code of Conduct
46+
description: By submitting this issue, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md)
47+
options:
48+
- label: I agree to follow this project's Code of Conduct
49+
required: true
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Maintenance
2+
description: Dependencies, cleanup, refactoring, reworking of code
3+
title: "[MAINT]: "
4+
labels: ["Type: Maintenance", "Status: Triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill this out!
10+
- type: textarea
11+
id: describe-need
12+
attributes:
13+
label: Describe the need
14+
description: What do you want to happen?
15+
placeholder: Describe the maintenance need here.
16+
validations:
17+
required: true
18+
- type: input
19+
id: sdk_version
20+
attributes:
21+
label: SDK Version
22+
description: Does this maintenance apply to a specific SDK version?
23+
placeholder: terraform-provider-github v5.7.0
24+
validations:
25+
required: false
26+
- type: input
27+
id: api_version
28+
attributes:
29+
label: API Version
30+
description: Does this maintenance apply to a specific version of the GitHub REST API or GraphQL API?
31+
placeholder: ex. v1.1.1
32+
validations:
33+
required: false
34+
- type: textarea
35+
id: logs
36+
attributes:
37+
label: Relevant log output
38+
description: |
39+
Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
40+
Please check your logs before submission to ensure sensitive information is redacted.
41+
render: shell
42+
- type: checkboxes
43+
id: terms
44+
attributes:
45+
label: Code of Conduct
46+
description: By submitting this issue, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md)
47+
options:
48+
- label: I agree to follow this project's Code of Conduct
49+
required: true
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "master" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "master" ]
20+
schedule:
21+
- cron: '21 12 * * 1'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'csharp' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
54+
55+
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v2
60+
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
64+
# If the Autobuild fails above, remove it and uncomment the following three lines.
65+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66+
67+
# - run: |
68+
# echo "Run, Build Application using script"
69+
# ./location_of_script_within_repo/buildscript.sh
70+
71+
- name: Perform CodeQL Analysis
72+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)