From ab261265fa33a1c0fcfc75f098227c82f721b3c9 Mon Sep 17 00:00:00 2001 From: Alex ATorres Date: Sun, 14 Apr 2024 13:27:59 +0200 Subject: [PATCH] refactor: Fix indentation in labeler.yml Fixed the indentation for the changed-files section in the labels-assigner.yml and labeler.yml files to ensure correct YAML structure. --- .github/labeler.yml | 44 ++++++++++++++------------- .github/workflows/labels-assigner.yml | 4 +-- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 3a08e1b..2cbe3bd 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,48 +1,50 @@ +--- # Add 'root' label to any root file changes # Quotation marks are required for the leading asterisk root: - - changed-files: - - any-glob-to-any-file: '*' + - changed-files: + - any-glob-to-any-file: '*' # Add 'AnyChange' label to any changes within the entire repository AnyChange: - - changed-files: - - any-glob-to-any-file: '**' + - changed-files: + - any-glob-to-any-file: '**' # Add 'Documentation' label to any file changes within 'docs' or 'guides' folders Documentation: - - changed-files: - - any-glob-to-any-file: - - docs/* - - guides/* - - README.md - - .github/ISSUE_TEMPLATE/* - - ./*.md + - changed-files: + - any-glob-to-any-file: + - docs/* + - guides/* + - README.md + - .github/ISSUE_TEMPLATE/* + - ./*.md # Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name feature: - - head-branch: ['^feature', 'feature', 'feature/', '/feat'] + - head-branch: [^feature, feature, feature/, /feat] # Add 'release' label to any PR that is opened against the `main` branch release: - - base-branch: 'main' + - base-branch: main # Add Infrastructure label to any changes within the 'terraform' folder or any subfolders Infrastructure: - - changed-files: - - any-glob-to-any-file: ['terraform/**', 'infra/**', 'modules/**', 'terragrunt/**'] + - changed-files: + - any-glob-to-any-file: [terraform/**, infra/**, modules/**, terragrunt/**] # Add 'ci/cd' label to any changes within the '.github/workflows' folder ci/cd: - - changed-files: - - any-glob-to-any-file: '.github/workflows/*' + - changed-files: + - any-glob-to-any-file: .github/workflows/* # Add 'patch' label to any changes within the 'TaskFile.yml' file or any other root files patch: - - changed-files: - - any-glob-to-any-file: ['TaskFile.yml', 'LICENSE', '.github/labeler.yml', '.yamllint.yml', '.Makefile', '.pre-commit-config.yaml', '.goreleaser.yml', '.github/settings.yml', '.github/dependabot.yml', '.gitignore', '.gitattributes', '.shellcheckrc', '.editorconfig', '.dockerignore'] + - changed-files: + - any-glob-to-any-file: [TaskFile.yml, LICENSE, .github/labeler.yml, .yamllint.yml, .Makefile, .pre-commit-config.yaml, .goreleaser.yml, .github/settings.yml, + .github/dependabot.yml, .gitignore, .gitattributes, .shellcheckrc, .editorconfig, .dockerignore] # Add 'breaking-change' label to any PR that modifies a file with a commit message containing 'BREAKING CHANGE', or modify the terragrunt.hcl file breaking-change: - - commit-message: 'BREAKING CHANGE' + - commit-message: BREAKING CHANGE - changed-files: - - any-glob-to-any-file: 'terragrunt.hcl' + - any-glob-to-any-file: terragrunt.hcl diff --git a/.github/workflows/labels-assigner.yml b/.github/workflows/labels-assigner.yml index c87cb05..7df0cab 100644 --- a/.github/workflows/labels-assigner.yml +++ b/.github/workflows/labels-assigner.yml @@ -7,8 +7,8 @@ defaults: run: shell: bash permissions: - contents: read - pull-requests: write + contents: read + pull-requests: write jobs: triage: