From a64c6cb706a26dbf3f8b31d7ce4e59d1dd1ecc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Sat, 21 Dec 2024 23:05:46 +0300 Subject: [PATCH 1/5] ci(sync-files): utilize the sync-file-templates repository MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .github/sync-files.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/sync-files.yaml b/.github/sync-files.yaml index 8c8b67efe79..c426d4475f7 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 From 661c0ab827b5f1153dc1a95c47b4fa877c9c5750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Sat, 21 Dec 2024 23:09:40 +0300 Subject: [PATCH 2/5] update pr template 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 | 2 ++ 2 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 0890e570744..00000000000 --- 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 c426d4475f7..e11895e5eff 100644 --- a/.github/sync-files.yaml +++ b/.github/sync-files.yaml @@ -8,7 +8,9 @@ - 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 From 28336a55dbb7eacabad37b2b5bf3c8c350101f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Sat, 21 Dec 2024 23:14:04 +0300 Subject: [PATCH 3/5] add pre-commit-config too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .github/sync-files.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/sync-files.yaml b/.github/sync-files.yaml index e11895e5eff..1089f40062d 100644 --- a/.github/sync-files.yaml +++ b/.github/sync-files.yaml @@ -27,6 +27,7 @@ "pattern": "^http://localhost"' \ {source} - source: .markdownlint.yaml + - source: .pre-commit-config.yaml - source: .pre-commit-config-optional.yaml - source: .prettierignore - source: .prettierrc.yaml From 269ee0b2b4429b971a1233a8630a966776fa0790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Sat, 21 Dec 2024 23:14:22 +0300 Subject: [PATCH 4/5] remove unused pre-commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .github/sync-files.yaml | 1 - .github/workflows/pre-commit.yaml | 31 ------------------------------- 2 files changed, 32 deletions(-) delete mode 100644 .github/workflows/pre-commit.yaml diff --git a/.github/sync-files.yaml b/.github/sync-files.yaml index 1089f40062d..4a9fcf3c5b6 100644 --- a/.github/sync-files.yaml +++ b/.github/sync-files.yaml @@ -12,7 +12,6 @@ - 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 diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml deleted file mode 100644 index 15c8e86c4f9..00000000000 --- 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 }} From 1708a68e3d0844f25188c976f47163a134f32efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Sat, 21 Dec 2024 23:42:46 +0300 Subject: [PATCH 5/5] add setup.cfg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .github/sync-files.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/sync-files.yaml b/.github/sync-files.yaml index 4a9fcf3c5b6..d6df8dc06c2 100644 --- a/.github/sync-files.yaml +++ b/.github/sync-files.yaml @@ -31,6 +31,7 @@ - source: .prettierignore - source: .prettierrc.yaml - source: .yamllint.yaml + - source: setup.cfg - repository: autowarefoundation/autoware-documentation files: