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: Automatically resolve git details #64

Merged
merged 4 commits into from
Jun 23, 2024

Conversation

caffeine-addictt
Copy link
Owner

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Breaking Change
  • Documentation Update

Description

This PR allows default values to be resolved from system git

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

Please replace this line with instructions on how to test your changes, a note
on the devices and browsers this has been tested on, as well as any relevant
images for UI changes.

Added/updated tests?

We encourage you to keep the code coverage percentage at 80% and above.

  • Yes
  • No, and this is why: please replace this line with details on why tests
    have not been included
  • I need help with writing tests

[optional] Are there any post deployment tasks we need to perform?

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

This patch adds a parser to extract org and repo from the github url

Signed-off-by: AlexNg <[email protected]>
This allows us to run commands and retrieve stdOut

Signed-off-by: AlexNg <[email protected]>
This patch adds the resolver, which will run git commands and attempt to
resolve values.

The following values are resolved:
- origin remote url
- user.name
- user.email

Signed-off-by: AlexNg <[email protected]>
This patch sets default value on the prompts to allow use of the
resolved values

Signed-off-by: AlexNg <[email protected]>
@caffeine-addictt caffeine-addictt added the Type: Feature Suggest a new feature. label Jun 23, 2024
@caffeine-addictt caffeine-addictt self-assigned this Jun 23, 2024
@caffeine-addictt caffeine-addictt linked an issue Jun 23, 2024 that may be closed by this pull request
@caffeine-addictt caffeine-addictt merged commit d7084bd into main Jun 23, 2024
30 checks passed
@caffeine-addictt caffeine-addictt deleted the automatically-resolve-git-details branch June 23, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Suggest a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically resolve git details
1 participant