From dd35e3a224bd68c00e017c529f8b1722ebfe5ddf Mon Sep 17 00:00:00 2001 From: mctaylors Date: Mon, 1 Apr 2024 00:47:25 +0300 Subject: [PATCH 1/2] Update RepositoryUrl Signed-off-by: mctaylors --- src/BuildInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BuildInfo.cs b/src/BuildInfo.cs index 2eb6059..34d511b 100644 --- a/src/BuildInfo.cs +++ b/src/BuildInfo.cs @@ -2,7 +2,7 @@ public static class BuildInfo { - public const string RepositoryUrl = "https://github.com/TeamOctolings/Octobot"; + public const string RepositoryUrl = "https://git.mctaylors.ru/TeamInklings/OctobotStealth"; public const string IssuesUrl = $"{RepositoryUrl}/issues"; From 94a7893c1bf11973b52d339181dff5db8959445f Mon Sep 17 00:00:00 2001 From: mctaylors Date: Mon, 1 Apr 2024 00:55:07 +0300 Subject: [PATCH 2/2] Add Forgejo Actions support Signed-off-by: mctaylors --- .../workflows/build-push.yml | 21 ++++----- .github/CODEOWNERS | 2 - .github/ISSUE_TEMPLATE/bug-report.yml | 43 ------------------- .github/ISSUE_TEMPLATE/config.yml | 1 - .github/ISSUE_TEMPLATE/feature-request.yml | 29 ------------- .github/dependabot.yml | 32 -------------- .github/labels.yml | 24 ----------- .github/workflows/build-pr.yml | 31 ------------- 8 files changed, 11 insertions(+), 172 deletions(-) rename {.github => .forgejo}/workflows/build-push.yml (83%) delete mode 100644 .github/CODEOWNERS delete mode 100644 .github/ISSUE_TEMPLATE/bug-report.yml delete mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/ISSUE_TEMPLATE/feature-request.yml delete mode 100644 .github/dependabot.yml delete mode 100644 .github/labels.yml delete mode 100644 .github/workflows/build-pr.yml diff --git a/.github/workflows/build-push.yml b/.forgejo/workflows/build-push.yml similarity index 83% rename from .github/workflows/build-push.yml rename to .forgejo/workflows/build-push.yml index a757eb2..f683151 100644 --- a/.github/workflows/build-push.yml +++ b/.forgejo/workflows/build-push.yml @@ -1,28 +1,29 @@ name: "Publish and deploy" -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true on: push: - branches: [ "master" ] + branches: + - "stealth" jobs: upload-solution: - name: Upload Octobot to production - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - environment: production + name: Upload Octobot Stealth to production + runs-on: docker 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/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 93a190c..0000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,2 +0,0 @@ -* @TeamOctolings/octobot -/docs/ @TeamOctolings/octobot-docs diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml deleted file mode 100644 index 9c0524f..0000000 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ /dev/null @@ -1,43 +0,0 @@ -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 deleted file mode 100644 index 0086358..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1 +0,0 @@ -blank_issues_enabled: true diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml deleted file mode 100644 index 2fd43c5..0000000 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ /dev/null @@ -1,29 +0,0 @@ -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 deleted file mode 100644 index 4545f2b..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,32 +0,0 @@ -# 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 deleted file mode 100644 index 8187db4..0000000 --- a/.github/labels.yml +++ /dev/null @@ -1,24 +0,0 @@ -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 deleted file mode 100644 index 859f8fa..0000000 --- a/.github/workflows/build-pr.yml +++ /dev/null @@ -1,31 +0,0 @@ -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