Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on: pull_request
#on: [pull_request, push]

jobs:
show:
typos:
name: Spell Check
runs-on: ubuntu-latest
steps:
- name: Show Env
# run: echo "Env ${{ env.ENV_ID }}
run: echo "Env for ci website pr"
- uses: taiki-e/checkout-action@v1
- uses: crate-ci/typos@v1.26.0
with:
files: .
28 changes: 28 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check PR

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
# update-pr-description:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Update PR Description
# uses: nefrob/pr-description@v1.1.2
# with:
# content: "Hello there!"
# regex: ".*"
# regexFlags: s
# token: ${{ secrets.GITHUB_TOKEN }}
pr:
runs-on: ubuntu-latest
steps:
- name: Show Env
# run: echo "Env ${{ env.ENV_ID }}
run: echo "Env for ci website pr"
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
"files": {
"ignore": [".next", "./**/*config.js", "./**/*.d.ts"],
"ignoreUnknown": true
Expand Down
79 changes: 79 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# git-cliff ~ default configuration file
# https://git-cliff.org/docs/configuration
#
# Lines starting with "#" are comments.
# Configuration options are organized into tables and keys.
# See documentation for more information on available options.

[changelog]
# template for the changelog header
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }}\
{% endfor %}
{% endfor %}\n
"""
# template for the changelog footer
footer = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing s
trim = true
# postprocessors
postprocessors = [
# { pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL
]

[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = true
# process each line of a commit as an individual commit
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
# Replace issue numbers
#{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"},
# Check spelling of the commit with https://github.com/crate-ci/typos
# If the spelling is incorrect, it will be automatically fixed.
#{ pattern = '.*', replace_command = 'typos --write-changes -' },
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]
# filter out the commits that are not matched by commit parsers
filter_commits = false
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
2 changes: 2 additions & 0 deletions docs/TODO.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
https://stackoverflow.com/questions/76464269/how-to-rerun-a-github-action-workflow-from-the-command-line-and-have-the-status
https://stackoverflow.com/questions/69893875/watch-gh-actions-workflow-output-in-cli

# fix release automation
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint --format=stylish",
"lint:fix": "pnpm lint --fix",
"lint:fix": "nr lint --fix",
"lint:types": "nr tsc --noEmit",
"test": "vitest",
"commitlint": "commitlint --edit",
Expand All @@ -25,8 +25,13 @@
"prettier:fix": "prettier --write . ",
"clean": "rimraf .next out",
"bump": "changeset version",
"pr:deploy": "git push origin develop && gh pr create -H develop -B master --fill",
"pr:push": "gh pr create --body '${nr git-cliff -l}' --title pr:deploy -d",
"pr:deploy-old": "git push origin develop && gh pr create -H develop -B master --fill",
"pr:deploy": "git push origin develop && gh pr create --head develop --base master --body \"$(nr git-cliff -l)\" --title pr:deploy",
"pr:push": "gh pr create --body \"$(nr git-cliff -l)\" --title pr:for-develop --base develop -d --dry-run",
"pr:edit": "gh pr edit \"$(nr pr:number)\" --body \"$(nr git-cliff -l)\" --title pr:develop --base develop",
"pr:list": "gh pr list --state open --json number,title | jq -r '.[] | [.number, .title] | @tsv'",
"pr:l": "(echo -e 'PR Number\tTitle'; gh pr list --state open --json number,title | jq -r '.[] | [.number, .title] | @tsv') | column -t",
"pr:number": "gh pr view --json number --jq '.number' ",
"gh:workflows": "gh workflow view",
"ci:spelling": "act -j spelling",
"ci:local": "act pull_request",
Expand Down
Loading