Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
afb87e7
Merge developer branch (#2)
josesimoes Oct 4, 2017
93f695c
Add ProjectTypeGuids to project file (#3)
josesimoes Dec 6, 2017
23ec6d5
Update Assembly info (#4)
josesimoes Dec 6, 2017
a7e72dd
Update build and Nuget badges
josesimoes Dec 7, 2017
4f38c4d
Remove Nuget references (#5)
josesimoes Dec 21, 2017
72a5f7d
Update Number.cs (#6)
Dec 21, 2017
b399f3b
Extract System.DateTime class and related (#7)
josesimoes Dec 22, 2017
9e71e2a
Revert "Extract System.DateTime class and related (#7)"
josesimoes Jan 3, 2018
70ddacb
Revert "Extract System.DateTime class and related (#7)" (#8)
josesimoes Jan 3, 2018
4e8c1f1
Merge branch 'develop' of https://github.com/nanoframework/lib-CoreLi…
josesimoes Jan 3, 2018
74b298b
Update Slack workspace URL
josesimoes Mar 16, 2018
e38f94e
Correct project URL
josesimoes Apr 2, 2018
a96be4e
Update comment on Random class (#9)
josesimoes Apr 2, 2018
715a324
Fix StringBuilder.Append(object value) (#10)
ishvedov May 28, 2018
ee06c27
Add Timeout.InfiniteTimeSpan (#11)
josesimoes Jun 1, 2018
85ad030
Add String.Format (#12)
ishvedov Jun 15, 2018
077c48d
Remove unnecessary properties
josesimoes Jun 15, 2018
621c58b
Add overloads with float parameters to Math methods (#13)
josesimoes Jun 15, 2018
81f916f
Work on TimeSpan (#14)
josesimoes Jun 15, 2018
20063ea
Work on Convert() class (#15)
josesimoes Jun 21, 2018
7844fce
Improve System.Single (#16)
josesimoes Aug 2, 2018
1b6a37c
Implement missing GetHashCode() on several classes/structs (#17)
josesimoes Aug 2, 2018
8deae82
Add all missing comments for documentation and Intellisense (#18)
josesimoes Aug 2, 2018
ddd69d0
Fix warnings for all fields required/used in the native end (#19)
josesimoes Aug 2, 2018
a63a648
Add Encoding.GetString() method (#20)
josesimoes Aug 2, 2018
8c40a56
Correct typos
josesimoes Aug 7, 2018
f80765c
Remove implementations of GetHashCode() from several classes (#21)
josesimoes Aug 7, 2018
1429349
Fix issue with ToString for doubles and floats (#22)
josesimoes Aug 8, 2018
0fb5e61
Update URL and mentions from Slack to Discord
josesimoes Aug 23, 2018
50d6aec
Correct Discord URL and add Discord badge
josesimoes Aug 23, 2018
0b391a5
Update README.md
josesimoes Aug 23, 2018
0d999c6
Add PS script to call Discord webhook on build failure
josesimoes Aug 30, 2018
6036a1f
Update appveyor.yml
josesimoes Aug 30, 2018
d9e569d
Add compiler response file
josesimoes Sep 6, 2018
de45317
Fix Hashtable.CopyTo (#23)
NemesisXB Sep 12, 2018
d66b36d
Fix StringBuilder constructor (#24)
MatthiasJentsch Sep 12, 2018
7b10260
Fix PostProcessInteger in System.Number (#25)
MatthiasJentsch Sep 12, 2018
3c23f49
Fix Assembly.GetType(string, bool) throws ArgumentException (#26)
NemesisXB Sep 12, 2018
f7a31df
Add option to remove AppDomains APIs with compiler constant (#28)
josesimoes Sep 28, 2018
05aa51b
Add GetCustomAttributes method to MemberInfo and derived classes (#27)
josesimoes Sep 28, 2018
2489027
Work on CI (#29)
josesimoes Sep 28, 2018
2d7ec2b
Update version +semver:patch
josesimoes Sep 28, 2018
8e2a04a
Update file encoding to UTF-8 (#30)
josesimoes Sep 28, 2018
f9a30b5
Work on CI (#31)
josesimoes Sep 28, 2018
7445542
Fix for AppVeyor build (#32)
josesimoes Sep 28, 2018
23c19b9
Update CHANGELOG for v1.0.1.80
nfbot Sep 28, 2018
78f0890
Fix gitversion not updating the correct AssemblyInfo2 source file
josesimoes Sep 28, 2018
bf59c1d
Update .github_changelog_generator
josesimoes Sep 28, 2018
f7e5105
Update CHANGELOG for v1.0.1.83
nfbot Sep 28, 2018
ae4c071
Update .github_changelog_generator
josesimoes Sep 28, 2018
8965b45
Update generate-change-log.ps1
josesimoes Sep 28, 2018
7482ebd
Update .github_changelog_generator
josesimoes Sep 28, 2018
9deff27
Update GitVersion.yml
josesimoes Sep 28, 2018
ac74145
Update CHANGELOG for v1.0.1-preview088
nfbot Sep 28, 2018
c889308
Update appveyor.yml
josesimoes Sep 28, 2018
f73fa60
Update appveyor.yml
josesimoes Sep 28, 2018
536191a
Update assembly info file for v1.0.1-preview091
nfbot Sep 28, 2018
9989d5c
Fix for commiting assembly info changes in AppVeyor (#33)
josesimoes Sep 28, 2018
0b21634
Update assembly info file for v1.0.1-preview093
nfbot Sep 28, 2018
944438a
Update assembly info file for v1.0.1-preview094
nfbot Sep 28, 2018
4ccfe2c
Update appveyor.yml
josesimoes Sep 28, 2018
fc21fb6
Work on CI (#34)
josesimoes Oct 1, 2018
8f02b7b
Update assembly info file for v1.0.1-preview097
nfbot Oct 1, 2018
854168f
Update branch name for version update (#35)
josesimoes Oct 1, 2018
e7996a3
Update assembly info file for v1.0.1-preview099
nfbot Oct 1, 2018
ac8dae9
Update commit-assemblyinfo-changes.ps1
josesimoes Oct 1, 2018
a7ed5b8
Update commit-assemblyinfo-changes.ps1
josesimoes Oct 1, 2018
bfa2192
Update commit-assemblyinfo-changes.ps1
josesimoes Oct 1, 2018
ca0afe7
Update assembly info file for v1.0.1-preview103
nfbot Oct 1, 2018
b9d8002
Update commit-assemblyinfo-changes.ps1
josesimoes Oct 1, 2018
faba84e
Repo reorganization (#36)
josesimoes Oct 2, 2018
3922637
Update assembly info file for v1.0.1-preview106
nfbot Oct 2, 2018
e0310ab
Work CI (#37)
josesimoes Oct 5, 2018
7e6e2ce
Update assembly info file for v1.0.1-preview108
nfbot Oct 5, 2018
dd87079
Update commit-assemblyinfo-changes.ps1
josesimoes Oct 5, 2018
0459af3
Update assembly info file for v1.0.1-preview110
nfbot Oct 5, 2018
bacac80
Update assembly info file for v1.0.1-preview111
nfbot Oct 6, 2018
0d40c3d
Update assembly info file for v1.0.1-preview112
nfbot Oct 7, 2018
3c90acf
Update assembly info file for v1.0.1-preview113
nfbot Oct 7, 2018
1d96d7e
Update assembly info file for v1.0.1-preview114
nfbot Oct 7, 2018
94c71bd
Add PowerShell script to automate dependecies update (#38)
josesimoes Oct 7, 2018
ccb533f
Update assembly info file for v1.0.1-preview116
nfbot Oct 8, 2018
194c814
Update update-dependencies.ps1
josesimoes Oct 8, 2018
483669f
Update assembly info file for v1.0.1-preview118
nfbot Oct 8, 2018
9c00200
Update update-dependencies.ps1
josesimoes Oct 8, 2018
254ed2e
Update update-dependencies.ps1
josesimoes Oct 8, 2018
7287243
Update assembly info file for v1.0.1-preview121
nfbot Oct 8, 2018
b200057
Update appveyor.yml
josesimoes Oct 8, 2018
a8f6f2c
Update assembly info file for v1.0.1-preview123
nfbot Oct 8, 2018
6b21f73
Update update-dependencies.ps1
josesimoes Oct 8, 2018
51f1673
Update update-dependencies.ps1
josesimoes Oct 8, 2018
e890bf5
Update update-dependencies.ps1
josesimoes Oct 8, 2018
371c072
Update assembly info file for v1.0.1-preview127
nfbot Oct 8, 2018
76cb903
Update README.md
josesimoes Oct 11, 2018
198aa00
Fix comment [ci skip]
josesimoes Oct 12, 2018
e77a8ee
Correct comment [skip ci]
josesimoes Oct 12, 2018
bd559a8
Update AppVeyor yaml [skip ci]
josesimoes Oct 12, 2018
a6d0c27
Update README.md
josesimoes Oct 12, 2018
745e2c7
Update appveyor.yml
josesimoes Oct 12, 2018
b77a0a5
Update assembly info file for v1.0.1-preview134
nfbot Oct 12, 2018
66bcea6
Update appveyor.yml
josesimoes Oct 13, 2018
7d58fa7
Update assembly info file for v1.0.1-preview136
nfbot Oct 15, 2018
1488514
Update update-dependencies.ps1
josesimoes Oct 15, 2018
d2e1a37
Update GitVersion.yml
josesimoes Oct 15, 2018
6e19922
Update appveyor.yml
josesimoes Oct 15, 2018
b597edb
Update update-dependencies.ps1
josesimoes Oct 15, 2018
37e9678
Update GitVersion.yml
josesimoes Oct 15, 2018
42ad904
Update appveyor.yml
josesimoes Oct 15, 2018
1c0ee49
Update update-dependencies.ps1
josesimoes Oct 15, 2018
3bbb857
Update update-dependencies.ps1
josesimoes Oct 15, 2018
693f382
Update update-dependencies.ps1
josesimoes Oct 15, 2018
d36b967
Update update-dependencies.ps1
josesimoes Oct 15, 2018
4ec1bd1
Update assembly info file for v1.0.1-rc001
nfbot Oct 15, 2018
0a6146b
Update update-dependencies.ps1
josesimoes Oct 15, 2018
22a51bf
Update update-dependencies.ps1
josesimoes Oct 15, 2018
a2141da
Update assembly info file for v1.0.2-rc001
nfbot Oct 15, 2018
053674b
Update appveyor.yml
josesimoes Oct 15, 2018
cbfe3b0
Update appveyor.yml
josesimoes Oct 15, 2018
ea944c1
Update appveyor.yml
josesimoes Oct 15, 2018
fbd9e29
Update appveyor.yml
josesimoes Oct 16, 2018
3fc1704
Update appveyor.yml
josesimoes Oct 16, 2018
bfe123f
Update commit-assemblyinfo-changes.ps1
josesimoes Oct 16, 2018
de5b589
Update generate-change-log.ps1
josesimoes Oct 16, 2018
3921021
Update appveyor.yml
josesimoes Oct 16, 2018
911da73
Update appveyor.yml
josesimoes Oct 16, 2018
c0d48f1
Update appveyor.yml
josesimoes Oct 16, 2018
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
14 changes: 14 additions & 0 deletions .github_changelog_generator
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
user=nanoframework
project=lib-CoreLibrary
issues=true
add_issues_wo_labels=false
add_pr_wo_labels=false
add_issues_wo_labels=false
filter_issues_by_milestone=false
exclude_labels=Area: Config-and-Build,Area: Infrastructure-and-Organization,reverted
enhancement_labels=Type: enhancement
bug_labels=Type: bug
merge_prefix=**Documentation and other chores:**
unreleased_label=**Changes available only in 'Preview' NuGet packages:**
issue_line_labels=Breaking-Change,documentation
author=false
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ artifacts/
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
Expand Down
108 changes: 108 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Change Log

## [**Changes available only in 'Preview' NuGet packages:**](https://github.com/nanoframework/lib-CoreLibrary/tree/HEAD)

[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview028...HEAD)

**Implemented enhancements:**

- Add GetCustomAttributes method to MemberInfo and derived classes [\#27](https://github.com/nanoframework/lib-CoreLibrary/pull/27)
- Add Encoding.GetString\(\) method [\#20](https://github.com/nanoframework/lib-CoreLibrary/pull/20)
- Implement missing GetHashCode\(\) on several classes/structs [\#17](https://github.com/nanoframework/lib-CoreLibrary/pull/17)
- Improve System.Single [\#16](https://github.com/nanoframework/lib-CoreLibrary/pull/16)
- Work on Convert\(\) class [\#15](https://github.com/nanoframework/lib-CoreLibrary/pull/15) [[documentation](https://github.com/nanoframework/lib-CoreLibrary/labels/documentation)]
- Work on TimeSpan [\#14](https://github.com/nanoframework/lib-CoreLibrary/pull/14)
- Add overloads with float parameters to Math methods [\#13](https://github.com/nanoframework/lib-CoreLibrary/pull/13)
- Add String.Format [\#12](https://github.com/nanoframework/lib-CoreLibrary/pull/12)
- Add Timeout.InfiniteTimeSpan and Sleep\(timespan\) [\#11](https://github.com/nanoframework/lib-CoreLibrary/pull/11)
- Update Assembly info [\#4](https://github.com/nanoframework/lib-CoreLibrary/pull/4)

**Fixed bugs:**

- Fix Assembly.GetType\(string, bool\) throws ArgumentException [\#26](https://github.com/nanoframework/lib-CoreLibrary/pull/26)
- Fix PostProcessInteger in System.Number [\#25](https://github.com/nanoframework/lib-CoreLibrary/pull/25)
- Constructor should copy only the desired chars [\#24](https://github.com/nanoframework/lib-CoreLibrary/pull/24)
- Fix Hashtable.CopyTo [\#23](https://github.com/nanoframework/lib-CoreLibrary/pull/23)
- Fix issue with ToString for doubles and floats [\#22](https://github.com/nanoframework/lib-CoreLibrary/pull/22)
- Remove implementations of GetHashCode\(\) from several classes [\#21](https://github.com/nanoframework/lib-CoreLibrary/pull/21)
- Fix infinite loop in Append\(object value\) [\#10](https://github.com/nanoframework/lib-CoreLibrary/pull/10)
- Update Number.cs [\#6](https://github.com/nanoframework/lib-CoreLibrary/pull/6)

**Documentation and other chores:**

- Add all missing comments for documentation and Intellisense [\#18](https://github.com/nanoframework/lib-CoreLibrary/pull/18) [[documentation](https://github.com/nanoframework/lib-CoreLibrary/labels/documentation)]
- Update comment on Random class [\#9](https://github.com/nanoframework/lib-CoreLibrary/pull/9) [[documentation](https://github.com/nanoframework/lib-CoreLibrary/labels/documentation)]

## [v1.0.0-preview028](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview028) (2017-08-31)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview027...v1.0.0-preview028)

## [v1.0.0-preview027](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview027) (2017-08-30)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview026...v1.0.0-preview027)

## [v1.0.0-preview026](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview026) (2017-08-23)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview025...v1.0.0-preview026)

## [v1.0.0-preview025](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview025) (2017-08-23)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview024...v1.0.0-preview025)

## [v1.0.0-preview024](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview024) (2017-08-23)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview023...v1.0.0-preview024)

## [v1.0.0-preview023](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview023) (2017-08-18)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview022...v1.0.0-preview023)

## [v1.0.0-preview022](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview022) (2017-06-28)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview021...v1.0.0-preview022)

## [v1.0.0-preview021](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview021) (2017-06-28)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview020...v1.0.0-preview021)

## [v1.0.0-preview020](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview020) (2017-05-31)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview019...v1.0.0-preview020)

## [v1.0.0-preview019](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview019) (2017-05-31)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview018...v1.0.0-preview019)

## [v1.0.0-preview018](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview018) (2017-05-31)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview017...v1.0.0-preview018)

## [v1.0.0-preview017](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview017) (2017-05-23)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview016...v1.0.0-preview017)

## [v1.0.0-preview016](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview016) (2017-05-13)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview015...v1.0.0-preview016)

## [v1.0.0-preview015](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview015) (2017-05-12)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview014...v1.0.0-preview015)

## [v1.0.0-preview014](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview014) (2017-05-09)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview013...v1.0.0-preview014)

## [v1.0.0-preview013](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview013) (2017-05-08)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview012...v1.0.0-preview013)

## [v1.0.0-preview012](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview012) (2017-05-05)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview011...v1.0.0-preview012)

## [v1.0.0-preview011](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview011) (2017-05-04)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview010...v1.0.0-preview011)

## [v1.0.0-preview010](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview010) (2017-05-04)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview009...v1.0.0-preview010)

## [v1.0.0-preview009](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview009) (2017-05-03)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview008...v1.0.0-preview009)

## [v1.0.0-preview008](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview008) (2017-05-03)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview007...v1.0.0-preview008)

## [v1.0.0-preview007](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview007) (2017-05-02)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview006...v1.0.0-preview007)

## [v1.0.0-preview006](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview006) (2017-04-28)
[Full Changelog](https://github.com/nanoframework/lib-CoreLibrary/compare/v1.0.0-preview005...v1.0.0-preview006)

## [v1.0.0-preview005](https://github.com/nanoframework/lib-CoreLibrary/tree/v1.0.0-preview005) (2017-04-28)


\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
18 changes: 14 additions & 4 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
next-version: 1.0.0
assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
assembly-informational-format: '{LegacySemVerPadded}'
build-metadata-padding: 3
legacy-semver-padding: 3
assembly-informational-format: '{LegacySemVerPadded}'
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'
commit-message-incrementing: MergeMessageOnly
branches:
master:
mode: ContinuousDelivery
Expand All @@ -15,14 +15,24 @@ branches:
prevent-increment-of-merged-branch-version: true
track-merge-target: false
develop:
regex: dev(elop)?(ment)?$
mode: ContinuousDeployment
tag: preview
increment: Minor
increment: Patch
prevent-increment-of-merged-branch-version: false
track-merge-target: true
tracks-release-branches: true
is-release-branch: false
release:
tag: rc
(pull|pull\-requests|pr)[/-]:
pull-request:
regex: (pull|pull\-requests|pr)[/-]
tag: alpha
mode: ContinuousDelivery
increment: Inherit
prevent-increment-of-merged-branch-version: false
track-merge-target: false
tracks-release-branches: false
is-release-branch: false
ignore:
sha: []
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/nanoframework/Home/blob/master/LICENSE) [![NuGet](https://img.shields.io/nuget/dt/nanoFramework.CoreLibrary.svg)]() [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/master/CONTRIBUTING.md)
[![Discord](https://img.shields.io/discord/478725473862549535.svg)](https://discord.gg/gCyBu8T)


![nanoFramework logo](https://github.com/nanoframework/Home/blob/master/resources/logo/nanoFramework-repo-logo.png)

-----

### Welcome to the **nanoFramework** Core Library repository!

[![NuGet](https://img.shields.io/nuget/dt/nanoFramework.CoreLibrary.svg)]() [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/master/CONTRIBUTING.md)


## Build status

| Component | Build Status | NuGet Package |
|:-|---|---|
| Core Library | [![Build status](https://ci.appveyor.com/api/projects/status/5b37qa4h0o2ci3db/branch/master?svg=true)](https://ci.appveyor.com/project/nfbot/lib-corelibrary/branch/master) | [![NuGet](https://img.shields.io/nuget/v/nanoFramework.CoreLibrary.svg)]() |
| Core Library (preview) | [![Build status](https://ci.appveyor.com/api/projects/status/5b37qa4h0o2ci3db?svg=true)](https://ci.appveyor.com/project/nfbot/lib-corelibrary) | [![NuGet](https://img.shields.io/nuget/vpre/nanoFramework.CoreLibrary.svg)]() |
| Core Library | [![Build status](https://ci.appveyor.com/api/projects/status/5b37qa4h0o2ci3db/branch/master?svg=true)](https://ci.appveyor.com/project/nfbot/lib-corelibrary/branch/master) | [![NuGet](https://img.shields.io/nuget/vpre/nanoFramework.CoreLibrary.svg)](https://www.nuget.org/packages/nanoFramework.CoreLibrary/) |
| Core Library (preview) | [![Build status](https://ci.appveyor.com/api/projects/status/5b37qa4h0o2ci3db/branch/develop?svg=true)](https://ci.appveyor.com/project/nfbot/lib-corelibrary/branch/develop) | [![MyGet Pre Release](https://img.shields.io/myget/nanoframework-dev/vpre/nanoFramework.CoreLibrary.svg)](https://www.myget.org/feed/nanoframework-dev/package/nuget/nanoFramework.CoreLibrary) |


## Feedback and documentation

For documentation, providing feedback, issues and finding out how to contribute please refer to the [Home repo](https://github.com/nanoframework/Home).

Join our Slack community by filling in this [invite form](https://nanoframework.wordpress.com/slack-invite-form/).
Join our Discord community [here](https://discord.gg/gCyBu8T).


## Credits
Expand Down
82 changes: 82 additions & 0 deletions appveyor-discord.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Copyright (c) 2017 The nanoFramework project contributors
# Portions Copyright (c) Sankarsan Kampa (a.k.a. k3rn31p4nic). All rights reserved.
# See LICENSE file in the project root for full license information.

$STATUS=$args[0]
$WEBHOOK_URL=$args[1]

Write-Output "[Webhook]: Sending webhook to Discord..."

Switch ($STATUS) {
"success" {
$EMBED_COLOR=3066993
$STATUS_MESSAGE="Passed"
Break
}
"failure" {
$EMBED_COLOR=15158332
$STATUS_MESSAGE="Failed"
Break
}
default {
Write-Output "Default!"
Break
}
}

if (!$env:APPVEYOR_REPO_COMMIT) {
$env:APPVEYOR_REPO_COMMIT="$(git log -1 --pretty="%H")"
}

$AUTHOR_NAME="$(git log -1 "$env:APPVEYOR_REPO_COMMIT" --pretty="%aN")"
$COMMITTER_NAME="$(git log -1 "$env:APPVEYOR_REPO_COMMIT" --pretty="%cN")"
$COMMIT_SUBJECT="$(git log -1 "$env:APPVEYOR_REPO_COMMIT" --pretty="%s")"
$COMMIT_MESSAGE="$(git log -1 "$env:APPVEYOR_REPO_COMMIT" --pretty="%b")"

if ($AUTHOR_NAME -eq $COMMITTER_NAME) {
$CREDITS = "$AUTHOR_NAME authored & committed"
}
else {
$CREDITS = "$AUTHOR_NAME authored & $COMMITTER_NAME committed"
}

if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
$URL="https://github.com/$env:APPVEYOR_REPO_NAME/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER"
}
else {
$URL=""
}

$BUILD_VERSION = [uri]::EscapeDataString($env:APPVEYOR_BUILD_VERSION)

$WEBHOOK_DATA="{
""embeds"": [ {
""color"": $EMBED_COLOR,
""author"": {
""name"": ""Job #$env:APPVEYOR_JOB_NUMBER (Build #$env:APPVEYOR_BUILD_NUMBER) $STATUS_MESSAGE - $env:APPVEYOR_REPO_NAME"",
""url"": ""https://ci.appveyor.com/project/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/build/$BUILD_VERSION"",
""icon_url"": ""$AVATAR""
},
""title"": ""$COMMIT_SUBJECT"",
""url"": ""$URL"",
""description"": ""$COMMIT_MESSAGE $CREDITS"",
""fields"": [
{
""name"": ""Commit"",
""value"": ""[``$($env:APPVEYOR_REPO_COMMIT.substring(0, 7))``](https://github.com/$env:APPVEYOR_REPO_NAME/commit/$env:APPVEYOR_REPO_COMMIT)"",
""inline"": true
},
{
""name"": ""Branch/Tag"",
""value"": ""[``$env:APPVEYOR_REPO_BRANCH``](https://github.com/$env:APPVEYOR_REPO_NAME/tree/$env:APPVEYOR_REPO_BRANCH)"",
""inline"": true
}
]
} ],
""content"" : """",
""file"": """"
}"

Invoke-RestMethod -Uri $WEBHOOK_URL -Method POST -UserAgent AppVeyor-Webhook -ContentType 'application/json' -Body $WEBHOOK_DATA

Write-Output "[Webhook]: Successfully sent the webhook."
Loading