Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add conventional commit checker and eslint checker #41

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
43 changes: 5 additions & 38 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,6 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
autolabeler:
- label: "bug"
title:
- "/fix/i"
- label: "feature"
title:
- "/feat/i"
- label: "documentation"
title:
- "/docs/i"
- label: "ci"
title:
- "/ci/i"
- label: "style"
title:
- "/style/i"
- label: "refactor"
title:
- "/refactor/i"
- label: "performance"
title:
- "/perf/i"
- label: "test"
title:
- "/test/i"
- label: "chore"
title:
- "/chore/i"
- label: "breaking"
title:
- "/BREAKING CHANGE/i"
Expand All @@ -51,32 +24,26 @@ categories:
- "notable"
- title: "Features"
labels:
- "enhancement"
- "feature"
- title: "Performance Improvements"
labels:
- "performance"
- title: "Bug Fixes"
labels:
- "bug"
- "fix"
- title: "Documentation"
labels:
- "documentation"
- title: "Style Improvements"
labels:
- "style"
- title: "Maintenance"
labels:
- "chore"
- "deployment"
- "translation"
- "ci"
- "refactor"
- title: "Dependencies"
collapse-after: 3
labels:
- "dependencies"
- "revert"
- "test"
- title: "All App Changes"
labels:
- "*"
collapse-after: 1
exclude-labels:
- "skip-changelog"
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint

on:
pull_request:
push:
branches:
- master

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: SKIP_ENV_VALIDATION=1 bun lint
15 changes: 15 additions & 0 deletions .github/workflows/pr-conventional-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: PR Conventional Commit Validation

on:
pull_request:
types: [opened, synchronize, reopened, edited]

jobs:
validate-pr-title:
runs-on: ubuntu-latest
steps:
- name: PR Conventional Commit Validation
uses: ytanikin/[email protected]
with:
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'
add_label: "false"
19 changes: 19 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: PR Labeler

on:
pull_request:
types: [opened, synchronize, reopened, edited]

permissions:
contents: read

jobs:
add-conventional-commit-label:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
# Drafts your next Release notes as Pull Requests are merged
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 1 addition & 6 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch: {}

permissions:
Expand All @@ -18,11 +15,9 @@ jobs:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
pull-requests: write
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@

Connects popular services like immich and paperless-ngx together. Expand this further with the obsidian integration.

Todo:

- [ ] Basic ui
- [ ] Database
- [ ] Connect immich
- [ ] Connect paperless-ngx
- [ ] Connect them together
- [ ] Obsidian integration
Features:

Planned features:

- [ ]
Loading