From 3fe6c12294f4c4c05accd051a63feeba8a2a65e1 Mon Sep 17 00:00:00 2001 From: Mariya George Date: Sun, 29 Sep 2024 13:04:47 +0530 Subject: [PATCH 1/3] feat: introduce git commit template - introduced git commit template Signed-off-by: Mariya George --- .gitmessage | 5 +++++ package.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitmessage diff --git a/.gitmessage b/.gitmessage new file mode 100644 index 00000000..7805bd2b --- /dev/null +++ b/.gitmessage @@ -0,0 +1,5 @@ +feat|fix: + +<body> + +Signed-off-by: <your_name> <your_email> \ No newline at end of file diff --git a/package.json b/package.json index 6eb04af6..974c77bd 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "start": "next start", "lint": "next lint", "format:fix": "yarn prettier . --write", - "format:check": "yarn prettier . --check" + "format:check": "yarn prettier . --check", + "postinstall": "git config commit.template .gitmessage" }, "dependencies": { "@carbon/react": "^1.66.0", From e5b44b570175488211b33d7331583c9f9cc09a31 Mon Sep 17 00:00:00 2001 From: Mariya George <mgkofficial001@gmail.com> Date: Sun, 29 Sep 2024 14:01:31 +0530 Subject: [PATCH 2/3] feat: introduce PR template - introduced PR template Signed-off-by: Mariya George <mgkofficial001@gmail.com> --- .github/pull_request_template.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..e8370414 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,14 @@ +## Description + +## GitHub issue +Fixes #<issue_number> + +## How to test this? + + +## Checklist: + +- [ ] My code follows the guidelines of this project +- [ ] I have performed a self-review of my code +- [ ] I have commented my code, particularly in hard-to-understand areas +- [ ] I have made corresponding changes to the documentation From 297816fbdbdea10c8c8812ed42cee93687d57ed0 Mon Sep 17 00:00:00 2001 From: Mariya George <mgkofficial001@gmail.com> Date: Mon, 30 Sep 2024 11:57:53 +0530 Subject: [PATCH 3/3] fix: lint errors - fixed the lint errors in pull_request_template.md Signed-off-by: Mariya George <mgkofficial001@gmail.com> --- .github/pull_request_template.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index e8370414..64a67fd4 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,12 +1,12 @@ ## Description ## GitHub issue + Fixes #<issue_number> ## How to test this? - -## Checklist: +## Checklist - [ ] My code follows the guidelines of this project - [ ] I have performed a self-review of my code