Compare commits

...

5 Commits

Author SHA1 Message Date
di-sukharev
4e25f1460a chore(README.md): update opencommit action version to v1.0.4 to fix bugs and improve functionality 2023-05-22 12:27:58 +08:00
di-sukharev
61b145455d Merge remote-tracking branch 'origin/master' into dev 2023-05-22 12:26:59 +08:00
di-sukharev
0b8dc12047 chore: update .eslintrc.json to disable import/order rule and enable simple-import-sort rules
chore: update .prettierignore to include /out directory
docs: update LICENSE file to include link to author's GitHub profile
chore: update tsconfig.json to move resolveJsonModule above moduleResolution for consistency
2023-05-22 12:22:37 +08:00
di-sukharev
1a1134a010 docs(README.md): remove outdated setup instructions for OpenCommit GitHub Action and update action name 2023-05-21 17:11:59 +08:00
Sukharev
3eb319a919 GitHub action (#173)
* add option to run OpenCommit as a Github Action
2023-05-21 16:15:45 +08:00
5 changed files with 7 additions and 12 deletions

View File

@@ -21,8 +21,8 @@
"rules": { "rules": {
"prettier/prettier": "error", "prettier/prettier": "error",
"no-console": "error", "no-console": "error",
"sort-imports": "off",
"import/order": "off", "import/order": "off",
"sort-imports": "off",
"simple-import-sort/imports": "error", "simple-import-sort/imports": "error",
"simple-import-sort/exports": "error", "simple-import-sort/exports": "error",
"import/first": "error", "import/first": "error",

View File

@@ -1,2 +1,3 @@
/build /build
/dist /dist
/out

View File

@@ -1,6 +1,6 @@
MIT License 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 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: 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:

View File

@@ -24,16 +24,10 @@ OpenCommit is now available as a GitHub Action which automatically improves all
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`. 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](https://github.com/marketplace/actions/opencommit-improve-commits-with-ai).
### Manual 3 clicks setup
Create a file `.github/workflows/opencommit.yml` with contents below: Create a file `.github/workflows/opencommit.yml` with contents below:
```yml ```yml
name: 'OpenCommit' name: 'OpenCommit Action'
on: on:
push: push:
@@ -54,7 +48,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: di-sukharev/opencommit@github-action-v1 - uses: di-sukharev/opencommit@github-action-v1.0.4
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -5,8 +5,8 @@
"module": "ESNext", "module": "ESNext",
// "rootDir": "./src", // "rootDir": "./src",
"moduleResolution": "node",
"resolveJsonModule": true, "resolveJsonModule": true,
"moduleResolution": "node",
"allowJs": true, "allowJs": true,