Skip to content

Commit

Permalink
Renormalize line endings (#173)
Browse files Browse the repository at this point in the history
* Add gitattributes

* Normalize line endings

* Update .gitattributes

Copy `CommunityToolkit.Maui`'s `.gitattributes`: https://github.com/CommunityToolkit/Maui/blob/main/.gitattributes

Co-authored-by: Brandon Minnick <[email protected]>
  • Loading branch information
Youssef1313 and TheCodeTraveler authored Jan 17, 2023
1 parent ebc006f commit 13a255a
Show file tree
Hide file tree
Showing 30 changed files with 528 additions and 458 deletions.
70 changes: 70 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain

# Force bash scripts to always use lf line endings so that if a repo is accessed
# in Unix via a file share from Windows, the scripts will work.
*.sh text eol=lf

# Force the docs to always use lf line endings
docs/**/*.xml text eol=lf
128 changes: 64 additions & 64 deletions .github/ISSUE_TEMPLATE/bug_report_template.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
name: Bug Report
description: Report a bug in the .NET MAUI Markup Toolkit
title: "[BUG] "
labels: [bug, unverified]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Current Behavior
description: A concise description of what you're experiencing.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A concise description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. Open and run solution fron reproduction repository.
1. Click the button and observe the bug 🐞
validations:
required: true
- type: input
attributes:
label: Link to public reproduction project repository
description: Please add a link to a public [reproduction project](https://github.com/dotnet/maui/blob/main/.github/repro.md) repository. Otherwise the issue will be marked with "Needs reproduction" label and will have a lower priority. Attached zip files cannot be opened by us.
validations:
required: true
- type: textarea
attributes:
label: Environment
description: |
examples:
- **.NET MAUI C# Markup CommunityToolkit**: 1.2.0
- **OS**: Windows 10 Build 10.0.19041.0
- **.NET MAUI**: 6.0.408
value: |
- .NET MAUI C# Markup CommunityToolkit:
- OS:
- .NET MAUI:
render: markdown
validations:
required: true
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
validations:
required: false
- type: markdown
attributes:
value: |
name: Bug Report
description: Report a bug in the .NET MAUI Markup Toolkit
title: "[BUG] "
labels: [bug, unverified]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Current Behavior
description: A concise description of what you're experiencing.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A concise description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. Open and run solution fron reproduction repository.
1. Click the button and observe the bug 🐞
validations:
required: true
- type: input
attributes:
label: Link to public reproduction project repository
description: Please add a link to a public [reproduction project](https://github.com/dotnet/maui/blob/main/.github/repro.md) repository. Otherwise the issue will be marked with "Needs reproduction" label and will have a lower priority. Attached zip files cannot be opened by us.
validations:
required: true
- type: textarea
attributes:
label: Environment
description: |
examples:
- **.NET MAUI C# Markup CommunityToolkit**: 1.2.0
- **OS**: Windows 10 Build 10.0.19041.0
- **.NET MAUI**: 6.0.408
value: |
- .NET MAUI C# Markup CommunityToolkit:
- OS:
- .NET MAUI:
render: markdown
validations:
required: true
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
validations:
required: false
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report.
186 changes: 93 additions & 93 deletions .github/ISSUE_TEMPLATE/open-a-new-feature-proposal.yml
Original file line number Diff line number Diff line change
@@ -1,94 +1,94 @@
name: Open a New Feature Proposal
description: For proposals that have been discussed in the Discussions tab and have been approved by a member of the core .NET MAUI Markup Toolkit team
title: "[Proposal] "
labels: [new, proposal]
body:

- type: input
attributes:
label: Feature name
description: Please add a name of the feature
validations:
required: true

- type: input
attributes:
label: Link to discussion
description: Please link to the completed/approved [Discussion](https://github.com/communitytoolkit/maui.markup/discussions)
validations:
required: true

- type: checkboxes
attributes:
label: Progress tracker
options:
- label: Android Implementation
- label: iOS Implementation
- label: MacCatalyst Implementation
- label: Windows Implementation
- label: Tizen Implementation
- label: Unit Tests
- label: Samples
- label: Documentation

- type: textarea
attributes:
label: Summary
description: One paragraph explanation of the feature.
validations:
required: true

- type: textarea
attributes:
label: Motivation
description: Why are we doing this? Which use cases does it enable? What is the expected outcome?
validations:
required: true

- type: textarea
attributes:
label: Detailed Design
description: This is the bulk of the proposal. Explain the design in enough detail for somebody familiar with .NET MAUI to understand, and for somebody familiar with the Community Toolkit to implement, and include examples of how the feature is used. Please include syntax and desired semantics for the change, including linking to the relevant parts of the existing .NET MAUI Toolkit spec to describe the changes necessary to implement this feature. An initial proposal does not need to cover all cases, but it should have enough detail to enable a community member to bring this proposal to design if they so choose.
validations:
required: true

- type: textarea
attributes:
label: Usage Syntax
render: markdown
description: Please provide an example of how an end-user will use this feature. If this is a UI control, please an example of the feature being consumed in a C# UI.
placeholder: |
Here is an example from Font<TFontElement>:
### C# Usage
```cs
Content = new Label().Font("OpenSansRegular", 14, bold: true, italic: true);
```
validations:
required: true

- type: textarea
attributes:
label: Drawbacks
description: Why should we *not* do this?
validations:
required: false

- type: textarea
attributes:
label: Alternatives
description: What other designs have been considered? What is the impact of not doing this?
validations:
required: false

- type: textarea
attributes:
label: Unresolved Questions
description: What parts of the design are still undecided?
validations:
required: false

- type: markdown
attributes:
name: Open a New Feature Proposal
description: For proposals that have been discussed in the Discussions tab and have been approved by a member of the core .NET MAUI Markup Toolkit team
title: "[Proposal] "
labels: [new, proposal]
body:

- type: input
attributes:
label: Feature name
description: Please add a name of the feature
validations:
required: true

- type: input
attributes:
label: Link to discussion
description: Please link to the completed/approved [Discussion](https://github.com/communitytoolkit/maui.markup/discussions)
validations:
required: true

- type: checkboxes
attributes:
label: Progress tracker
options:
- label: Android Implementation
- label: iOS Implementation
- label: MacCatalyst Implementation
- label: Windows Implementation
- label: Tizen Implementation
- label: Unit Tests
- label: Samples
- label: Documentation

- type: textarea
attributes:
label: Summary
description: One paragraph explanation of the feature.
validations:
required: true

- type: textarea
attributes:
label: Motivation
description: Why are we doing this? Which use cases does it enable? What is the expected outcome?
validations:
required: true

- type: textarea
attributes:
label: Detailed Design
description: This is the bulk of the proposal. Explain the design in enough detail for somebody familiar with .NET MAUI to understand, and for somebody familiar with the Community Toolkit to implement, and include examples of how the feature is used. Please include syntax and desired semantics for the change, including linking to the relevant parts of the existing .NET MAUI Toolkit spec to describe the changes necessary to implement this feature. An initial proposal does not need to cover all cases, but it should have enough detail to enable a community member to bring this proposal to design if they so choose.
validations:
required: true

- type: textarea
attributes:
label: Usage Syntax
render: markdown
description: Please provide an example of how an end-user will use this feature. If this is a UI control, please an example of the feature being consumed in a C# UI.
placeholder: |
Here is an example from Font<TFontElement>:
### C# Usage
```cs
Content = new Label().Font("OpenSansRegular", 14, bold: true, italic: true);
```
validations:
required: true

- type: textarea
attributes:
label: Drawbacks
description: Why should we *not* do this?
validations:
required: false

- type: textarea
attributes:
label: Alternatives
description: What other designs have been considered? What is the impact of not doing this?
validations:
required: false

- type: textarea
attributes:
label: Unresolved Questions
description: What parts of the design are still undecided?
validations:
required: false

- type: markdown
attributes:
value: Thanks for taking the time to fill out this feature proposal.
Loading

0 comments on commit 13a255a

Please sign in to comment.