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

Functionality to generate Standard PR titles #12

Closed
wants to merge 1 commit into from

Conversation

simran142002
Copy link

Functionality:

We can then use this function to generate PR titles in a standardized manner before submitting a PR.

Solution:

Added a function that takes the type, module, and subject as input and generates a formatted PR title in validate.ts. This function should also perform length checks and exclude the issue # if present. Have added the method to test the function in spec.ts

Risk level:

  • high
  • medium
  • low

How to test:

Add a console in the method in spec to print formattedTitle
ng run test

Screenshots

Screenshot from 2024-01-21 15-07-24

@williamjallen
Copy link
Member

What are you trying to accomplish? Using the function you have proposed is almost certainly more work than just typing out the characters of the prefix.

@williamjallen
Copy link
Member

Please create an issue or join our Zulip chat to discuss this further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants