diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0b5708caa06d8..694a76964b151 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,8 +1,9 @@ +--- version: 2 updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" - # only notify on security updates and not version updates. - open-pull-requests-limit: 0 +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + # only notify on security updates and not version updates. + open-pull-requests-limit: 0 diff --git a/.github/labeler-config.yaml b/.github/labeler-config.yaml index 18c6b01b11f0a..430876da67a38 100644 --- a/.github/labeler-config.yaml +++ b/.github/labeler-config.yaml @@ -1,38 +1,39 @@ +--- # Add 'noetic' label if any files in noetic/ folder are changed by a PR noetic: - - noetic/* +- noetic/* # Add 'humble' label if any files in humble/ folder are changed by a PR humble: - - humble/* +- humble/* # Add 'iron' label if any files in iron/ folder are changed by a PR iron: - - iron/* +- iron/* # Add 'rolling' label if any files in rolling/ folder are changed by a PR rolling: - - rolling/* +- rolling/* # Add 'rosdep' label if any files in rosdep/ folder are changed by a PR rosdep: - - rosdep/* +- rosdep/* # Add 'end-of-life' label if any files are in folders for versions that are no longer supported end-of-life: - # ROS 1 - - groovy/* - - hydro/* - - indigo/* - - jade/* - - kinetic/* - - lunar/* - - melodic/* - # ROS 2 - - ardent/* - - bouncy/* - - crystal/* - - dashing/* - - eloquent/* - - foxy/* - - galactic/* +# ROS 1 +- groovy/* +- hydro/* +- indigo/* +- jade/* +- kinetic/* +- lunar/* +- melodic/* +# ROS 2 +- ardent/* +- bouncy/* +- crystal/* +- dashing/* +- eloquent/* +- foxy/* +- galactic/* diff --git a/.github/mergify.yml b/.github/mergify.yml index 51799b1b29c13..a96da4efb4395 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -1,23 +1,27 @@ +--- pull_request_rules: - - name: Comment on PRs with an end-of-life label - conditions: - - label=end-of-life - actions: - comment: - message: This pull request changes files for a ROS distribution that is no longer supported (End Of Life) and the distribution will not have any future syncs to include this change. - - name: Close on changes only to EOL folders - conditions: - - and: - - label=end-of-life - # Active ROS 1 distros - - label!=melodic - - label!=noetic - # Active ROS 2 distros - - label!=foxy - - label!=galactic - - label!=humble - - label!=rolling - # Other labels - - label!=rosdep - actions: - close: +- name: Comment on PRs with an end-of-life label + conditions: + - label=end-of-life + actions: + comment: + message: > + This pull request changes files for a ROS distribution + that is no longer supported (End Of Life) + and the distribution will not have any future syncs to include this change. +- name: Close on changes only to EOL folders + conditions: + - and: + - label=end-of-life + # Active ROS 1 distros + - label!=melodic + - label!=noetic + # Active ROS 2 distros + - label!=foxy + - label!=galactic + - label!=humble + - label!=rolling + # Other labels + - label!=rosdep + actions: + close: diff --git a/.github/workflows/build_test.yaml b/.github/workflows/build_test.yaml index 8ba4f4882e57d..5414abcdfa1ab 100644 --- a/.github/workflows/build_test.yaml +++ b/.github/workflows/build_test.yaml @@ -1,5 +1,7 @@ +--- name: Validate rosdistro -on: +# this is fine since gha runs with yaml 1.2 +on: # yamllint disable-line rule:truthy push: branches: ['master'] pull_request: @@ -22,7 +24,8 @@ jobs: python-version: ${{ matrix.python-version }} - name: Fetch upstream (to enable diff) run: | - git remote add unittest_upstream_comparison https://github.com/ros/rosdistro.git || git remote set-url unittest_upstream_comparison https://github.com/ros/rosdistro.git + git remote add unittest_upstream_comparison https://github.com/ros/rosdistro.git \ + || git remote set-url unittest_upstream_comparison https://github.com/ros/rosdistro.git git fetch --no-tags --depth=1 unittest_upstream_comparison master - name: Install Dependencies run: | diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index d9bffc4b2bac1..40095023a74b0 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -1,5 +1,7 @@ +--- name: "Pull Request Labeler" -on: +# this is fine since gha runs with yaml 1.2 +on: # yamllint disable-line rule:truthy - pull_request_target permissions: diff --git a/.github/workflows/stale_labeler.yaml b/.github/workflows/stale_labeler.yaml index d91c7e3ba537d..9eac043d69d2d 100644 --- a/.github/workflows/stale_labeler.yaml +++ b/.github/workflows/stale_labeler.yaml @@ -1,19 +1,29 @@ +--- name: 'Label inactive PRs as stale' -on: +# this is fine since gha runs with yaml 1.2 +on: # yamllint disable-line rule:truthy schedule: - - cron: '0 11 * * *' # runs at 11am UTC every day => early morning in US + - cron: '0 11 * * *' # runs at 11am UTC every day => early morning in US jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v8 # https://github.com/marketplace/actions/close-stale-issues - with: - stale-pr-label: 'stale' - stale-pr-message: "This PR hasn't been activity in 14 days. If you are still are interested in getting it merged please provide an update. Otherwise it will likely be closed by a rosdistro maintainer following our [contributing policy](https://github.com/ros/rosdistro/blob/master/CONTRIBUTING.md). It's been labeled \"stale\" for visibility to the maintainers. If this label isn't appropriate, you can ask a maintainer to remove the label and add the 'persistent' label." - days-before-pr-stale: 14 - days-before-pr-close: -1 # don't close PRs automatically - days-before-issue-stale: -1 # don't label issues as stale - days-before-issue-close: -1 # don't close issues automatically - exempt-pr-labels: 'persistent' + - uses: actions/stale@v8 # https://github.com/marketplace/actions/close-stale-issues + with: + stale-pr-label: 'stale' + stale-pr-message: > + This PR hasn't been activity in 14 days. + If you are still are interested in getting it merged + please provide an update. + Otherwise it will likely be closed by a rosdistro maintainer + following our [contributing policy](https://github.com/ros/rosdistro/blob/master/CONTRIBUTING.md). + It's been labeled "stale" for visibility to the maintainers. + If this label isn't appropriate, + you can ask a maintainer to remove the label and add the 'persistent' label. + days-before-pr-stale: 14 + days-before-pr-close: -1 # don't close PRs automatically + days-before-issue-stale: -1 # don't label issues as stale + days-before-issue-close: -1 # don't close issues automatically + exempt-pr-labels: 'persistent' diff --git a/.yamllint b/.yamllint index 1f4499d07e443..19e2b8f644a75 100644 --- a/.yamllint +++ b/.yamllint @@ -1,3 +1,4 @@ +--- extends: default @@ -8,10 +9,10 @@ rules: rosdep/*.yaml indentation: spaces: consistent - indent-sequences: no + indent-sequences: false key-duplicates: enable line-length: max: 125 - allow-non-breakable-words: yes + allow-non-breakable-words: true ignore: | rosdep/*.yaml