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: 10 months ago
JSON representation
자주 사용하는 코드 조각 모음
- Host: GitHub
- URL: https://github.com/bbonkr/kr.bbon.services
- Owner: bbonkr
- Created: 2023-01-11T07:21:12.000Z (about 3 years ago)
- Default Branch: dev
- Last Pushed: 2023-02-27T13:10:30.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T11:41:59.906Z (about 1 year 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://www.nuget.org/packages/kr.bbon.Services) [](https://www.nuget.org/packages/kr.bbon.Services) [](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}";
}
```