diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..93a190c --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +* @TeamOctolings/octobot +/docs/ @TeamOctolings/octobot-docs diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 0000000..9c0524f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -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 diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..0086358 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: true diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml new file mode 100644 index 0000000..2fd43c5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -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 diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4545f2b --- /dev/null +++ b/.github/dependabot.yml @@ -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.*" diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..8187db4 --- /dev/null +++ b/.github/labels.yml @@ -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 diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml new file mode 100644 index 0000000..859f8fa --- /dev/null +++ b/.github/workflows/build-pr.yml @@ -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 diff --git a/.forgejo/workflows/build-push.yml b/.github/workflows/build-push.yml similarity index 83% rename from .forgejo/workflows/build-push.yml rename to .github/workflows/build-push.yml index f683151..a757eb2 100644 --- a/.forgejo/workflows/build-push.yml +++ b/.github/workflows/build-push.yml @@ -1,29 +1,28 @@ name: "Publish and deploy" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true on: push: - branches: - - "stealth" + branches: [ "master" ] jobs: upload-solution: - name: Upload Octobot Stealth to production - runs-on: docker + name: Upload Octobot to production + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + environment: production steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup .NET 8 - uses: https://github.com/actions/setup-dotnet@v4 - with: - dotnet-version: 8 - - name: Publish solution run: dotnet publish $PUBLISH_FLAGS env: - DOTNET_NOLOGO: true - DOTNET_CLI_TELEMETRY_OPTOUT: true PUBLISH_FLAGS: ${{vars.PUBLISH_FLAGS}} - name: Setup SSH key diff --git a/src/BuildInfo.cs b/src/BuildInfo.cs index 34d511b..2eb6059 100644 --- a/src/BuildInfo.cs +++ b/src/BuildInfo.cs @@ -2,7 +2,7 @@ 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";