Skip to content
프로젝트

소개

GitVersion 및 GitReleaseManager 도구를 설치하고 사용하는 GitHub Action입니다.

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+2
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

GitTools actions

GitTools

GitHub Actions that allow the setup and use of the GitVersion and GitReleaseManager tools.

CI Build Status Release Build Status Quality Gate Status

GitHub Release

Github Action Azure Pipelines Task

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

  1. Linux - Recommended to build and run
  2. Node.js - Latest LTS version recommended
  3. .NET SDK - Version 10.0 or later required for GitVersion 7 with Actions v5; see the tool-specific requirements for GitReleaseManager
  4. 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

  1. Clone the repository:

    git clone https://github.com/GitTools/actions.git
    cd actions
    
  2. Install dependencies:

    npm install
    
  3. Build 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, or npm run build:agent:github
  4. Test the project:

    npm run test
    

    Useful 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.ts
    
  5. Check code quality:

    npm run lint:check
    npm run typecheck
    npm run format:check
    npm run mdlint:check
    
  6. Run 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 integrations
  • src/agents/ - Build agent implementations for different CI platforms
  • src/__tests__/ - Test suites organized by component
  • docs/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:

  1. 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
  2. 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)
  3. Keep Your Branch Updated

    • Fetch upstream changes: git fetch upstream

    • Rebase your branch on upstream main:

      git checkout main
      git rebase upstream/main
      git checkout your-branch
      git rebase main
      
    • Always use rebase instead of merge to maintain a clean history

  4. 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
  5. 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
  6. PR Guidelines

    • Keep PRs focused and single-purpose
    • Include tests and documentation updates
    • Ensure CI checks pass
  7. After PR is Merged

    • Delete your feature branch locally and remotely
    • Update your main branch with the upstream changes

관련 프로젝트 살펴보기

불러오는 중…