Skip to content

Commit

Permalink
Release v0.2.1 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
5ouma authored Apr 7, 2024
2 parents 850db17 + 80498ae commit 428f5fc
Show file tree
Hide file tree
Showing 14 changed files with 212 additions and 220 deletions.
50 changes: 28 additions & 22 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,36 @@ I would recommend reading this guideline for a better development experience.

<br />

- [🔠 Branch Prefix](#-branch-prefix)
- [💬 Commit Message](#-commit-message)
- [❓ Pull Requests Title](#-pull-requests-title)
- [🪵 Commit Log](#-commit-log)

<br /><br />

## 💬 Commit Message

I recommend you to follow [Conventional Commits] with this format.

```commit message
type(scope): Description
Body
```

[Conventional Commits]: https://www.conventionalcommits.org

<br />

## 🔠 Branch Prefix
## ❓ Pull Requests Title

You don't need to add any prefixes like `feature` or `bug fix`
to the Pull Requests title.
I can recognize what kind of PR it is from labels.
Please give a clear title.

You should follow these branch name rules
because [Pull Request Labeler] automatically adds labels to your Pull Requests.
<br />
For the details of each label, please see [Labels](https://github.com/5ouma/opml-generator/labels).

[Pull Request Labeler]: https://github.com/actions/labeler

| Label | Branch Prefix RegEx |
| :-----------------: | :----------------------------------: |
| Type: Feature | `^feat(ure)?-` |
| Type: Bug | `^fix-` |
| Type: Security | `^sec(urity)?-` |
| Type: Documentation | `^doc(ument)?s?-` |
| Type: Refactoring | `^refactor(ing)?-` |
| Type: Testing | `^test(ing\|s)?-` |
| Type: Maintenance | `^maintenance-` , `^maintain(ing)?-` |
| Type: CI | `^ci-` |
| Type: Dependencies | `^dep(endency\|endencies\|s)?-` |
| Type: Meta | `^meta-` |

> Labels were generated with [@azu / github-label-setup](https://github.com/azu/github-label-setup)

## 🪵 Commit Log

I do squash merge to the dev branch to keep the commit history clean.
When merging your Pull Request, I'll add the Conventional Commits type and scope.
27 changes: 24 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
<!-- markdownlint-disable MD041 -->

**Issue:** close #
### ⚠️ Issue

### Checklist
close #

<br />

### ✔︎ Checklists

- [ ] This Pull Request introduces a new feature.
- [ ] This Pull Request fixes a bug.

### Description
<br />

### 🔄 Type of the Change

- [ ] Feature
- [ ] Bug
- [ ] Security
- [ ] Documentation
- [ ] Refactoring
- [ ] Testing
- [ ] Maintenance
- [ ] CI
- [ ] Dependencies
- [ ] Meta

<br />

### ✏️ Description

<!--
A clear and concise description
Expand Down
3 changes: 3 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
addReviewers: true
addAssignees: author
reviewers: ["5ouma"]
3 changes: 3 additions & 0 deletions .github/branch-switcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
preferredBranch: dev
exclude:
- branch: dev
2 changes: 2 additions & 0 deletions .github/delete-merged-branch-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude: ["dev"]
delete_closed_pr: true
20 changes: 0 additions & 20 deletions .github/labeler.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
alwaysReplace: true
searchTitle: true
searchBody: true

customLabels:
- text: "- [x] Feature"
label: "Type: Feature"
- text: "- [x] Bug"
label: "Type: Bug"
- text: "- [x] Security"
label: "Type: Security"
- text: "- [x] Documentation"
label: "Type: Documentation"
- text: "- [x] Refactoring*"
label: "Type: Refactoring"
- text: "- [x] Testing"
label: "Type: Testing"
- text: "- [x] Maintenance"
label: "Type: Maintenance"
- text: "- [x] CI"
label: "Type: CI"
- text: "- [x] Dependencies"
label: "Type: Dependencies"
- text: "chore(deps): "
label: "Type: Dependencies"
- text: "- [x] Meta"
label: "Type: Meta"
20 changes: 0 additions & 20 deletions .github/workflows/branch-delete.yml

This file was deleted.

7 changes: 2 additions & 5 deletions .github/workflows/deps-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ jobs:

- name: ⬆️ Update Dependencies
id: deps
run: |
deno task update -w --summary=../title.txt --report=../body.md
deno task lock
run: deno task update -w --unstable-lock --summary=../title.txt --report=../body.md

- name: 🔍 Check the Result
id: result
Expand Down Expand Up @@ -60,6 +58,5 @@ jobs:
branch: deps-deno
delete-branch: true
base: dev
title: |
chore(deps): ${{ steps.title.outputs.content }}
title: "chore(deps): ${{ steps.title.outputs.content }}"
body: ${{ steps.body.outputs.content }}
27 changes: 0 additions & 27 deletions .github/workflows/pr-check.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ on:
- dev
paths:
- "**.ts"
- "./deno.lock"
- ".github/workflows/test.yml"
pull_request:
paths:
- "**.ts"
- "./deno.lock"
- ".github/workflows/test.yml"

jobs:
Expand Down
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ ci:
For more information, see https://pre-commit.ci.
autoupdate_branch: "dev"
autoupdate_commit_msg: |
chore(deps): Bump pre-commit hook
autoupdate_commit_msg: "chore(deps): Bump pre-commit hook"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
9 changes: 4 additions & 5 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
"test": { "include": ["src/", "test/"] },
"tasks": {
"gen": "deno run --allow-read --allow-write ./src/main.ts",
"lock": "deno cache --lock-write ./**/*.ts",
"test": "deno test --allow-read --allow-write",
"update": "deno run --allow-env --allow-read --allow-write --allow-run=git,deno --allow-net=deno.land https://deno.land/x/molt/cli.ts deno.json"
},
"imports": {
"assert": "https://deno.land/std@0.220.1/assert/mod.ts",
"path": "https://deno.land/std@0.220.1/path/mod.ts",
"toml": "https://deno.land/std@0.220.1/toml/mod.ts",
"parse_args": "https://deno.land/std@0.220.1/cli/parse_args.ts",
"assert": "https://deno.land/std@0.221.0/assert/mod.ts",
"path": "https://deno.land/std@0.221.0/path/mod.ts",
"toml": "https://deno.land/std@0.221.0/toml/mod.ts",
"parse_args": "https://deno.land/std@0.221.0/cli/parse_args.ts",
"case": "https://deno.land/x/[email protected]/mod.ts",
"xml": "https://deno.land/x/[email protected]/mod.ts"
}
Expand Down
Loading

0 comments on commit 428f5fc

Please sign in to comment.