Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Fix indentation in labeler.yml #9

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 23 additions & 21 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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]

Check failure on line 44 in .github/labeler.yml

View workflow job for this annotation

GitHub Actions / Yamllint

44:17 [indentation] wrong indentation: expected 35 but found 16

Check failure on line 44 in .github/labeler.yml

View workflow job for this annotation

GitHub Actions / Yamllint

44:17 [indentation] wrong indentation: expected 35 but found 16

# 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
4 changes: 2 additions & 2 deletions .github/workflows/labels-assigner.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
name: Assign labels on PR
on:

Check warning on line 3 in .github/workflows/labels-assigner.yml

View workflow job for this annotation

GitHub Actions / Yamllint

3:1 [truthy] truthy value should be one of [false, true]

Check warning on line 3 in .github/workflows/labels-assigner.yml

View workflow job for this annotation

GitHub Actions / Yamllint

3:1 [truthy] truthy value should be one of [false, true]

Check warning on line 3 in .github/workflows/labels-assigner.yml

View workflow job for this annotation

GitHub Actions / Yamllint

3:1 [truthy] truthy value should be one of [false, true]

Check warning on line 3 in .github/workflows/labels-assigner.yml

View workflow job for this annotation

GitHub Actions / Yamllint

3:1 [truthy] truthy value should be one of [false, true]
pull_request:
types: [opened, labeled, unlabeled, synchronize]
defaults:
run:
shell: bash
permissions:
contents: read
pull-requests: write
contents: read
pull-requests: write

jobs:
triage:
Expand Down
Loading