Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Merge branch 'tier4/universe' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
kenji-miyake authored Feb 1, 2022
2 parents 8c6fb0b + 7d3844e commit ffbfa6e
Show file tree
Hide file tree
Showing 22 changed files with 134 additions and 764 deletions.
7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

74 changes: 37 additions & 37 deletions .github/get_modified_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,47 @@ ROOT_DIR=$(readlink -f "$SCRIPT_DIR"/../)
# Parse arguments
args=()
while [ "${1:-}" != "" ]; do
case "$1" in
case "$1" in
*)
args+=("$1")
;;
esac
shift
args+=("$1")
;;
esac
shift
done

base_branch="${args[0]}"

# Check args
if [ "$base_branch" = "" ]; then
echo -e "\e[31mPlease input a valid base_branch as the 1st argument.\e[m"
exit 1
echo -e "\e[31mPlease input a valid base_branch as the 1st argument.\e[m"
exit 1
fi

function find_package_dir() {
[ "$1" == "" ] && return 1

target_dir=$(dirname "$1")
while true ; do
parent_dir=$(dirname "$target_dir")

# Exit if no parent found
if [ "$parent_dir" = "$target_dir" ] ; then
return 0
fi

# Output package name if package.xml found
if [ -f "$target_dir/package.xml" ] ; then
if [ ! -f "$target_dir/COLCON_IGNORE" ] ; then
echo "$target_dir"
return 0
fi
fi

# Move to parent dir
target_dir=$parent_dir
done

return 1
[ "$1" == "" ] && return 1

target_dir=$(dirname "$1")
while true; do
parent_dir=$(dirname "$target_dir")

# Exit if no parent found
if [ "$parent_dir" = "$target_dir" ]; then
return 0
fi

# Output package name if package.xml found
if [ -f "$target_dir/package.xml" ]; then
if [ ! -f "$target_dir/COLCON_IGNORE" ]; then
echo "$target_dir"
return 0
fi
fi

# Move to parent dir
target_dir=$parent_dir
done

return 1
}

# Find modified files from base branch
Expand All @@ -59,16 +59,16 @@ modified_files=$(git diff --name-only "$base_branch"...HEAD)
# Find modified packages
modified_package_dirs=()
for modified_file in $modified_files; do
modified_package_dir=$(find_package_dir "$ROOT_DIR/$modified_file")
modified_package_dir=$(find_package_dir "$ROOT_DIR/$modified_file")

if [ "$modified_package_dir" != "" ] ; then
modified_package_dirs+=("$modified_package_dir")
fi
if [ "$modified_package_dir" != "" ]; then
modified_package_dirs+=("$modified_package_dir")
fi
done

# Get package names from paths
if [ "${#modified_package_dirs[@]}" != "0" ] ; then
modified_packages=$(colcon list --names-only --paths "${modified_package_dirs[@]}")
if [ "${#modified_package_dirs[@]}" != "0" ]; then
modified_packages=$(colcon list --names-only --paths "${modified_package_dirs[@]}")
fi

# Output
Expand Down
4 changes: 0 additions & 4 deletions .github/labeler-develop.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/labeler-main.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/labeler-rc.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/labeler.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/sync-files.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
- repository: autowarefoundation/autoware
files:
- source: .github/dependabot.yaml
- source: .github/workflows/pre-commit-optional.yaml
- source: .github/workflows/semantic-pull-request.yaml
- source: .github/workflows/spell-check.yaml
- source: .clang-format
- source: .markdown-link-check.json
- source: .markdownlint.yaml
- source: .pre-commit-config-optional.yaml
- source: .prettierignore
- source: .prettierrc
- source: .yamllint.yaml
- source: CPPLINT.cfg
- source: setup.cfg

- repository: autowarefoundation/autoware_common
files:
- source: .github/workflows/automatic-rebase.yaml
- source: .github/workflows/build-and-test.yaml
- source: .github/workflows/build-and-test-pr.yaml
- source: .github/workflows/pre-commit.yaml
68 changes: 0 additions & 68 deletions .github/workflows/build_and_test.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/build_and_test_pr.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/labeler.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/spell_check_all.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/spell_check_pr.yml

This file was deleted.

Loading

0 comments on commit ffbfa6e

Please sign in to comment.