-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from babarot/babarot/refactor
Refactor
- Loading branch information
Showing
19 changed files
with
383 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Bug Report | ||
description: Report a bug encountered while operating `gomi` | ||
labels: kind/bug | ||
body: | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: What happened? | ||
description: | | ||
Please provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: What did you expect to happen? | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: repro | ||
attributes: | ||
label: How can we reproduce it (as minimally and precisely as possible)? | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: additional | ||
attributes: | ||
label: Anything else we need to know? | ||
|
||
- type: textarea | ||
id: version | ||
attributes: | ||
label: version | ||
value: | | ||
<details> | ||
|
||
```console | ||
$ gomi --version | ||
# paste output here | ||
``` | ||
|
||
</details> | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## WHAT | ||
|
||
<!-- write here --> | ||
|
||
## WHY | ||
|
||
<!-- write here --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
no-update-changelog: | ||
- changed-files: | ||
- any-glob-to-all-files: '!*.go' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# tag management - used by tagpr management | ||
- name: tagpr | ||
description: Used by tagpr for managing the release | ||
color: ededed | ||
- name: tagpr:minor | ||
description: Used by tagpr for managing the release | ||
color: ededed | ||
- name: tagpr:major | ||
description: Used by tagpr for managing the release | ||
color: ededed | ||
- name: no-update-changelog | ||
description: Used in case of no need to update changelog | ||
color: ededed | ||
|
||
# kind/ - the type of issue | ||
- name: kind/bug | ||
description: A bug; unintended behavior | ||
color: 425df5 | ||
- name: kind/feature | ||
description: A feature request; new or enhanced behavior | ||
color: 425df5 | ||
- name: kind/deprecation | ||
description: Related to a feature or part of code being deprecated. | ||
color: 425df5 | ||
- name: kind/cleanup | ||
description: Categorizes issue or PR as related to cleaning up code, issues, etc. | ||
color: 425df5 | ||
- name: kind/breaking-change | ||
description: Denotes a PR that introduces potentially breaking changes that require user action. | ||
color: 425df5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- tagpr | ||
- no-update-changelog | ||
categories: | ||
- title: Breaking Changes | ||
labels: | ||
- kind/breaking-change | ||
- title: New Features | ||
labels: | ||
- kind/feature | ||
- title: Bug fixes | ||
labels: | ||
- kind/bug | ||
- title: Deprecated features | ||
labels: | ||
- kind/deprecation | ||
- title: Refactorings | ||
labels: | ||
- kind/cleanup | ||
- title: Others | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Labels | ||
on: pull_request | ||
|
||
jobs: | ||
triage: | ||
timeout-minutes: 5 | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/labeler@v5 | ||
with: | ||
sync-labels: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Go | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
go-version: ['stable'] | ||
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
- name: Install Go | ||
if: success() | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
cache: true | ||
- name: Run tests | ||
run: make test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Labels | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '.github/labels.yaml' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
issues: write | ||
contents: read | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Sync labels | ||
uses: EndBug/label-sync@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
config-file: .github/labels.yaml | ||
delete-other-labels: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gomi |
Oops, something went wrong.