Skip to content

Repository files navigation

map4_github_actions

C/C++のフォーマットには clang-format-18 を利用している

Usage

C/C++ Formatter

CIでテストしたいレポジトリのCI設定に次のように追加する。トリガーなどは各自の要件に合わせる。

name: Formatter CIon:
pull_requestjobs:
call-formatter:
uses: MapIV/map4_github_actions/.github/workflows/formatter.yml@v2026.05.29secrets:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}CI_USER_APP_ID: ${{ secrets.CI_USER_APP_ID }}CI_USER_PRIVATE_KEY: ${{ secrets.CI_USER_PRIVATE_KEY }}

Pre-commit Formatter

  1. 利用したいレポジトリのルートに.pre-commit-config.yamlを配置する
  2. pip3 install pre-commit
  3. pre-commit install

Check PR Title

To enable this workflow, add the check-pr-title.yml file to your repository under the .github/workflows/ directory. Ensure that GitHub Actions are enabled in your repository. When a pull request is opened, edited, or synchronized, the workflow will automatically check whether the PR title follows the Semantic PR naming convention.

このワークフローを有効にするには、リポジトリの .github/workflows/ ディレクトリに check-pr-title.yml ファイルを追加してください。 また、リポジトリで GitHub Actions が有効になっていることを確認してください。 プルリクエストが作成・編集・同期された際に、ワークフローが自動的にタイトルをチェックし、Semantic PR の命名規則に従っているかを確認します。

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages