diff --git a/.eslintrc.json b/.eslintrc.json
index b0c6e32..aeb498b 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -21,8 +21,8 @@
"rules": {
"prettier/prettier": "error",
"no-console": "error",
- "sort-imports": "off",
"import/order": "off",
+ "sort-imports": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/first": "error",
diff --git a/.prettierignore b/.prettierignore
index aef7e14..31deda6 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,2 +1,3 @@
/build
-/dist
\ No newline at end of file
+/dist
+/out
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
index 3e442f1..6ddcaeb 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) Dima Sukharev
+Copyright (c) Dima Sukharev, https://github.com/di-sukharev
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
diff --git a/README.md b/README.md
index 381324d..3ecd01c 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
Follow the bird
- GPT CLI to auto-generate impressive commits in 1 second
+ Auto-generate meaningful commits in 1 second
Killing lame commits with AI 🤯🔫
@@ -18,22 +18,16 @@
All the commits in this repo are done with OpenCommit — look into [the commits](https://github.com/di-sukharev/opencommit/commit/eae7618d575ee8d2e9fff5de56da79d40c4bc5fc) to see how OpenCommit works. Emoji and long commit description text is configurable.
-## Setup OpenCommit as a Github Action
+## Setup OpenCommit as a Github Action 🔥
OpenCommit is now available as a GitHub Action which automatically improves all new commits messages when you push to remote!
This is great if you want to make sure all of the commits in all of repository branches are meaningful and not lame like `fix1` or `done2`.
-### Automatic 1 click setup
-
-You can simply [setup the action automatically via the GitHub Marketplace](TODO).
-
-### Manual 3 clicks setup
-
Create a file `.github/workflows/opencommit.yml` with contents below:
```yml
-name: 'OpenCommit'
+name: 'OpenCommit Action'
on:
push:
@@ -54,7 +48,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- - uses: di-sukharev/opencommit@github-action
+ - uses: di-sukharev/opencommit@github-action-v1.0.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/action.yml b/action.yml
index 1351224..56a7538 100644
--- a/action.yml
+++ b/action.yml
@@ -1,7 +1,10 @@
-name: 'OpenCommit'
-description: 'Replaces lame commit messages with meaningful AI-generated messages when you push to remote 🤯🔫'
+name: 'OpenCommit — improve commits with AI 🧙'
+description: 'Replaces lame commit messages with meaningful AI-generated messages when you push to remote'
author: 'https://github.com/di-sukharev'
repo: 'https://github.com/di-sukharev/opencommit/tree/github-action'
+branding:
+ icon: 'git-commit'
+ color: 'green'
keywords:
[
'git',
diff --git a/out/cli.cjs b/out/cli.cjs
index 75208e9..21d0586 100755
--- a/out/cli.cjs
+++ b/out/cli.cjs
@@ -16272,7 +16272,7 @@ function G3(t, e2) {
// package.json
var package_default = {
name: "opencommit",
- version: "2.0.15",
+ version: "2.0.16",
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
keywords: [
"git",
diff --git a/package-lock.json b/package-lock.json
index b9c00d0..6019414 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "opencommit",
- "version": "2.0.15",
+ "version": "2.0.17",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "opencommit",
- "version": "2.0.15",
+ "version": "2.0.17",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
diff --git a/package.json b/package.json
index dc67c89..9a1ee34 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "opencommit",
- "version": "2.0.15",
+ "version": "2.0.17",
"description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
"keywords": [
"git",
@@ -43,6 +43,7 @@
"dev": "ts-node ./src/cli.ts",
"build": "rimraf out && node esbuild.config.js",
"deploy": "npm run build && npm version patch && npm publish --tag latest",
+ "build:push": "npm run build && git add . && git commit -m 'build' && git push",
"lint": "eslint src --ext ts && tsc --noEmit",
"format": "prettier --write src"
},
diff --git a/tsconfig.json b/tsconfig.json
index 6dedf1a..3998f29 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -5,8 +5,8 @@
"module": "ESNext",
// "rootDir": "./src",
- "moduleResolution": "node",
"resolveJsonModule": true,
+ "moduleResolution": "node",
"allowJs": true,