Skip to content

Commit

Permalink
initial commit for public
Browse files Browse the repository at this point in the history
  • Loading branch information
Genteure committed Dec 10, 2022
0 parents commit 55e18f7
Show file tree
Hide file tree
Showing 108 changed files with 7,381 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = true
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Bug Report
description: File a bug report
labels: ["bug", "triage"]
body:
- type: input
id: version
attributes:
label: Version
description: What version of Naprise are you running?
placeholder: 1.0.0
validations:
required: true
- type: input
id: platform
attributes:
label: Platform
description: What .NET version and operating system are you running on?
placeholder: .NET 6 on Windows 10 and Ubuntu 20.04
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected Behavior
description: What you expected to happen.
validations:
required: true
- type: textarea
id: current-behavior
attributes:
label: Current Behavior
description: What is happening.
validations:
required: true
- type: textarea
id: extra-info
attributes:
label: Extra Info
description: Add any other context about the problem here.
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Feature Request
description: Suggest an idea
labels: ["enhancement", "triage"]
body:
- type: textarea
id: description
attributes:
label: Description
description: What the problem is. Ex. I'm always frustrated when [...]
validations:
required: true
- type: textarea
id: solution
attributes:
label: Proposed Solution
description: What you want to happen.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives
description: Any alternative solutions or features you've considered.
validations:
required: false
- type: textarea
id: extra-info
attributes:
label: Extra Info
description: Add any other context about the feature request here.
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: Question
about: Ask a question about Naprise
title: ''
labels: 'question'
---
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/service-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Service Request
description: Request a new notification service
title: "Add New Service: "
labels: ["service-request", "up for grabs", "good first issue", "help wanted"]
body:
- type: input
id: name
attributes:
label: Name
description: What is the name of the service?
placeholder: "Discord"
validations:
required: true
- type: input
id: url
attributes:
label: Homepage
description: What is the URL of the service?
placeholder: "https://discord.com"
validations:
required: true
- type: input
id: api-docs
attributes:
label: API Documentation
description: What is the URL of the service's API documentation?
placeholder: "https://discord.com/developers/docs/resources/webhook#execute-webhook"
validations:
required: true
- type: dropdown
id: contribution
attributes:
label: Contribution
description: Are you planning to contribute a PR for this service in the near future?
options:
- "I'm planning to contribute a PR in the near future"
- "I'm not planning to contribute a PR in the near future"
validations:
required: true
- type: textarea
id: extra-info
attributes:
label: Extra Info
description: Add any other context about the service here.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build & Publish

on:
push:
pull_request:

jobs:
build:
runs-on: windows-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0

- name: Install .NET 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7'

- name: Build, Test, Pack, Publish
shell: bash
run: |
dotnet tool install -g dotnet-releaser
dotnet-releaser run --nuget-token "${{secrets.NUGET_TOKEN}}" --github-token "${{secrets.GITHUB_TOKEN}}" src/dotnet-releaser.toml
- name: Upload build artifacts
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: src/artifacts-dotnet-releaser
46 changes: 46 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "CodeQL"

on:
push:
branches: [ 'main' ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ 'main' ]
schedule:
- cron: '50 7 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: false

- uses: actions/setup-dotnet@v2

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: csharp
queries: +security-extended

- name: Build CLI
run: dotnet build src

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:csharp"
23 changes: 23 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Docs

on:
workflow_dispatch:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: |
cd docs
pip3 install -r requirements.txt
mkdocs gh-deploy --strict --force --no-history
22 changes: 22 additions & 0 deletions .github/workflows/update-copyright-years.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Update copyright year(s) in license file

on:
workflow_dispatch:
schedule:
- cron: "0 3 1 1 *"

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
transform: (?<=copyright\s+(?:\(c\)|©)?\s*)(?<from>\d{4})(?:-\d{4})?
path: |
LICENSE
src/Directory.Build.props
docs/mkdocs.yml
Loading

0 comments on commit 55e18f7

Please sign in to comment.