Skip to content

Commit

Permalink
chore: initialize a repo
Browse files Browse the repository at this point in the history
haru52 committed Mar 31, 2023

Verified

This commit was signed with the committer’s verified signature.
haru52 haru
0 parents commit ec69bd7
Showing 52 changed files with 15,640 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .commitlintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
extends: ["@commitlint/config-conventional"]
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "@commitlint/cz-commitlint"
}
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true

[{Makefile,*.go}]
indent_style = tab

[*.{md,markdown}]
trim_trailing_whitespace = false

[*.py]
indent_size = 4
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/general-issue-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: General issue (beta)
description: General issue (beta).
labels: []
body:
- type: textarea
id: deadline
attributes:
label: Deadline
description: By when should this issue be completed? And why?
placeholder: e.g., yyyy-MM-dd
- type: textarea
id: requirements
attributes:
label: Requirements
description: What is required to start this issue?
placeholder: |
All the following issues are resolved.
- #1
- #2
- type: textarea
id: tasks
attributes:
label: Tasks
description: What tasks does this issue consist of?
placeholder: |
- [ ] Task A
- [ ] Task B
- type: textarea
id: goal
attributes:
label: Goal
description: What is the goal of this issue?
placeholder: Completion of all the tasks.
value: Completion of all the tasks.
- type: textarea
id: description
attributes:
label: Description
description: Input the detailed description of this issue.
- type: textarea
id: references
attributes:
label: References
description: Input references of this issue.
placeholder: |
- [Reference A](https://example.com/)
- #3
47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/general-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: General issue
about: General issue.
title: ''
labels: ''
assignees: ''

---

## Deadline

<!-- e.g., yyyy-MM-dd -->

## Requirements

<!--
e.g.,
All the following issues are resolved.
- #1
- #2
-->

## Tasks

<!--
e.g.,
- [ ] Task A
- [ ] Task B
-->

## Goal

Completion of all the tasks.

## Description

## References

<!--
e.g.,
- [Reference A](https://example.com/)
- #3
-->
33 changes: 33 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- markdownlint-disable MD041 -->

## Linked issues

<!--
e.g.,
- Resolve #1
- Fix #2
-->

## Deadline

<!--
e.g.,
yyyy-MM-dd
or
See linked issues.
-->

## Description

## References

<!--
e.g.,
- [Reference A](https://example.com/)
- #3
-->
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
commit-message:
prefix: fix
prefix-development: build
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
commit-message:
prefix: ci
13 changes: 13 additions & 0 deletions .github/vale_styles/Vocab/Base/accept.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
actionlint
CBR
Contributing Guideline
convertflac
FFmpeg
FLAC
gibo
haru
MIT
npm
Pipenv
repo
yamllint
Empty file.
42 changes: 42 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
name: Dependabot auto-approve/merge
"on": pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
- name: Approve and auto-merge the PR
if: >
steps.metadata.outputs.update-type == 'version-update:semver-minor' ||
steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: |
gh pr review --approve "$PR_URL"
# If both this repo's auto-merge setting and its default branch
# (e.g., main) protection are enabled,
# you can uncomment the next line.
gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# yamllint disable rule:comments-indentation rule:line-length
# If you want to automatically request reviews from specific users for the
# PR when the dependency updates are neither minor updates nor patch
# updates, uncomment the following step.
# CAUTION: The following step may fail if this repo visibility is private.
- name: Request reviews for the PR
if: >
steps.metadata.outputs.update-type != 'version-update:semver-minor' &&
steps.metadata.outputs.update-type != 'version-update:semver-patch'
run: gh pr edit "$PR_URL" --add-reviewer haru52
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# yamllint enable rule:comments-indentation rule:line-length
16 changes: 16 additions & 0 deletions .github/workflows/lint-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: "Lint: PR title"
"on":
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
lint-pr-title:
name: "Lint: PR title"
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
# https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions
name: Release
"on":
workflow_run:
workflows: Test
types: completed
branches: main
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions#pushing-package.json-changes-to-a-master-branch
# If the branch protection for this repo's release branch (e.g., main)
# is enabled, uncomment the next line.
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: .node-version
cache: npm
- uses: actions/setup-python@v4
with:
cache: pipenv
- name: Install dependencies
run: |
npm ci
python -m pip install --upgrade pip
python -m pip install pipenv
python -m pipenv sync
- name: Release
env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions#pushing-package.json-changes-to-a-master-branch
# If the branch protection for this repo's release branch (e.g., main)
# is enabled, delete or comment out the preceding
# `GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}`
# and uncomment the next line.
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

# If this is an npm package project, uncomment the next line.
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: npx semantic-release
30 changes: 30 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: reviewdog
"on": pull_request
jobs:
reviewdog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: markdownlint
uses: reviewdog/action-markdownlint@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
markdownlint_flags: . .?*/**/*.{md,markdown}
- name: yamllint
uses: reviewdog/action-yamllint@v1
with:
reporter: github-pr-review
- name: ShellCheck
uses: reviewdog/action-shellcheck@v1
with:
reporter: github-pr-review
pattern: |
*.sh
commit-msg
pre-commit
- name: actionlint
uses: reviewdog/action-actionlint@v1
with:
reporter: github-pr-review
Loading

0 comments on commit ec69bd7

Please sign in to comment.