Add Forgejo Actions support
Some checks failed
Publish and deploy / Upload Octobot Stealth to production (push) Has been cancelled

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2024-04-01 01:51:06 +03:00
parent 9429dfe8d8
commit 76214c9951
Signed by: mctaylors
GPG key ID: 7181BEBE676903C1
8 changed files with 11 additions and 172 deletions

View file

@ -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

2
.github/CODEOWNERS vendored
View file

@ -1,2 +0,0 @@
* @TeamOctolings/octobot
/docs/ @TeamOctolings/octobot-docs

View file

@ -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

View file

@ -1 +0,0 @@
blank_issues_enabled: true

View file

@ -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

View file

@ -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.*"

24
.github/labels.yml vendored
View file

@ -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

View file

@ -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