Skip to content

Commit e4eedc6

Browse files
awf-autoware-bot[bot]github-actions
and
github-actions
authored
chore: sync files (#61)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com>
1 parent bbafc6c commit e4eedc6

21 files changed

+200
-59
lines changed

.github/ISSUE_TEMPLATE/bug.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: Bug
26
description: Report a bug
37
body:

.github/ISSUE_TEMPLATE/config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
blank_issues_enabled: false
26
contact_links:
37
- name: Question

.github/ISSUE_TEMPLATE/task.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: Task
26
description: Plan a task
37
body:

.github/dependabot.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
version: 2
26
updates:
37
- package-ecosystem: github-actions
@@ -6,5 +10,5 @@ updates:
610
interval: daily
711
open-pull-requests-limit: 1
812
labels:
9-
- bot
10-
- github-actions
13+
- tag:bot
14+
- type:github-actions

.github/pull_request_template.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Description
2+
3+
## How was this PR tested?
4+
5+
## Notes for reviewers
6+
7+
None.
8+
9+
## Effects on system behavior
10+
11+
None.

.github/stale.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
# Modified from https://github.com/probot/stale#usage
26

37
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed
48
daysUntilClose: false
59

610
# Label to use when marking as stale
7-
staleLabel: stale
11+
staleLabel: status:stale
812

913
# Comment to post when marking as stale
1014
markComment: >
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: build-and-test-differential
26

37
on:
48
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
- reopened
13+
- labeled
514

615
jobs:
16+
make-sure-label-is-present:
17+
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
18+
with:
19+
label: tag:run-build-and-test-differential
20+
721
build-and-test-differential:
8-
runs-on: ubuntu-latest
22+
needs: make-sure-label-is-present
23+
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
24+
runs-on: ubuntu-22.04
925
container: ${{ matrix.container }}
1026
strategy:
1127
fail-fast: false
@@ -16,10 +32,17 @@ jobs:
1632
- rosdistro: humble
1733
container: ros:humble
1834
steps:
19-
- name: Check out repository
20-
uses: actions/checkout@v3
35+
- name: Set PR fetch depth
36+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
37+
38+
- name: Checkout PR branch and all PR commits
39+
uses: actions/checkout@v4
2140
with:
22-
fetch-depth: 0
41+
ref: ${{ github.event.pull_request.head.sha }}
42+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
43+
44+
- name: Show disk space before the tasks
45+
run: df -h
2346

2447
- name: Remove exec_depend
2548
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
@@ -45,43 +68,12 @@ jobs:
4568

4669
- name: Upload coverage to CodeCov
4770
if: ${{ steps.test.outputs.coverage-report-files != '' }}
48-
uses: codecov/codecov-action@v3
71+
uses: codecov/codecov-action@v4
4972
with:
5073
files: ${{ steps.test.outputs.coverage-report-files }}
5174
fail_ci_if_error: false
5275
verbose: true
5376
flags: differential
5477

55-
clang-tidy-differential:
56-
runs-on: ubuntu-latest
57-
container: ros:humble
58-
needs: build-and-test-differential
59-
steps:
60-
- name: Check out repository
61-
uses: actions/checkout@v3
62-
with:
63-
fetch-depth: 0
64-
65-
- name: Remove exec_depend
66-
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
67-
68-
- name: Get modified packages
69-
id: get-modified-packages
70-
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
71-
72-
- name: Get modified files
73-
id: get-modified-files
74-
uses: tj-actions/changed-files@v35
75-
with:
76-
files: |
77-
**/*.cpp
78-
**/*.hpp
79-
80-
- name: Run clang-tidy
81-
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
82-
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
83-
with:
84-
rosdistro: humble
85-
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
86-
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
87-
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
78+
- name: Show disk space after the tasks
79+
run: df -h

.github/workflows/build-and-test.yaml

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: build-and-test
26

37
on:
@@ -9,7 +13,7 @@ on:
913
jobs:
1014
build-and-test:
1115
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
12-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1317
container: ${{ matrix.container }}
1418
strategy:
1519
fail-fast: false
@@ -21,7 +25,12 @@ jobs:
2125
container: ros:humble
2226
steps:
2327
- name: Check out repository
24-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 1
31+
32+
- name: Show disk space before the tasks
33+
run: df -h
2534

2635
- name: Remove exec_depend
2736
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
@@ -47,9 +56,12 @@ jobs:
4756

4857
- name: Upload coverage to CodeCov
4958
if: ${{ steps.test.outputs.coverage-report-files != '' }}
50-
uses: codecov/codecov-action@v3
59+
uses: codecov/codecov-action@v4
5160
with:
5261
files: ${{ steps.test.outputs.coverage-report-files }}
5362
fail_ci_if_error: false
5463
verbose: true
5564
flags: total
65+
66+
- name: Show disk space after the tasks
67+
run: df -h

.github/workflows/comment-on-pr.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
5+
name: comment-on-pr
6+
on:
7+
pull_request_target:
8+
9+
jobs:
10+
comment-on-pr:
11+
runs-on: ubuntu-22.04
12+
permissions:
13+
pull-requests: write
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@v4
17+
18+
- name: Initial PR comment
19+
uses: marocchino/sticky-pull-request-comment@v2
20+
with:
21+
message: |
22+
Thank you for contributing to the Autoware project!
23+
24+
🚧 If your pull request is in progress, [switch it to draft mode](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request#converting-a-pull-request-to-a-draft).
25+
26+
Please ensure:
27+
- You've checked our [contribution guidelines](https://autowarefoundation.github.io/autoware-documentation/main/contributing/).
28+
- Your PR follows our [pull request guidelines](https://autowarefoundation.github.io/autoware-documentation/main/contributing/pull-request-guidelines/).
29+
- All required CI checks pass before [marking the PR ready for review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request#marking-a-pull-request-as-ready-for-review).

.github/workflows/github-release.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: github-release
26

37
on:
@@ -15,7 +19,7 @@ on:
1519

1620
jobs:
1721
github-release:
18-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-22.04
1923
steps:
2024
- name: Set tag name
2125
id: set-tag-name
@@ -30,7 +34,7 @@ jobs:
3034
echo "tag-name=${REF_NAME#beta/}" >> $GITHUB_OUTPUT
3135
3236
- name: Check out repository
33-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3438
with:
3539
fetch-depth: 0
3640
ref: ${{ steps.set-tag-name.outputs.ref-name }}
+9-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: pre-commit-optional
26

37
on:
48
pull_request:
59

610
jobs:
711
pre-commit-optional:
8-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
913
steps:
1014
- name: Check out repository
11-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
1218

1319
- name: Run pre-commit
1420
uses: autowarefoundation/autoware-github-actions/pre-commit@v1
1521
with:
1622
pre-commit-config: .pre-commit-config-optional.yaml
23+
base-branch: origin/${{ github.base_ref }}

.github/workflows/pre-commit.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: pre-commit
26

37
on:
@@ -6,17 +10,17 @@ on:
610
jobs:
711
pre-commit:
812
if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories
9-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1014
steps:
1115
- name: Generate token
1216
id: generate-token
13-
uses: tibdex/github-app-token@v1
17+
uses: tibdex/github-app-token@v2
1418
with:
1519
app_id: ${{ secrets.APP_ID }}
1620
private_key: ${{ secrets.PRIVATE_KEY }}
1721

1822
- name: Check out repository
19-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2024
with:
2125
ref: ${{ github.event.pull_request.head.ref }}
2226

.github/workflows/semantic-pull-request.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: semantic-pull-request
26

37
on:
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
5+
name: spell-check-daily
6+
7+
on:
8+
schedule:
9+
- cron: 0 0 * * *
10+
workflow_dispatch:
11+
12+
jobs:
13+
spell-check-daily:
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@v4
18+
19+
- name: Run spell-check
20+
uses: autowarefoundation/autoware-github-actions/spell-check@v1
21+
with:
22+
incremental-files-only: false
23+
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
24+
dict-packages: |
25+
https://github.com/autowarefoundation/autoware-spell-check-dict
26+
https://github.com/tier4/cspell-dicts
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: spell-check-differential
26

37
on:
48
pull_request:
59

610
jobs:
711
spell-check-differential:
8-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
913
steps:
1014
- name: Check out repository
11-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1216

1317
- name: Run spell-check
1418
uses: autowarefoundation/autoware-github-actions/spell-check@v1
1519
with:
16-
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
20+
cspell-json-url: https://raw.githubusercontent.com/autowarefoundation/autoware-spell-check-dict/main/.cspell.json
21+
dict-packages: |
22+
https://github.com/autowarefoundation/autoware-spell-check-dict
23+
https://github.com/tier4/cspell-dicts

0 commit comments

Comments
 (0)