From 6085e25465b4e9c08c3adf3dfce859fdc4900eec Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Quang Date: Tue, 29 Jun 2021 20:18:33 +0700 Subject: [PATCH 1/5] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 38 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..dd84ea7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. From 59d756f64d450003c22efb7917d4c7a7fc38de06 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Quang Date: Tue, 29 Jun 2021 20:44:40 +0700 Subject: [PATCH 2/5] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d001f02..11c0307 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ An API wrapper for [Kutt](kutt.it), written in C#. [![GitHub](https://img.shields.io/github/downloads/AlphaNecron/Kutt.NET/total?color=%237BA1F7&logo=github&style=for-the-badge)](https://github.com/AlphaNecron/Kutt.NET/releases/latest) [![NuGet](https://img.shields.io/nuget/dt/Kutt.NET?color=%237BA1F7&logo=nuget&style=for-the-badge)](https://www.nuget.org/packages/Kutt.NET) [![Latest](https://img.shields.io/github/v/tag/AlphaNecron/Kutt.NET?color=%237BA1F7&label=RELEASE&logo=github&sort=semver&style=for-the-badge)](https://github.com/AlphaNecron/Kutt.NET/releases/latest) +[![Workflow status](https://img.shields.io/github/workflow/status/AlphaNecron/Kutt.NET/Publish%20NuGet%20package?color=7BA1F7&logo=github&style=for-the-badge)](https://github.com/AlphaNecron/Kutt.NET) [![MIT](https://img.shields.io/github/license/AlphaNecron/Kutt.NET?color=%237BA1F7&style=for-the-badge)](#) ## Authors @@ -21,6 +22,9 @@ An API wrapper for [Kutt](kutt.it), written in C#. // Initializes a Kutt instance with default server KuttApi kutt = new KuttApi("your_api_key"); +// Initializes a Kutt instance with your own server +KuttApi kutt = new KuttApi("your_api_key", "https://example.com"); + // Creates a shortened URL Link link = await CreateLinkAsync("https://github.com"); Console.WriteLine($"Shortened URL: {link.ShortUrl}"); From e1cce219dd552945528eae7a068d05ffcf0356b2 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Quang Date: Wed, 30 Jun 2021 07:17:58 +0700 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 11c0307..ba64558 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # Kutt.NET -An API wrapper for [Kutt](kutt.it), written in C#. +An API wrapper for [Kutt.it](https://kutt.it), written in C#. [![GitHub](https://img.shields.io/github/downloads/AlphaNecron/Kutt.NET/total?color=%237BA1F7&logo=github&style=for-the-badge)](https://github.com/AlphaNecron/Kutt.NET/releases/latest) [![NuGet](https://img.shields.io/nuget/dt/Kutt.NET?color=%237BA1F7&logo=nuget&style=for-the-badge)](https://www.nuget.org/packages/Kutt.NET) From 3d62bb333db70031a22ae0ee79619dae019c3324 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Quang Date: Wed, 30 Jun 2021 07:29:09 +0700 Subject: [PATCH 4/5] Update bug_report.md --- .github/ISSUE_TEMPLATE/bug_report.md | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dd84ea7..0e552c4 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -23,16 +23,10 @@ A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] +**Environment (please complete the following information):** + - OS: [e.g. Windows] + - .NET version [e.g. .NET 5.0] + - Version [e.g. 1.0.3] **Additional context** Add any other context about the problem here. From 3d835423381d030977fa6393740f90d721524169 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Quang Date: Wed, 30 Jun 2021 07:32:11 +0700 Subject: [PATCH 5/5] Update publish.yml --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c2801b2..9d94ca2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,10 @@ name: Publish NuGet package on: push: + paths-ignore: + - '.github/**' + - 'README.md' + - 'LICENSE' branches: - master jobs: