forked from TeamInklings/Octobot
Compare commits
No commits in common. "94a7893c1bf11973b52d339181dff5db8959445f" and "9429dfe8d8c64d1c49ee6879fcd82e2b57f740ae" have entirely different histories.
94a7893c1b
...
9429dfe8d8
9 changed files with 173 additions and 12 deletions
2
.github/CODEOWNERS
vendored
Normal file
2
.github/CODEOWNERS
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
* @TeamOctolings/octobot
|
||||||
|
/docs/ @TeamOctolings/octobot-docs
|
43
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
Normal file
43
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
name: Bug Report
|
||||||
|
description: Create a report to help us improve
|
||||||
|
labels: [ "type: bug" ]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
We welcome bug reports! Please see our [contribution guidelines](docs/CONTRIBUTING.md#reporting-bugs) for more information on writing a good bug report. This template will help us gather the information we need to start the triage process.
|
||||||
|
- type: textarea
|
||||||
|
id: background
|
||||||
|
attributes:
|
||||||
|
label: Description
|
||||||
|
description: Please share a clear and concise description of the problem.
|
||||||
|
placeholder: Description
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: expected-vs-actual-behavior
|
||||||
|
attributes:
|
||||||
|
label: Expected vs. Actual Behavior
|
||||||
|
description: |
|
||||||
|
Provide a description of the expected behavior compared to the actual behavior.
|
||||||
|
placeholder: Expected vs. Actual Behavior
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: repro-steps
|
||||||
|
attributes:
|
||||||
|
label: Reproduction Steps
|
||||||
|
description: |
|
||||||
|
Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible command/action sequence. If possible include text as text rather than screenshots (so it shows up in searches).
|
||||||
|
placeholder: Minimal Reproduction
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: other-info
|
||||||
|
attributes:
|
||||||
|
label: Other Information
|
||||||
|
description: |
|
||||||
|
If you have an idea where the problem might lie, let us know that here. Please include any pointers to code, relevant changes, or related issues you know of.
|
||||||
|
placeholder: Other Information
|
||||||
|
validations:
|
||||||
|
required: false
|
1
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
1
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
blank_issues_enabled: true
|
29
.github/ISSUE_TEMPLATE/feature-request.yml
vendored
Normal file
29
.github/ISSUE_TEMPLATE/feature-request.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Feature Request
|
||||||
|
description: Create a request for a feature you would like
|
||||||
|
labels: [ "type: feature" ]
|
||||||
|
body:
|
||||||
|
- type: textarea
|
||||||
|
id: background
|
||||||
|
attributes:
|
||||||
|
label: Description
|
||||||
|
description: Please share a clear and concise description of the feature you want.
|
||||||
|
placeholder: Description
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: proposed-solution
|
||||||
|
attributes:
|
||||||
|
label: Proposed Solution
|
||||||
|
description: Please describe the solution you would like.
|
||||||
|
placeholder: Proposed Solution
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: other-info
|
||||||
|
attributes:
|
||||||
|
label: Other Information
|
||||||
|
description: |
|
||||||
|
Please add any other context or screenshots about the feature request here.
|
||||||
|
placeholder: Other Information
|
||||||
|
validations:
|
||||||
|
required: false
|
32
.github/dependabot.yml
vendored
Normal file
32
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# 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/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||||
|
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions" # See documentation for possible values
|
||||||
|
directory: "/" # Location of package manifests
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
allow:
|
||||||
|
# Allow both direct and indirect updates for all packages
|
||||||
|
- dependency-type: "all"
|
||||||
|
labels:
|
||||||
|
- "type: change"
|
||||||
|
- "area: build/ci"
|
||||||
|
|
||||||
|
- package-ecosystem: "nuget" # See documentation for possible values
|
||||||
|
directory: "/" # Location of package manifests
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
allow:
|
||||||
|
# Allow both direct and indirect updates for all packages
|
||||||
|
- dependency-type: "all"
|
||||||
|
labels:
|
||||||
|
- "type: change"
|
||||||
|
- "area: build/ci"
|
||||||
|
groups:
|
||||||
|
remora:
|
||||||
|
patterns:
|
||||||
|
- "Remora.Discord.*"
|
24
.github/labels.yml
vendored
Normal file
24
.github/labels.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
XS:
|
||||||
|
name: size/XS
|
||||||
|
lines: 0
|
||||||
|
color: 3CBF00
|
||||||
|
S:
|
||||||
|
name: size/S
|
||||||
|
lines: 20
|
||||||
|
color: 5D9801
|
||||||
|
M:
|
||||||
|
name: size/M
|
||||||
|
lines: 100
|
||||||
|
color: 7F7203
|
||||||
|
L:
|
||||||
|
name: size/L
|
||||||
|
lines: 200
|
||||||
|
color: A14C05
|
||||||
|
XL:
|
||||||
|
name: size/XL
|
||||||
|
lines: 1000
|
||||||
|
color: C32607
|
||||||
|
XXL:
|
||||||
|
name: size/XXL
|
||||||
|
lines: 2000
|
||||||
|
color: E50009
|
31
.github/workflows/build-pr.yml
vendored
Normal file
31
.github/workflows/build-pr.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: "ReSharper"
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
merge_group:
|
||||||
|
types: [ checks_requested ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
inspect-code:
|
||||||
|
name: Inspect code
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: ReSharper CLI InspectCode
|
||||||
|
uses: muno92/resharper_inspectcode@1.11.8
|
||||||
|
with:
|
||||||
|
solutionPath: ./Octobot.sln
|
||||||
|
ignoreIssueType: InvertIf, ConvertIfStatementToSwitchStatement, ConvertToPrimaryConstructor
|
||||||
|
extensions: ReSharperPlugin.CognitiveComplexity
|
||||||
|
solutionWideAnalysis: true
|
|
@ -1,29 +1,28 @@
|
||||||
name: "Publish and deploy"
|
name: "Publish and deploy"
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [ "master" ]
|
||||||
- "stealth"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload-solution:
|
upload-solution:
|
||||||
name: Upload Octobot Stealth to production
|
name: Upload Octobot to production
|
||||||
runs-on: docker
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
environment: production
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup .NET 8
|
|
||||||
uses: https://github.com/actions/setup-dotnet@v4
|
|
||||||
with:
|
|
||||||
dotnet-version: 8
|
|
||||||
|
|
||||||
- name: Publish solution
|
- name: Publish solution
|
||||||
run: dotnet publish $PUBLISH_FLAGS
|
run: dotnet publish $PUBLISH_FLAGS
|
||||||
env:
|
env:
|
||||||
DOTNET_NOLOGO: true
|
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
||||||
PUBLISH_FLAGS: ${{vars.PUBLISH_FLAGS}}
|
PUBLISH_FLAGS: ${{vars.PUBLISH_FLAGS}}
|
||||||
|
|
||||||
- name: Setup SSH key
|
- name: Setup SSH key
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
public static class BuildInfo
|
public static class BuildInfo
|
||||||
{
|
{
|
||||||
public const string RepositoryUrl = "https://git.mctaylors.ru/TeamInklings/OctobotStealth";
|
public const string RepositoryUrl = "https://github.com/TeamOctolings/Octobot";
|
||||||
|
|
||||||
public const string IssuesUrl = $"{RepositoryUrl}/issues";
|
public const string IssuesUrl = $"{RepositoryUrl}/issues";
|
||||||
|
|
||||||
|
|
Reference in a new issue