From 9515c9641de9ec40ad8f99af6bc3d40afb6a1df6 Mon Sep 17 00:00:00 2001 From: Oliver Koenig Date: Mon, 18 Nov 2024 10:31:19 +0100 Subject: [PATCH] ci: Move `semantic-pr` into templates repo Signed-off-by: Oliver Koenig --- .github/workflows/semantic-pull-request.yml | 41 +-------------------- 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index 92bf5b5e5..4102b009d 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -23,42 +23,5 @@ permissions: jobs: semantic-pull-request: - # This job validates that the title of this pull-request matches the - # [conventional-commit-types](https://github.com/commitizen/conventional-commit-types/blob/master/index.json). - # We use squash-based merging, so the PRs semantic title will become - # the squashed commit message's title. - # This allows follow-up actions, like automated changelog-generation. - # Also, standardized and beautiful commit messages! - runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - name: Semantic PR title - uses: amannn/action-semantic-pull-request@v5 - with: - types: | - feat - fix - docs - style - refactor - perf - test - build - ci - chore - revert - - - name: PR title length - if: always() - env: - PR_NUMBER: ${{ github.event.number }} - REPOSITORY: ${{ github.repository }} - run: | - PR=$(curl -L \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $GITHUB_TOKEN" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/$REPOSITORY/pulls/$PR_NUMBER) - - test $(echo -E $PR | jq '.title | length') -le 80; \ No newline at end of file + uses: NVIDIA/NeMo-FW-CI-templates/.github/workflows/_semantic_pull_request.yml@v0.13.0 + \ No newline at end of file