Skip to content

Commit

Permalink
🥓 First Stable Release....
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnavK-09 committed Feb 5, 2024
1 parent 00dbc9c commit bd37ae2
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/convert-pull-request-title.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Convert Pull Req Title Into Conventional Commit Scheme
name: Convert Pull Req Title Into Conventional Commit Scheme!

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### Node ###
# Node #
node_modules
package-lock.json
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## 🌟
# convert_pull_req_title_into_conventional_commit_scheme
## 🌟🌟🌟
# **convert_pull_req_title_into_conventional_commit_scheme**

> [!NOTE]
> The [**`convert_pull_req_title_into_conventional_commit_scheme`**](https://github.com/marketplace/actions/convert-pull-request-title-into-conventional-commit-scheme) project is a public **GitHub Action** available in the GitHub Marketplace. By utilizing this action, users can automatically **convert new pull request titles into the conventional commits format** as defined by [conventionalcommits.org](https://www.conventionalcommits.org/).
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Convert Pull Req Title Into Conventional Commit Scheme
name: Convert Pull Req Title Into Conventional Commit Scheme!
description: By utilizing this action, users can automatically convert new pull request titles into the conventional commits format
author: ArnavK-09

Expand Down
4 changes: 1 addition & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31728,7 +31728,7 @@ const prompt = (title, description, include_emoji = false) => {
return `
# Give me conventional commit message following www.conventionalcommits.org for pull request with title and description mentioned above. Only in single Line.
## ${include_emoji ? "ALSO INCLUDE appropriate EMOJI IN STARTING OF COMMIT message" : ""}

# Documentation for conventionalcommits.org:
The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of. This convention dovetails with SemVer, by describing the features, fixes, and breaking changes made in commit messages.

Expand Down Expand Up @@ -31826,7 +31826,6 @@ const initAction = async () => {
const result = await gemini.generateContent(
prompt(prTitle, prDescription, includeEmoji),
);
core.notice(`Prompt:- ${prompt(prTitle, prDescription, includeEmoji)}`)

/**
* Manipulating response into string
Expand Down Expand Up @@ -31857,7 +31856,6 @@ const initAction = async () => {
};

// Call the action
core.debug(`Github Payload: ${github.context}`);
initAction();

})();
Expand Down
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const prompt = (title, description, include_emoji = false) => {
return `
# Give me conventional commit message following www.conventionalcommits.org for pull request with title and description mentioned above. Only in single Line.
## ${include_emoji ? "ALSO INCLUDE appropriate EMOJI IN STARTING OF COMMIT message" : ""}
# Documentation for conventionalcommits.org:
The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of. This convention dovetails with SemVer, by describing the features, fixes, and breaking changes made in commit messages.
Expand Down Expand Up @@ -112,7 +112,6 @@ const initAction = async () => {
const result = await gemini.generateContent(
prompt(prTitle, prDescription, includeEmoji),
);
core.notice(`Prompt:- ${prompt(prTitle, prDescription, includeEmoji)}`)

/**
* Manipulating response into string
Expand Down Expand Up @@ -143,5 +142,4 @@ const initAction = async () => {
};

// Call the action
core.debug(`Github Payload: ${github.context}`);
initAction();
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"keywords": [
"github-action",
"commitconventions",
"gemini-pro"
"gemini-pro",
"utils"
],
"author": "ArnavK-09",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@google/generative-ai": "^0.2.0",
"@vercel/ncc": "^0.38.1"
"@google/generative-ai": "^0.2.0"
}
}

0 comments on commit bd37ae2

Please sign in to comment.