From 06032181ac3c5985d1dc8d800748d5d5e6789dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Sun, 22 Dec 2024 00:27:05 +0300 Subject: [PATCH] ci(sync-files): utilize the sync-file-templates repository (#635) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .github/PULL_REQUEST_TEMPLATE.md | 27 --------------------------- .github/sync-files.yaml | 8 ++++++-- .github/workflows/pre-commit.yaml | 31 ------------------------------- 3 files changed, 6 insertions(+), 60 deletions(-) delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/pre-commit.yaml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 0890e57074..0000000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,27 +0,0 @@ -## Description - - - -## Pre-review checklist for the PR author - -The PR author **must** check the checkboxes below when creating the PR. - -- [ ] I've confirmed the [contribution guidelines]. -- [ ] The PR follows the [pull request guidelines]. - -## In-review checklist for the PR reviewers - -The Reviewers **must** check the checkboxes below before approval. - -- [ ] The PR follows the [pull request guidelines]. - -## Post-review checklist for the PR author - -The PR author **must** check the checkboxes below before merging. - -- [ ] There are no open discussions or they are tracked via tickets. - -After all checkboxes are checked, anyone who has write access can merge the PR. - -[contribution guidelines]: https://autowarefoundation.github.io/autoware-documentation/main/contributing/ -[pull request guidelines]: https://autowarefoundation.github.io/autoware-documentation/main/contributing/pull-request-guidelines/ diff --git a/.github/sync-files.yaml b/.github/sync-files.yaml index 8c8b67efe7..d6df8dc06c 100644 --- a/.github/sync-files.yaml +++ b/.github/sync-files.yaml @@ -1,4 +1,5 @@ -- repository: autowarefoundation/autoware +- repository: autowarefoundation/sync-file-templates + source-dir: sources files: - source: CODE_OF_CONDUCT.md - source: CONTRIBUTING.md @@ -7,9 +8,10 @@ - source: .github/ISSUE_TEMPLATE/config.yml - source: .github/ISSUE_TEMPLATE/task.yaml - source: .github/dependabot.yaml + - source: .github/pull_request_template.md - source: .github/stale.yml + - source: .github/workflows/comment-on-pr.yaml - source: .github/workflows/github-release.yaml - - source: .github/workflows/pre-commit.yaml - source: .github/workflows/pre-commit-optional.yaml - source: .github/workflows/semantic-pull-request.yaml - source: .github/workflows/spell-check-differential.yaml @@ -24,10 +26,12 @@ "pattern": "^http://localhost"' \ {source} - source: .markdownlint.yaml + - source: .pre-commit-config.yaml - source: .pre-commit-config-optional.yaml - source: .prettierignore - source: .prettierrc.yaml - source: .yamllint.yaml + - source: setup.cfg - repository: autowarefoundation/autoware-documentation files: diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml deleted file mode 100644 index 15c8e86c4f..0000000000 --- a/.github/workflows/pre-commit.yaml +++ /dev/null @@ -1,31 +0,0 @@ -# This file is automatically synced from: -# https://github.com/autowarefoundation/sync-file-templates -# To make changes, update the source repository and follow the guidelines in its README. - -name: pre-commit - -on: - pull_request: - -jobs: - pre-commit: - if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories - runs-on: ubuntu-22.04 - steps: - - name: Generate token - id: generate-token - uses: tibdex/github-app-token@v2 - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.PRIVATE_KEY }} - - - name: Check out repository - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.ref }} - - - name: Run pre-commit - uses: autowarefoundation/autoware-github-actions/pre-commit@v1 - with: - pre-commit-config: .pre-commit-config.yaml - token: ${{ steps.generate-token.outputs.token }}