Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: AutoCreate Admin On Startup #101

Merged
merged 6 commits into from
Jan 30, 2024
Merged

feat: AutoCreate Admin On Startup #101

merged 6 commits into from
Jan 30, 2024

Conversation

HarshPatel5940
Copy link
Contributor

@HarshPatel5940 HarshPatel5940 commented Jan 30, 2024

User description

Description

This pull request adds a new feature to create an admin user. It includes the following commits:

  • feat: add admin user creation
  • needs to be tested and resolve todos
  • chore: code cleanup

The changes include adding a new method adminUserCreateEmail to the MailService class, updating the UserService class to check if an admin user exists and create one if not, and updating the .gitignore file to exclude certain directories.

Fixes #94

Future Improvements

we can plausibly improve the template of emails we send.

Mentions

@rajdip-b

Developer's checklist

  • My PR follows the style guidelines of this project
  • I have performed a self-check on my work
  • I have followed the coding guidelines
  • My changes in code generate no new warnings
  • My changes are breaking another fix/feature of the project
  • I have added test cases to show that my feature works
  • I have added relevant screenshots in my PR
  • There are no UI/UX issues
  • This PR requires an update to the documentation at docs.keyshade.xyz
  • I have made the necessary updates to the documentation, or no documentation changes are required.

Type

Enhancement


Description

This PR introduces a new feature to create an admin user on application startup if one does not exist. The main changes include:

  • Addition of a new method adminUserCreateEmail in the IMailService interface, MailService and MockMailService classes to handle sending an email when an admin user is created.
  • Addition of methods onApplicationBootstrap, checkIfAdminExistsOrCreate and createAdminUser in the UserService class to check if an admin user exists on application startup and create one if not.
  • Addition of a new environment variable ADMIN_EMAIL in the .env.example file.
  • Update to the list of included files in tsconfig.json.

Changes walkthrough

Relevant files
Enhancement
interface.service.ts
Addition of `adminUserCreateEmail` method to `IMailService` interface

apps/api/src/mail/services/interface.service.ts

  • Added a new method adminUserCreateEmail to the IMailService
    interface.
+3/-3     
mail.service.ts
Reformatted `accountLoginEmail` and added `adminUserCreateEmail` method

apps/api/src/mail/services/mail.service.ts

  • Reformatted the accountLoginEmail method.
  • Added a new method adminUserCreateEmail to send an email when an
    admin user is created.
+20/-3   
mock.service.ts
Addition of `adminUserCreateEmail` method to `MockMailService`     

apps/api/src/mail/services/mock.service.ts

  • Added a new method adminUserCreateEmail to log the creation of an
    admin user.
+4/-0     
user.service.ts
Addition of methods for admin user creation in `UserService`         

apps/api/src/user/service/user.service.ts

  • Added a new method onApplicationBootstrap to check if an admin user
    exists or create one.
  • Added methods checkIfAdminExistsOrCreate and createAdminUser to
    handle admin user creation.
+38/-1   
Configuration changes
.env.example
Addition of `ADMIN_EMAIL` environment variable                                     

.env.example

  • Added a new environment variable ADMIN_EMAIL.
+1/-0     
tsconfig.json
Update to included files in `tsconfig.json`                                           

apps/web/tsconfig.json

  • Updated the list of included files.
+2/-1     

✨ Usage guide:

Overview:
The describe tool scans the PR code changes, and generates a description for the PR - title, type, summary, walkthrough and labels. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on a PR.

When commenting, to edit configurations related to the describe tool (pr_description section), use the following template:

/describe --pr_description.some_config1=... --pr_description.some_config2=...

With a configuration file, use the following template:

[pr_description]
some_config1=...
some_config2=...
Enabling\disabling automation
  • When you first install the app, the default mode for the describe tool is:
pr_commands = ["/describe --pr_description.add_original_user_description=true" 
                         "--pr_description.keep_original_user_title=true", ...]

meaning the describe tool will run automatically on every PR, will keep the original title, and will add the original user description above the generated description.

  • Markers are an alternative way to control the generated description, to give maximal control to the user. If you set:
pr_commands = ["/describe --pr_description.use_description_markers=true", ...]

the tool will replace every marker of the form pr_agent:marker_name in the PR description with the relevant content, where marker_name is one of the following:

  • type: the PR type.
  • summary: the PR summary.
  • walkthrough: the PR walkthrough.

Note that when markers are enabled, if the original PR description does not contain any markers, the tool will not alter the description at all.

Custom labels

The default labels of the describe tool are quite generic: [Bug fix, Tests, Enhancement, Documentation, Other].

If you specify custom labels in the repo's labels page or via configuration file, you can get tailored labels for your use cases.
Examples for custom labels:

  • Main topic:performance - pr_agent:The main topic of this PR is performance
  • New endpoint - pr_agent:A new endpoint was added in this PR
  • SQL query - pr_agent:A new SQL query was added in this PR
  • Dockerfile changes - pr_agent:The PR contains changes in the Dockerfile
  • ...

The list above is eclectic, and aims to give an idea of different possibilities. Define custom labels that are relevant for your repo and use cases.
Note that Labels are not mutually exclusive, so you can add multiple label categories.
Make sure to provide proper title, and a detailed and well-phrased description for each label, so the tool will know when to suggest it.

Inline File Walkthrough 💎

For enhanced user experience, the describe tool can add file summaries directly to the "Files changed" tab in the PR page.
This will enable you to quickly understand the changes in each file, while reviewing the code changes (diffs).

To enable inline file summary, set pr_description.inline_file_summary in the configuration file, possible values are:

  • 'table': File changes walkthrough table will be displayed on the top of the "Files changed" tab, in addition to the "Conversation" tab.
  • true: A collapsable file comment with changes title and a changes summary for each file in the PR.
  • false (default): File changes walkthrough will be added only to the "Conversation" tab.
Utilizing extra instructions

The describe tool can be configured with extra instructions, to guide the model to a feedback tailored to the needs of your project.

Be specific, clear, and concise in the instructions. With extra instructions, you are the prompter. Notice that the general structure of the description is fixed, and cannot be changed. Extra instructions can change the content or style of each sub-section of the PR description.

Examples for extra instructions:

[pr_description] 
extra_instructions="""
- The PR title should be in the format: '<PR type>: <title>'
- The title should be short and concise (up to 10 words)
- ...
"""

Use triple quotes to write multi-line instructions. Use bullet points to make the instructions more readable.

More PR-Agent commands

To invoke the PR-Agent, add a comment using one of the following commands:

  • /review: Request a review of your Pull Request.
  • /describe: Update the PR title and description based on the contents of the PR.
  • /improve [--extended]: Suggest code improvements. Extended mode provides a higher quality feedback.
  • /ask <QUESTION>: Ask a question about the PR.
  • /update_changelog: Update the changelog based on the PR's contents.
  • /add_docs 💎: Generate docstring for new components introduced in the PR.
  • /generate_labels 💎: Generate labels for the PR based on the PR's contents.
  • /analyze 💎: Automatically analyzes the PR, and presents changes walkthrough for each component.

See the tools guide for more details.
To list the possible configuration parameters, add a /config comment.

See the describe usage page for a comprehensive guide on using this tool.

@HarshPatel5940 HarshPatel5940 marked this pull request as ready for review January 30, 2024 16:27
@codiumai-pr-agent-free codiumai-pr-agent-free bot added the type: enhancement New feature or request label Jan 30, 2024
Copy link
Contributor

PR Description updated to latest commit (083d645)

Copy link
Contributor

PR Analysis

  • 🎯 Main theme: Adding functionality to automatically create an admin user on application startup if one does not exist.
  • 📝 PR summary: This PR introduces a new feature that checks for an admin user on application startup and creates one if it doesn't exist. This is achieved by adding new methods in the UserService and MailService classes. Additionally, the .env.example and tsconfig.json files have been updated.
  • 📌 Type of PR: Enhancement
  • 🧪 Relevant tests added: No
  • ⏱️ Estimated effort to review [1-5]: 3, because the PR involves changes in multiple files and introduces new functionality. However, the code is well-structured and follows good practices, making it easier to understand.
  • 🔒 Security concerns: No

PR Feedback

💡 General suggestions: The code changes look good overall. However, it would be beneficial to add error handling for the case where the admin user creation fails. Also, consider adding tests for the new functionality to ensure it works as expected.


✨ Usage guide:

Overview:
The review tool scans the PR code changes, and generates a PR review. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
When commenting, to edit configurations related to the review tool (pr_reviewer section), use the following template:

/review --pr_reviewer.some_config1=... --pr_reviewer.some_config2=...

With a configuration file, use the following template:

[pr_reviewer]
some_config1=...
some_config2=...
Utilizing extra instructions

The review tool can be configured with extra instructions, which can be used to guide the model to a feedback tailored to the needs of your project.

Be specific, clear, and concise in the instructions. With extra instructions, you are the prompter. Specify the relevant sub-tool, and the relevant aspects of the PR that you want to emphasize.

Examples for extra instructions:

[pr_reviewer] # /review #
extra_instructions="""
In the 'general suggestions' section, emphasize the following:
- Does the code logic cover relevant edge cases?
- Is the code logic clear and easy to understand?
- Is the code logic efficient?
...
"""

Use triple quotes to write multi-line instructions. Use bullet points to make the instructions more readable.

How to enable\disable automation
  • When you first install PR-Agent app, the default mode for the review tool is:
pr_commands = ["/review", ...]

meaning the review tool will run automatically on every PR, with the default configuration.
Edit this field to enable/disable the tool, or to change the used configurations

Auto-labels

The review tool can auto-generate two specific types of labels for a PR:

  • a possible security issue label, that detects possible security issues (enable_review_labels_security flag)
  • a Review effort [1-5]: x label, where x is the estimated effort to review the PR (enable_review_labels_effort flag)
Extra sub-tools

The review tool provides a collection of possible feedbacks about a PR.
It is recommended to review the possible options, and choose the ones relevant for your use case.
Some of the feature that are disabled by default are quite useful, and should be considered for enabling. For example:
require_score_review, require_soc2_ticket, and more.

More PR-Agent commands

To invoke the PR-Agent, add a comment using one of the following commands:

  • /review: Request a review of your Pull Request.
  • /describe: Update the PR title and description based on the contents of the PR.
  • /improve [--extended]: Suggest code improvements. Extended mode provides a higher quality feedback.
  • /ask <QUESTION>: Ask a question about the PR.
  • /update_changelog: Update the changelog based on the PR's contents.
  • /add_docs 💎: Generate docstring for new components introduced in the PR.
  • /generate_labels 💎: Generate labels for the PR based on the PR's contents.
  • /analyze 💎: Automatically analyzes the PR, and presents changes walkthrough for each component.

See the tools guide for more details.
To list the possible configuration parameters, add a /config comment.

See the review usage page for a comprehensive guide on using this tool.

Copy link
Contributor

PR Code Suggestions

Suggestions                                                                                                                                                         
maintainability
Replace hardcoded email address with a variable.                             

Instead of hardcoding the email address '[email protected]' in the adminUserCreateEmail
method, consider using a variable or a constant. This would make the code more
maintainable and flexible.

apps/api/src/mail/services/mail.service.ts [121-137]

 async adminUserCreateEmail(email: string): Promise<void> {
     ...
-    await this.sendEmail('[email protected]', subject, body)
+    await this.sendEmail(email, subject, body)
 }
 
Replace hardcoded default admin email with a constant.                       

Consider using a constant for the default admin email '[email protected]' in the
createAdminUser method. This would make the code more maintainable and flexible.

apps/api/src/user/service/user.service.ts [195-211]

 private async createAdminUser() {
     ...
-    email: process.env.ADMIN_EMAIL || '[email protected]',
+    const DEFAULT_ADMIN_EMAIL = '[email protected]';
+    email: process.env.ADMIN_EMAIL || DEFAULT_ADMIN_EMAIL,
     ...
 }
 
enhancement
Add functionality to the mock method for creating an admin user email.       

Consider adding some functionality to the adminUserCreateEmail method in the
MockMailService class. Currently, it only logs the email, which might not be sufficient
for testing purposes.

apps/api/src/mail/services/mock.service.ts [33-35]

 async adminUserCreateEmail(email: string): Promise<void> {
     this.log.log(`Create pAdmin User Email: ${email}`)
+    // Add some mock functionality here
 }
 
Add error handling for admin user creation.                                  

Consider handling the case where the admin user creation fails in the createAdminUser
method. Currently, if the creation fails, the error is not caught and handled.

apps/api/src/user/service/user.service.ts [195-211]

 private async createAdminUser() {
     ...
-    const adminUser = await this.prisma.user.create({
-        data: {
-            ...
-        }
-    })
-    ...
+    try {
+        const adminUser = await this.prisma.user.create({
+            data: {
+                ...
+            }
+        })
+        ...
+    } catch (error) {
+        this.log.error('Failed to create admin user', error)
+    }
 }
 

✨ Usage guide:

Overview:
The improve tool scans the PR code changes, and automatically generates suggestions for improving the PR code. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on a PR.
When commenting, to edit configurations related to the improve tool (pr_code_suggestions section), use the following template:

/improve --pr_code_suggestions.some_config1=... --pr_code_suggestions.some_config2=...

With a configuration file, use the following template:

[pr_code_suggestions]
some_config1=...
some_config2=...
Enabling\disabling automation

When you first install the app, the default mode for the improve tool is:

pr_commands = ["/improve --pr_code_suggestions.summarize=true", ...]

meaning the improve tool will run automatically on every PR, with summarization enabled. Delete this line to disable the tool from running automatically.

Utilizing extra instructions

Extra instructions are very important for the improve tool, since they enable to guide the model to suggestions that are more relevant to the specific needs of the project.

Be specific, clear, and concise in the instructions. With extra instructions, you are the prompter. Specify relevant aspects that you want the model to focus on.

Examples for extra instructions:

[pr_code_suggestions] # /improve #
extra_instructions="""
Emphasize the following aspects:
- Does the code logic cover relevant edge cases?
- Is the code logic clear and easy to understand?
- Is the code logic efficient?
...
"""

Use triple quotes to write multi-line instructions. Use bullet points to make the instructions more readable.

A note on code suggestions quality
  • While the current AI for code is getting better and better (GPT-4), it's not flawless. Not all the suggestions will be perfect, and a user should not accept all of them automatically.
  • Suggestions are not meant to be simplistic. Instead, they aim to give deep feedback and raise questions, ideas and thoughts to the user, who can then use his judgment, experience, and understanding of the code base.
  • Recommended to use the 'extra_instructions' field to guide the model to suggestions that are more relevant to the specific needs of the project, or use the custom suggestions 💎 tool
  • With large PRs, best quality will be obtained by using 'improve --extended' mode.
More PR-Agent commands

To invoke the PR-Agent, add a comment using one of the following commands:

  • /review: Request a review of your Pull Request.
  • /describe: Update the PR title and description based on the contents of the PR.
  • /improve [--extended]: Suggest code improvements. Extended mode provides a higher quality feedback.
  • /ask <QUESTION>: Ask a question about the PR.
  • /update_changelog: Update the changelog based on the PR's contents.
  • /add_docs 💎: Generate docstring for new components introduced in the PR.
  • /generate_labels 💎: Generate labels for the PR based on the PR's contents.
  • /analyze 💎: Automatically analyzes the PR, and presents changes walkthrough for each component.

See the tools guide for more details.
To list the possible configuration parameters, add a /config comment.

See the improve usage page for a more comprehensive guide on using this tool.

@rajdip-b rajdip-b added the type: feature Release drafter tag for tagging PRs related to adding new features label Jan 30, 2024
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@rajdip-b rajdip-b merged commit 32fac3e into keyshade-xyz:main Jan 30, 2024
8 of 10 checks passed
@HarshPatel5940 HarshPatel5940 deleted the hp/feat/create-admin-user branch January 31, 2024 02:15
rajdip-b pushed a commit that referenced this pull request Feb 2, 2024
# 1.0.0-alpha.1 (2024-02-02)

### bug

* send email async ([728256d](728256d))

### build

* Add Lint Workflows for `cli` and `sdk-node` ([93ae134](93ae134))
* pnpm cache setup ([2db196f](2db196f))

### chore

* ad start:api script in package.json ([ee3bc19](ee3bc19))
* add `getAllUsers` test  ([0b51a02](0b51a02))
* add auto release and commit config ([0fe7d19](0fe7d19))
* add husky pre-commit check ([62bf77e](62bf77e))
* add pr auto tag workflow ([7a44137](7a44137))
* add PR lint ([bb28cb7](bb28cb7))
* add prettier:fix in package.json and husky ([2451301](2451301))
* add release drafter config ([de36d9f](de36d9f))
* add render hook in web to auto-deploy ([b0228d0](b0228d0))
* add semantic release ([af12daa](af12daa))
* add test workflow ([77c49de](77c49de))
* add workflow for CI and deployment of web ([f49b7db](f49b7db))
* adding test command to pre commit ([09805a5](09805a5))
* create a cron function that will run every hour to clean up expired otps ([5ffb54d](5ffb54d))
* fix changelog script ([0c8c0ef](0c8c0ef))
* fix changelog script ([78848a0](78848a0))
* remove / for consistancy ([0da0953](0da0953))
* remove duplicate auth service ([f97adf0](f97adf0))
* remove SDK folders ([614c304](614c304))
* remove sdk-node workflow ([655ad27](655ad27))
* remove unused import ([7f189dd](7f189dd))
* remove unwanted package.json ([14cd7ad](14cd7ad))
* rename file ([0aba0f3](0aba0f3))
* replace script with makefile ([a92311e](a92311e))
* replace script with makefile ([62d582d](62d582d))
* resolve comments ([f7562c4](f7562c4))
* update contribution readme with step to auto assign issue ([6459622](6459622))
* Update web CI and add Dockerfile for web ([fc9571e](fc9571e))

### docs

* Add CHANGELOG.md ([184220e](184220e))
* add docs folder ([e252d68](e252d68))
* Add getting-started.md ([617c346](617c346))
* update CHANGELOG.md ([b01b5ca](b01b5ca))
* Update CONTRIBUTING.md ([7fc895d](7fc895d))
* update DB_URL in .env.example ([325880e](325880e))
* update PULL_REQUEST_TEMPLATE.md ([e091d40](e091d40))
* update README.md ([fb902e5](fb902e5))
* update README.md ([d3d0d86](d3d0d86))

### feat

* add api-keys module ([abb2863](abb2863))
* add project module ([c96df17](c96df17))
* add project, environment module ([fd5c4d7](fd5c4d7))
* Add RBAC ([b4cb14f](b4cb14f))
* add secret module ([cd79172](cd79172))
* add swagger ([b15dbb0](b15dbb0))
* added the auto assign workflow yaml file ([eadca0c](eadca0c))
* added the auto assign workflow yaml file ([5e1d0f1](5e1d0f1))
* AutoCreate Admin On Startup (#101) ([32fac3e](32fac3e)), closes [#101](#101)
* create user endpoint ([53913f5](53913f5))
* dockerize api ([ce8ee23](ce8ee23))
* dockerize api ([dfbc58e](dfbc58e))
* dockerize api ([63f0a27](63f0a27))
* dockerize api ([265cec0](265cec0))
* dockerize api ([ed595c7](ed595c7))
* dockerize api ([6b756e8](6b756e8))
* finish environment module ([aaf6783](aaf6783))
* husky configured ([77bba02](77bba02))
* invalidate older OTPs ([8ca222a](8ca222a))
* landing page ([e1ec4d1](e1ec4d1))
* responsive landing ([97bbb0c](97bbb0c))

### fix

* fix syntax error in auto-assign.yaml ([e59d410](e59d410))
* indendation errors ([8212d59](8212d59))
* issue auto assign cannot read properties of undefined assignees ([0ecc749](0ecc749))
* Merge main and made a small fix ([89b0d71](89b0d71))
* nx run dev:api failing due to DI error ([81c63ca](81c63ca))
* remove hardcoded email from adminUserCreateEmail mail function ([b2b9a9e](b2b9a9e))
* remove pnpm-lock as it is causing issues in pnpm install ([d3b54d8](d3b54d8))
* resolved merge conflict ([7ff7afb](7ff7afb))
* typo ([587f06b](587f06b))
* Update discord link in README.md ([c7e4b5a](c7e4b5a))
* update lockfile ([b6f6e80](b6f6e80))
* update pnpm scripts ([e73a877](e73a877))
* update web workflow ([add46dd](add46dd))

### Fix

* Fix: ([77f8a84](77f8a84))
* made images not selectable and undraggable ([b8c200e](b8c200e))

### GitBook

* No commit message ([9cc83c9](9cc83c9))

### patch

* generate new migration ([00b516f](00b516f))
* improved query of otp ([d9d9260](d9d9260))
* remove free tier data from migration ([44dc980](44dc980))
* remove repository layer and add prisma to service ([54cc6d4](54cc6d4))
* replace resend with nodemailer ([f0b0887](f0b0887))
* send email async ([091e49b](091e49b))

### refactor

* move mock data folder inside common module ([832383e](832383e))
* service functions as suggested ([c1ae78a](c1ae78a))
* user mock data change ([ea5c504](ea5c504))

### test

* add tests for user service ([beb1955](beb1955))
* getAllUsers Controller ([cb84237](cb84237))
@rajdip-b
Copy link
Member

rajdip-b commented Feb 2, 2024

🎉 This PR is included in version 1.0.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

rajdip-b pushed a commit that referenced this pull request Feb 9, 2024
## 1.0.0 (2024-02-09)

### ⚠ BREAKING CHANGES

* **api:** update workspace role mechanism and added functionality to create custom roles

### 🚀 Features

* add api-keys module ([abb2863](abb2863))
* add project module ([c96df17](c96df17))
* add project, environment module ([fd5c4d7](fd5c4d7))
* Add RBAC ([b4cb14f](b4cb14f))
* add secret module ([cd79172](cd79172))
* add swagger ([b15dbb0](b15dbb0))
* added the auto assign workflow yaml file ([eadca0c](eadca0c))
* added the auto assign workflow yaml file ([5e1d0f1](5e1d0f1))
* **api:** add user module ([ebfb2ec](ebfb2ec))
* **api:** add workspace module ([504f0db](504f0db))
* **api:** update workspace role mechanism and added functionality to create custom roles ([6144aea](6144aea))
* **api:** updated functionality of API key ([#114](#114)) ([308fbf4](308fbf4))
* AutoCreate Admin On Startup ([#101](#101)) ([32fac3e](32fac3e))
* create user endpoint ([53913f5](53913f5))
* dockerize api ([ce8ee23](ce8ee23))
* dockerize api ([dfbc58e](dfbc58e))
* dockerize api ([63f0a27](63f0a27))
* dockerize api ([265cec0](265cec0))
* dockerize api ([ed595c7](ed595c7))
* dockerize api ([6b756e8](6b756e8))
* finish environment module ([aaf6783](aaf6783))
* husky configured ([77bba02](77bba02))
* invalidate older OTPs ([8ca222a](8ca222a))
* landing page ([e1ec4d1](e1ec4d1))
* **nx-cloud:** setup nx workspace ([#108](#108)) ([cb61d45](cb61d45))
* **oauth:** add github oauth ([5b930a1](5b930a1))
* **oauth:** get 'name' and 'avatar' of the user ([20e8dbf](20e8dbf))
* responsive landing ([97bbb0c](97bbb0c))

### 🐛 Bug Fixes

* **api:** addressed logical errors ([fc14179](fc14179))
* **api:** removed api-keys.types.ts ([2b5b1f8](2b5b1f8))
* **api:** update role based access ([5e3456c](5e3456c))
* fix syntax error in auto-assign.yaml ([e59d410](e59d410))
* indendation errors ([8212d59](8212d59))
* issue auto assign cannot read properties of undefined assignees ([0ecc749](0ecc749))
* **landing-page:** Make mobile responsive ([3fd5a1d](3fd5a1d)), closes [#41](#41)
* **landing-page:** Make mobile responsive ([0596473](0596473)), closes [#41](#41)
* **landing-page:** Make mobile responsive  ([2afaf0d](2afaf0d)), closes [#41](#41)
* made images not selectable and undraggable ([b8c200e](b8c200e))
* Merge main and made a small fix ([89b0d71](89b0d71))
* nx run dev:api failing due to DI error ([81c63ca](81c63ca))
* remove hardcoded email from adminUserCreateEmail mail function ([b2b9a9e](b2b9a9e))
* remove pnpm-lock as it is causing issues in pnpm install ([d3b54d8](d3b54d8))
* resolved merge conflict ([7ff7afb](7ff7afb))
* typo ([587f06b](587f06b))
* Update discord link in README.md ([c7e4b5a](c7e4b5a))
* update lockfile ([b6f6e80](b6f6e80))
* update pnpm scripts ([e73a877](e73a877))
* update web workflow ([add46dd](add46dd))

### 📚 Documentation

* Add CHANGELOG.md ([184220e](184220e))
* add docs folder ([e252d68](e252d68))
* Add getting-started.md ([617c346](617c346))
* update CHANGELOG.md ([b01b5ca](b01b5ca))
* Update CONTRIBUTING.md ([7fc895d](7fc895d))
* update DB_URL in .env.example ([325880e](325880e))
* update PULL_REQUEST_TEMPLATE.md ([e091d40](e091d40))
* update README.md ([fb902e5](fb902e5))
* update README.md ([d3d0d86](d3d0d86))

### 🔧 Miscellaneous Chores

* ad start:api script in package.json ([ee3bc19](ee3bc19))
* add `getAllUsers` test  ([0b51a02](0b51a02))
* add auto release and commit config ([0fe7d19](0fe7d19))
* add husky pre-commit check ([62bf77e](62bf77e))
* add pr auto tag workflow ([7a44137](7a44137))
* add PR lint ([bb28cb7](bb28cb7))
* add prettier:fix in package.json and husky ([2451301](2451301))
* add release drafter config ([de36d9f](de36d9f))
* add render hook in web to auto-deploy ([b0228d0](b0228d0))
* add semantic release ([af12daa](af12daa))
* add test workflow ([77c49de](77c49de))
* add workflow for CI and deployment of web ([f49b7db](f49b7db))
* adding test command to pre commit ([09805a5](09805a5))
* **api:** update dockerfile entrypoint ([3962beb](3962beb))
* **auth:** loading github module optionally ([#112](#112)) ([9263737](9263737))
* **ci:** add dummy envs to api workflow ([4f6bb44](4f6bb44))
* **ci:** add fly.io ([46bcd22](46bcd22))
* **ci:** fixed broken fly installation ([6ec728f](6ec728f))
* **ci:** integrated codecov ([0daeff3](0daeff3))
* **ci:** moving to gitflow release ([1f86a99](1f86a99))
* **ci:** remove auto tag workflow ([63daab3](63daab3))
* **ci:** update CI deploy stage ([cd3c47e](cd3c47e))
* **ci:** update coverage base path ([92e3620](92e3620))
* **ci:** update release workflow deps ([f2a8243](f2a8243))
* **ci:** update stage deploy condition ([362e0b0](362e0b0))
* **ci:** update workflow ([d59427e](d59427e))
* fix changelog script ([0c8c0ef](0c8c0ef))
* fix changelog script ([78848a0](78848a0))
* house cleaning ([ae73e7a](ae73e7a))
* **lint:** overwrite default eslint rules ([4bfc998](4bfc998))
* **package.json:** update release settings ([9b0e414](9b0e414))
* **release:** 0.1.0-alpha ([f166ee1](f166ee1))
* **release:** 0.1.0-alpha ([867fb08](867fb08))
* **release:** 0.2.0-alpha ([de7726c](de7726c))
* **release:** 1.0.0-alpha.1 [skip ci] ([488dd49](488dd49)), closes [#101](#101)
* **release:** 1.0.0-alpha.2 [skip ci] ([ca12cc3](ca12cc3)), closes [#108](#108) [#103](#103) [#106](#106)
* remove / for consistancy ([0da0953](0da0953))
* remove duplicate auth service ([f97adf0](f97adf0))
* remove SDK folders ([614c304](614c304))
* remove sdk-node workflow ([655ad27](655ad27))
* remove unused import ([7f189dd](7f189dd))
* remove unwanted package.json ([14cd7ad](14cd7ad))
* rename file ([0aba0f3](0aba0f3))
* replace script with makefile ([a92311e](a92311e))
* replace script with makefile ([62d582d](62d582d))
* resolve comments ([f7562c4](f7562c4))
* update contribution readme with step to auto assign issue ([6459622](6459622))
* update docker push workflow ([e286b1a](e286b1a))
* update docker push workflow ([#103](#103)) ([d562e5a](d562e5a))
* update preset ([004ea3a](004ea3a))
* Update web CI and add Dockerfile for web ([fc9571e](fc9571e))

### 🔨 Code Refactoring

* addressed sonarqube lints ([#106](#106)) ([3df13f8](3df13f8))
* move mock data folder inside common module ([832383e](832383e))
* service functions as suggested ([c1ae78a](c1ae78a))
* user mock data change ([ea5c504](ea5c504))
@rajdip-b
Copy link
Member

rajdip-b commented Feb 9, 2024

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request type: feature Release drafter tag for tagging PRs related to adding new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto create admin user while API startup
2 participants