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

GitAuto: [FEATURE] Use GitVersion #57

Merged

Conversation

gitauto-ai[bot]
Copy link
Contributor

@gitauto-ai gitauto-ai bot commented Sep 3, 2024

Resolves #56

What is the feature

The feature involves integrating GitVersion into the project to automate Semantic Versioning (SemVer) based on Git history.

Why we need the feature

Implementing GitVersion will streamline the versioning process by automatically generating version numbers based on the commit history. This ensures consistency and accuracy in versioning, which is crucial for release management and dependency tracking.

How to implement and why

  1. Remove MSBuild.Version.Target Package:

    • This package is currently used for versioning. We will replace it with GitVersion, which offers more comprehensive and automated versioning capabilities.
  2. Delete Properties\\version.txt Files:

    • These files are manually maintained and will become redundant with GitVersion. Removing them will prevent conflicts and reduce maintenance overhead.
  3. Create GitVersion.yml:

    • Add a GitVersion.yml file at the root level with mode: Mainline. This configuration will guide GitVersion to use the mainline development mode, which is suitable for projects with a continuous delivery workflow.
  4. Update deploy.yml:

    • Modify the deployment pipeline to include steps for running GitVersion. This ensures that the versioning is integrated into the CI/CD process, providing automated version updates with each deployment.

About backward compatibility

The transition to GitVersion will not maintain backward compatibility with the previous versioning system. However, this change is necessary to adopt a more robust and automated versioning strategy. The benefits of improved version management outweigh the need for backward compatibility in this context.

Test these changes locally

git checkout -b gitauto/issue-#56-63af8b1c-766d-4748-a7d6-83b223f7ee76
git pull origin gitauto/issue-#56-63af8b1c-766d-4748-a7d6-83b223f7ee76

@gitauto-ai gitauto-ai bot mentioned this pull request Sep 3, 2024
@github-actions github-actions bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 3, 2024
@gstraccini gstraccini bot added enhancement New feature or request gitauto GitAuto label to trigger the app in a issue. 🚦awaiting triage Awaiting triage 🤖 bot Automated processes or integrations labels Sep 3, 2024
@gstraccini gstraccini bot requested a review from guibranco September 3, 2024 00:09
@guibranco guibranco removed the 🚦awaiting triage Awaiting triage label Sep 4, 2024
@github-actions github-actions bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 4, 2024
@gstraccini gstraccini bot added the 🚦awaiting triage Awaiting triage label Sep 4, 2024
Copy link

sonarqubecloud bot commented Sep 4, 2024

Copy link

github-actions bot commented Sep 4, 2024

Infisical secrets check: ✅ No secrets leaked!

Scan results:

11:37PM INF scanning for exposed secrets...
11:37PM INF 56 commits scanned.
11:37PM INF scan completed in 733ms
11:37PM INF no leaks found

@guibranco guibranco removed the 🚦awaiting triage Awaiting triage label Sep 4, 2024
@guibranco guibranco merged commit 3724449 into main Sep 4, 2024
11 checks passed
@guibranco guibranco deleted the gitauto/issue-#56-63af8b1c-766d-4748-a7d6-83b223f7ee76 branch September 4, 2024 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 bot Automated processes or integrations enhancement New feature or request gitauto GitAuto label to trigger the app in a issue. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Use GitVersion
1 participant