Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnavK-09 committed Feb 5, 2024
1 parent a641d77 commit 00dbc9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31726,7 +31726,8 @@ const { GoogleGenerativeAI } = __nccwpck_require__(2122);
*/
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${include_emoji ? ", also include emoji in starting" : ""}. Only in single Line.
# 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 @@ -31809,7 +31810,7 @@ const initAction = async () => {
* Creating vars
*/
const prTitle = pullReq.title ?? "No Title";
const prDescription = pullReq.description ?? "No Description";
const prDescription = pullReq.body ?? "No Description";
core.debug("Fetched Pull request information");

/**
Expand Down
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const { GoogleGenerativeAI } = require("@google/generative-ai");
*/
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${include_emoji ? ", also include emoji in starting" : ""}. Only in single Line.
# 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 @@ -95,7 +96,7 @@ const initAction = async () => {
* Creating vars
*/
const prTitle = pullReq.title ?? "No Title";
const prDescription = pullReq.description ?? "No Description";
const prDescription = pullReq.body ?? "No Description";
core.debug("Fetched Pull request information");

/**
Expand Down

0 comments on commit 00dbc9c

Please sign in to comment.