GitTools/actions
소개
GitVersion 및 GitReleaseManager 도구를 설치하고 사용하는 GitHub Action입니다.
기타 프로젝트측정된 스타 증가
- in 24h
- +1
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGitTools actions
![]()
GitHub Actions that allow the setup and use of the GitVersion and GitReleaseManager tools.
Usage
GitVersion
Examples for usage of GitVersion:
GitReleaseManager
Examples for usage of GitReleaseManager:
Versioning and Compatibility
Actions v5 supports GitVersion 7.0.x. Use Actions v4 for GitVersion 6. See the v5 migration guide for changed arguments, configuration, outputs and platform requirements.
You can find the compatibility matrix in the versions.md file.
Contributing
Prerequisites
- Linux - Recommended to build and run
- Node.js - Latest LTS version recommended
- .NET SDK - Version 10.0 or later required for GitVersion 7 with Actions v5; see the tool-specific requirements for GitReleaseManager
- Git - Latest version recommended
Development Environment Setup
This project is designed to be run and worked on in a Linux or macOS environment. If developing on Windows, please consider using WSL as it's likely you will run into issues with file paths etc
Clone the repository:
git clone https://github.com/GitTools/actions.git cd actionsInstall dependencies:
npm installBuild the project:
- Build everything:
npm run build - Build tool bundles only:
npm run build:tools - Build all agent bundles:
npm run build:agents - Build a single agent bundle:
npm run build:agent:local,npm run build:agent:azure, ornpm run build:agent:github
- Build everything:
Test the project:
npm run testUseful scoped commands:
npm run test:tools npm run test:agents npx vitest --run src/__tests__/tools/gitversion/runner.spec.ts --config src/__tests__/vitest.config.tsCheck code quality:
npm run lint:check npm run typecheck npm run format:check npm run mdlint:checkRun a built tool locally:
npm run run:local:gitversion -- --command execute
Generated Output
This repository commits generated .mjs bundles in dist/ and the repo-root action folders because those are the published artifacts. After changing src/, run npm run build and include the generated output in your commit. Do not edit generated .mjs files by hand.
Required Knowledge
- TypeScript/JavaScript - Primary development languages
- GitHub Actions - Understanding of action creation and workflows
- Azure Pipelines - Familiarity with pipeline tasks and extensions
- .NET Tools - Basic understanding of .NET CLI tools
- Git - Strong knowledge of Git versioning and release management
Project Structure
src/tools/- Core implementation of GitVersion and GitReleaseManager integrationssrc/agents/- Build agent implementations for different CI platformssrc/__tests__/- Test suites organized by componentdocs/examples/- Usage examples for both GitHub Actions and Azure Pipelines
Creating Pull Requests
When contributing to this project, please follow these guidelines for creating pull requests:
Fork and Clone
- Fork the repository to your GitHub account
- Clone your fork locally:
git clone https://github.com/YOUR-USERNAME/actions.git - Add upstream remote:
git remote add upstream https://github.com/GitTools/actions.git
Create a Feature Branch
- Create a branch from main:
git checkout -b feature/your-feature-name - Use descriptive branch names (e.g.,
feature/add-new-version-format,fix/issue-123)
- Create a branch from main:
Keep Your Branch Updated
Fetch upstream changes:
git fetch upstreamRebase your branch on upstream main:
git checkout main git rebase upstream/main git checkout your-branch git rebase mainAlways use rebase instead of merge to maintain a clean history
Make Your Changes
- Make commits with clear, descriptive messages
- Follow the project's code style and conventions
- Add tests for new features or bug fixes
- Run tests locally to ensure everything passes
Submit the Pull Request
- Push your changes to your fork:
git push origin your-branch - Go to the original repository on GitHub
- Click "New Pull Request" and select your feature branch
- Link any related issues
- Push your changes to your fork:
PR Guidelines
- Keep PRs focused and single-purpose
- Include tests and documentation updates
- Ensure CI checks pass
After PR is Merged
- Delete your feature branch locally and remotely
- Update your main branch with the upstream changes
관련 프로젝트 살펴보기
불러오는 중…