Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bbonkr/kr.bbon.services
자주 사용하는 코드 조각 모음
https://github.com/bbonkr/kr.bbon.services
csharp dotnet dotnet-6 dotnet-7 github-api nuget
Last synced: 18 days ago
JSON representation
자주 사용하는 코드 조각 모음
- Host: GitHub
- URL: https://github.com/bbonkr/kr.bbon.services
- Owner: bbonkr
- Created: 2023-01-11T07:21:12.000Z (almost 2 years ago)
- Default Branch: dev
- Last Pushed: 2023-02-27T13:10:30.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T18:06:25.680Z (2 months ago)
- Topics: csharp, dotnet, dotnet-6, dotnet-7, github-api, nuget
- Language: C#
- Homepage: https://www.nuget.org/packages/kr.bbon.Services
- Size: 43 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kr.bbon.Services
[![](https://img.shields.io/nuget/v/kr.bbon.Services)](https://www.nuget.org/packages/kr.bbon.Services) [![](https://img.shields.io/nuget/dt/kr.bbon.Services)](https://www.nuget.org/packages/kr.bbon.Services) [![publish to nuget](https://github.com/bbonkr/kr.bbon.Services/actions/workflows/build-tag.yaml/badge.svg)](https://github.com/bbonkr/kr.bbon.Services/actions/workflows/build-tag.yaml)
## Overview
Implements frequently used service layers.
## Features
### GitHubService
Support to create GitHub issue.
settings.json
```json
{
"GitHub": {
"Owner": "bbonkr",
"Repo": "kr.bbon.Services",
"AccessToken": "",
"CreateNewIssueAlways": false,
"ReopenIfClosedOneExists": false
}
}
```| Name | Required | Default | Description |
| :---------------------- | :------: | :-----: | :-------------------------------------------- |
| Owner | ✅ | N/A | Repository owner |
| Repo | ✅ | N/A | Repository name |
| AccessToken | ✅ | N/A | Repository name |
| CreateNewIssueAlways | | false | Create new GitHub Issue always Whether or not |
| ReopenIfClosedOneExists | | false | Reopen if closed issue exists Whether or not |You can change title, body content generation
```csharp
public class MyGitHubService : GitHubService
{
public MyGitHubService(...) : base(...) { }protected override string GenerateIssueTitle(Exception ex, string? endpoint) => $"{ex.Message}";
protected override string GenerateIssueBody(ApiException ex) => $"{ex.StackTrace}";
}
```