Ratnesh-Team / Rehabify

The Path to a Brighter Tomorrow "
https://rehabify.ratn.tech
MIT License
18 stars 45 forks source link

Add GitHub Action for linting, testing, and building TypeScript project #128

Closed smog-root closed 3 weeks ago

smog-root commented 1 month ago

Closes #126

CI_LINT.yaml :

Working PROOF : It show's what are the errors in files ⬇

Screenshot (32)

This PR introduces a comprehensive Continuous Integration (CI) workflow using GitHub Actions to automate the following tasks for the TypeScript project:

Details of Workflow:

Trigger Conditions:

The workflow will automatically trigger on:

Jobs:

Linting (ESLint):

Building (TypeScript Compiler):

Testing (Jest):

Steps Performed in the Workflow:


pr-checker.yaml :

Usage:

  1. When a pull request is created or edited, the workflow automatically triggers.

  2. The workflow checks for:

    • A non-empty PR description.
    • A valid issue reference format (Fixes , Close, Closes, Closed , Fix , Fixed , Resolve , Resolves #Issue_number).
  3. If either check fails, the PR will be marked as failing, and the author will receive clear error messages in the PR comments.

  4. If all checks pass, a confirmation message will indicate that the PR is valid.

Note: Kindly add all the labels added to the issue, to this PR!

@ratnesh-maurya

smog-root commented 1 month ago

Upgrade it to level3. It deserves it! @ratnesh-maurya

ratnesh-maurya commented 1 month ago

Will review Tomorrow

smog-root commented 1 month ago

@ratnesh-maurya did you review??

ratnesh-maurya commented 1 month ago

yes , can you try to use an AI-agent to review code https://medium.com/@akshayballal95/i-used-codiumais-pr-agent-and-i-love-it-6c1febad35b3

Like this

smog-root commented 1 month ago

@ratnesh-maurya merge it!

ratnesh-maurya commented 1 month ago

have you done changes what i asked for

smog-root commented 1 month ago

@ratnesh-maurya you didn't say me anything!! you told "can you try to use an AI-agent to review code"!!

what should i change??

did you test it??

it's working perfectly fine!!?

ratnesh-maurya commented 1 month ago

I have reviewed pr and asked for changes read the comments in the pr

smog-root commented 1 month ago

There are no change requests ??

smog-root commented 1 month ago

What should I add?? Tell now??!!

ratnesh-maurya commented 1 month ago

@ratnesh-maurya you didn't say me anything!! you told "can you try to use an AI-agent to review code"!!

what should i change??

did you test it??

it's working perfectly fine!!?

Also I have mentioned there to implement code quality check ( which can be done through ai agent) and lint check only for more refer to comment in issue

ratnesh-maurya commented 1 month ago

There are no change requests ??

let me see why its not showing up

smog-root commented 1 month ago

Bro. I'm currently not going to work on this PR!! because I have done a lot of contributions about workflows!! A mod had warned me about doing this!

I told to the mod that I'm going to work on really stuff form now on.

He decreased my points on the leaderboard board and PR too!

Sorry. I can't implement more features to this PR!! If possible merge this PR. I have added linting @ratnesh-maurya

ratnesh-maurya commented 1 month ago

no issues