Skip to content

Commit 1b9d3d7

Browse files
committed
Initial commit
0 parents  commit 1b9d3d7

39 files changed

+1706
-0
lines changed

.editorconfig

+433
Large diffs are not rendered by default.

.gitattributes

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
###############################
2+
# Git Line Endings #
3+
###############################
4+
5+
# Set default behavior to automatically normalize line endings.
6+
* text=auto
7+
8+
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
9+
# in Windows via a file share from Linux, the scripts will work.
10+
*.{cmd,[cC][mM][dD]} text eol=crlf
11+
*.{bat,[bB][aA][tT]} text eol=crlf
12+
13+
# Force bash scripts to always use LF line endings so that if a repo is accessed
14+
# in Unix via a file share from Windows, the scripts will work.
15+
*.sh text eol=lf
16+
17+
###############################
18+
# Git Large File System (LFS) #
19+
###############################
20+
21+
# Archives
22+
*.7z filter=lfs diff=lfs merge=lfs -text
23+
*.br filter=lfs diff=lfs merge=lfs -text
24+
*.gz filter=lfs diff=lfs merge=lfs -text
25+
*.tar filter=lfs diff=lfs merge=lfs -text
26+
*.zip filter=lfs diff=lfs merge=lfs -text
27+
28+
# Documents
29+
*.pdf filter=lfs diff=lfs merge=lfs -text
30+
31+
# Images
32+
*.gif filter=lfs diff=lfs merge=lfs -text
33+
*.ico filter=lfs diff=lfs merge=lfs -text
34+
*.jpg filter=lfs diff=lfs merge=lfs -text
35+
*.pdf filter=lfs diff=lfs merge=lfs -text
36+
*.png filter=lfs diff=lfs merge=lfs -text
37+
*.psd filter=lfs diff=lfs merge=lfs -text
38+
*.webp filter=lfs diff=lfs merge=lfs -text
39+
40+
# Fonts
41+
*.woff2 filter=lfs diff=lfs merge=lfs -text
42+
43+
# Other
44+
*.exe filter=lfs diff=lfs merge=lfs -text

.github/CODE_OF_CONDUCT.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behaviour that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behaviour by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behaviour and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behaviour.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviours that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behaviour may be
58+
reported by contacting [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

.github/CONTRIBUTING.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# All contributions, however small are valued!
2+
3+
# Steps to contribute
4+
5+
If you want to make a small change, go ahead and raise a pull request, otherwise follow these steps:
6+
7+
1. View the [Issues](https://github.com/geewee/BetterHostedServices/issues) page to see a To-Do list of things to be implemented.
8+
2. Raise an issue or comment on an existing issue with what you want to contribute if one does not already exist.
9+
3. When you get the go ahead, follow the coding guidelines and raise a pull request.
10+
4. Include a link to the issue in your pull request.
11+
12+
# Coding Guidelines
13+
14+
- Projects use StyleCop and .editorconfig to produce style warnings. Please fix all warnings in any code you submit.
15+
- Write unit tests for any code written.
16+

.github/ISSUE_TEMPLATE/BUG_REPORT.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
### Describe the bug
10+
11+
A clear and concise description of what the bug is.
12+
13+
### To Reproduce
14+
15+
A link to some code to reproduce the bug can speed up a fix. Alternatively, show steps to reproduce the behaviour:
16+
17+
1. Go to '...'
18+
2. Click on '....'
19+
3. Scroll down to '....'
20+
4. See error
21+
22+
### Expected behaviour
23+
24+
A clear and concise description of what you expected to happen.
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
### Describe the feature
10+
11+
A clear and concise description of what the feature is.

.github/ISSUE_TEMPLATE/QUESTION.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Question
3+
about: Ask a general question about how to use the project
4+
title: ''
5+
labels: question
6+
assignees: ''
7+
---
8+
9+
### Question
10+
11+
Ask your question.

.github/PULL_REQUEST_TEMPLATE.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!--
2+
Thank you good citizen for your hard work!
3+
4+
Please read the contributing guide before raising a pull request.
5+
https://github.com/geewee/BetterHostedServices/blob/master/.github/CONTRIBUTING.md
6+
-->

.github/SECURITY.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
This project supports only the latest version with security updates. However, we'll do our best to help and answer questions about older versions.
6+
7+
## Reporting a Vulnerability
8+
9+
Contact [email protected] to report a security vulnerability. You will be thanked!

.github/release-drafter.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# release-drafter automatically creates a draft release for you each time you complete a PR in the master branch.
2+
# It uses GitHub labels to categorize changes (See categories) and draft the release.
3+
# release-drafter also generates a version for your release based on GitHub labels. You can add a label of 'major',
4+
# 'minor' or 'patch' to determine which number in the version to increment.
5+
# You may need to add these labels yourself.
6+
# See https://github.com/release-drafter/release-drafter
7+
name-template: '$RESOLVED_VERSION'
8+
tag-template: '$RESOLVED_VERSION'
9+
change-template: '- $TITLE by @$AUTHOR (#$NUMBER)'
10+
no-changes-template: '- No changes'
11+
categories:
12+
- title: '🚀 New Features'
13+
labels:
14+
- 'enhancement'
15+
- title: '🐛 Bug Fixes'
16+
labels:
17+
- 'bug'
18+
- title: '🧰 Maintenance'
19+
labels:
20+
- 'maintenance'
21+
version-resolver:
22+
major:
23+
labels:
24+
- 'major'
25+
minor:
26+
labels:
27+
- 'minor'
28+
patch:
29+
labels:
30+
- 'patch'
31+
default: patch
32+
template: |
33+
$CHANGES
34+
35+
## 👨🏼‍💻 Contributors
36+
37+
$CONTRIBUTORS

.github/workflows/build.yml

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
release:
8+
types:
9+
- published
10+
11+
env:
12+
# Disable the .NET logo in the console output.
13+
DOTNET_NOLOGO: true
14+
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
15+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
16+
# Disable sending .NET CLI telemetry to Microsoft.
17+
DOTNET_CLI_TELEMETRY_OPTOUT: true
18+
# Set the build number in MinVer.
19+
MINVERBUILDMETADATA: build.${{github.run_number}}
20+
21+
jobs:
22+
build:
23+
name: Build-${{matrix.os}}
24+
runs-on: ${{matrix.os}}
25+
strategy:
26+
matrix:
27+
os: [ubuntu-latest, windows-latest, macOS-latest]
28+
steps:
29+
- name: 'Checkout'
30+
uses: actions/checkout@v2
31+
with:
32+
lfs: true
33+
fetch-depth: 0
34+
- name: 'Git Fetch Tags'
35+
run: git fetch --tags
36+
shell: pwsh
37+
- name: 'Install .NET Core SDK'
38+
uses: actions/setup-dotnet@v1
39+
with:
40+
dotnet-version: 3.1.401
41+
- name: 'Dotnet Tool Restore'
42+
run: dotnet tool restore
43+
shell: pwsh
44+
- name: 'Dotnet Cake Build'
45+
run: dotnet cake --target=Build
46+
shell: pwsh
47+
- name: 'Dotnet Cake Test'
48+
run: dotnet cake --target=Test
49+
shell: pwsh
50+
- name: 'Dotnet Cake Pack'
51+
run: dotnet cake --target=Pack
52+
shell: pwsh
53+
- name: 'Publish Artefacts'
54+
uses: actions/[email protected]
55+
with:
56+
name: ${{matrix.os}}
57+
path: './Artefacts'
58+
59+
push-github-packages:
60+
name: 'Push GitHub Packages'
61+
needs: build
62+
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
63+
runs-on: windows-latest
64+
steps:
65+
- name: 'Download Artefact'
66+
uses: actions/download-artifact@v1
67+
with:
68+
name: 'windows-latest'
69+
- name: 'Dotnet NuGet Add Source'
70+
run: dotnet nuget add source https://nuget.pkg.github.com/geewee/index.json --name GitHub --username geewee --password ${{secrets.GITHUB_TOKEN}}
71+
shell: pwsh
72+
- name: 'Dotnet NuGet Push'
73+
# Workaround bug when pushing to GitHub Packages. See https://github.com/NuGet/Home/issues/9775
74+
env:
75+
DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER: 0
76+
run: |
77+
$count = 0;
78+
do {
79+
++$count;
80+
dotnet nuget push .\windows-latest\*.nupkg --source GitHub --skip-duplicate;
81+
}
82+
while ($count -lt 1000 -and $LastExitCode -ne 0)
83+
shell: pwsh
84+
85+
push-nuget:
86+
name: 'Push NuGet Packages'
87+
needs: build
88+
if: github.event_name == 'release'
89+
runs-on: windows-latest
90+
steps:
91+
- name: 'Download Artefact'
92+
uses: actions/download-artifact@v1
93+
with:
94+
name: 'windows-latest'
95+
- name: 'Dotnet NuGet Push'
96+
run: |
97+
Get-ChildItem .\windows-latest -Filter *.nupkg |
98+
Where-Object { !$_.Name.Contains('preview') } |
99+
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} }
100+
shell: pwsh

.github/workflows/release-drafter.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
update_release_draft:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: release-drafter/release-drafter@v5
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)