Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release version 0.1.0.1 #29

Merged
merged 29 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ac0683f
Add initial skeleton
baynezy Mar 21, 2024
3fe9ce7
Merge pull request #2 from Afterlife-Guide/feature/issue-1-skeleton
baynezy Mar 21, 2024
e739745
Add auto labelling workflow
baynezy Mar 21, 2024
afd4a80
Merge pull request #4 from Afterlife-Guide/feature/issue-3-labels
baynezy Mar 21, 2024
e4f551d
Add README
baynezy Mar 21, 2024
262f753
Merge pull request #6 from Afterlife-Guide/feature/issue-5-readme
baynezy Mar 21, 2024
b3922e6
Add issue workflow
baynezy Mar 21, 2024
bae0547
Merge pull request #10 from Afterlife-Guide/feature/issue-9-new
baynezy Mar 21, 2024
5c873a3
Add commit template
baynezy Mar 21, 2024
1dffcf8
Merge pull request #11 from Afterlife-Guide/feature/issue-8-template
baynezy Mar 21, 2024
c3578b4
Add Gitstream
baynezy Mar 21, 2024
0d02f44
Merge pull request #12 from Afterlife-Guide/feature/issue-7-gitstream
baynezy Mar 21, 2024
eca5a62
Add license
baynezy Mar 21, 2024
481154b
Merge pull request #14 from Afterlife-Guide/feature/issue-13-license
baynezy Mar 21, 2024
a03326f
Add Ci/CD pipeline
baynezy Mar 21, 2024
42476c3
Merge pull request #19 from Afterlife-Guide/feature/issue-15-cicd
baynezy Mar 21, 2024
f6268ca
Add editorconfig
baynezy Mar 21, 2024
4ebaa07
Add dependabot configuration
baynezy Mar 21, 2024
7889848
Merge pull request #21 from Afterlife-Guide/feature/issue-18-editor
baynezy Mar 21, 2024
e070479
Merge pull request #22 from Afterlife-Guide/feature/issue-18-dependabot
baynezy Mar 21, 2024
34b0ce2
Resolve deprecated unit test upload action
baynezy Mar 21, 2024
195c10d
Merge pull request #23 from Afterlife-Guide/feature/issue-20-unit-tests
baynezy Mar 21, 2024
1a6b397
Enable GitHub Action for the project
baynezy Mar 21, 2024
531361c
Merge pull request #24 from Afterlife-Guide/feature/issue-16-action
baynezy Mar 22, 2024
0104504
Move dogfooding to develop
baynezy Mar 22, 2024
7dc95c7
Merge pull request #26 from Afterlife-Guide/feature/issue-25-dogfood
baynezy Mar 22, 2024
7ed6547
Add blocked issue workflow
baynezy Mar 22, 2024
4504613
Merge pull request #28 from Afterlife-Guide/feature/issue-27-blocked
baynezy Mar 22, 2024
f9ea773
Prepare release 0.1.0.1
Mar 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .cm/gitstream.cm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -*- mode: yaml -*-

manifest:
version: 1.0

automations:
estimated_time_to_review:
if:
- true
run:
- action: add-label@v1
args:
label: "{{ calc.etr }} min review"
color: {{ 'E94637' if (calc.etr >= 20) else ('FBBD10' if (calc.etr >= 5) else '36A853') }}

calc:
etr: {{ branch | estimatedReviewTime }}
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/.idea
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
207 changes: 207 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
end_of_line = lf
insert_final_newline = false
indent_style = space
indent_size = 4
charset = utf-8

[*.tf]
indent_size = 2

[*.yml]
indent_size = 2

#### .NET Coding Conventions ####

# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = false
file_header_template = unset

# this. and Me. preferences
dotnet_style_qualification_for_event = false:silent
dotnet_style_qualification_for_field = false:silent
dotnet_style_qualification_for_method = false:silent
dotnet_style_qualification_for_property = false:silent

# Language keywords vs BCL types preferences
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
dotnet_style_predefined_type_for_member_access = true:silent

# Parentheses preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent

# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent

# Expression-level preferences
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_object_initializer = true:suggestion
dotnet_style_operator_placement_when_wrapping = beginning_of_line
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion

# Field preferences
dotnet_style_readonly_field = true:suggestion

# Parameter preferences
dotnet_code_quality_unused_parameters = all:suggestion

# Suppression preferences
dotnet_remove_unnecessary_suppression_exclusions = none

#### C# Coding Conventions ####

# var preferences
csharp_style_var_elsewhere = false:silent
csharp_style_var_for_built_in_types = false:silent
csharp_style_var_when_type_is_apparent = false:silent

# Expression-bodied members
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent

# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_prefer_not_pattern = true:suggestion
csharp_style_prefer_pattern_matching = true:silent
csharp_style_prefer_switch_expression = true:suggestion

# Null-checking preferences
csharp_style_conditional_delegate_call = true:suggestion

# Modifier preferences
csharp_prefer_static_local_function = true:suggestion
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:silent

# Code-block preferences
csharp_prefer_braces = true:silent
csharp_prefer_simple_using_statement = true:suggestion

# Expression-level preferences
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_pattern_local_over_anonymous_function = true:suggestion
csharp_style_prefer_index_operator = true:suggestion
csharp_style_prefer_range_operator = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
csharp_style_unused_value_expression_statement_preference = discard_variable:silent

# 'using' directive preferences
csharp_using_directive_placement = inside_namespace:silent

#### C# Formatting Rules ####

# New line preferences
csharp_new_line_before_catch = true
csharp_new_line_before_else = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_open_brace = all
csharp_new_line_between_query_expression_clauses = true

# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = true
csharp_indent_labels = one_less_than_current
csharp_indent_switch_labels = true

# Space preferences
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true

#### Naming styles ####

# Naming rules

dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i

dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case

dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case

# Symbol specifications

dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =

dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =

dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =

# Naming styles

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 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://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "nuget"
directory: "/" # Location of package manifests
schedule:
interval: "daily"
labels:
- "dependencies"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
interval: "daily"
labels:
- "dependencies"
42 changes: 42 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
- name: "blocked"
color: "ff0000"
description: "This issue is blocked by another issue"
- name: "breaking change"
color: "ff0205"
description: "This change will require a major version bump"
- name: "bug"
color: "d73a4a"
description: "Something isn't working"
- name: "dependencies"
color: "0366d6"
description: "Pull requests that update a dependency file"
- name: "documentation"
color: "0075ca"
description: "Improvements or additions to documentation"
- name: "duplicate"
color: "cfd3d7"
description: "This issue or pull request already exists"
- name: "environment"
color: "703E17"
description: "Improvement, to infra or build environment"
- name: "feature"
color: "fbca04"
description: "A new business feature"
- name: "in progress"
color: "5ae1c2"
description: "In flight work"
- name: "next release"
color: "5319e7"
description: "Completed work that is yet to be deployed"
- name: "security"
color: "000000"
description: "Security related work"
- name: "spike"
color: "65ff00"
description: "Testing if something is possible, or learning a new technology"
- name: "technical debt"
color: "c19337"
description: "An issue describing some technical debt that needs to be addressed in the future"
- name: "to do"
color: "fbca04"
description: "Work that is yet to be started"
36 changes: 36 additions & 0 deletions .github/workflows/blocked-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Blocked Issue Labeler

on:
issues:
types:
- opened
- edited
issue_comment:
types:
- created
- edited

jobs:
add-blocked-label:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Add blocked label if issue is blocked
run: |
body=$BODY
comment=$COMMENT
issue_number=${{ github.event.issue.number }}

# if body contains "blocked" or comment contains "blocked"
# add label "blocked"

if [[ "${body,,}" == *"blocked"* ]] || [[ "${comment,,}" == *"blocked"* ]]; then
echo "Issue is blocked"
echo "Adding blocked label"
gh issue edit $issue_number --add-label blocked
fi
env:
BODY: ${{ github.event.issue.body }}
COMMENT: ${{ github.event.comment.body }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/branch-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy Develop Branch

on:
push:
branches:
- develop
paths:
- 'src/**'
- 'test/**'
- '**.sln'
- '**.cake'
- '.github/workflows/branch-develop.yml'
- '.github/workflows/step-*.yml'
workflow_dispatch:

jobs:
get-version:
uses: ./.github/workflows/step-version.yml

build:
needs: [get-version]
uses: ./.github/workflows/step-build.yml
secrets: inherit
with:
version: ${{ needs.get-version.outputs.version }}
checkout-ref: ${{ github.base_ref }}
Loading
Loading