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

Not work files condition #19

Closed
posquit0 opened this issue Oct 15, 2020 · 0 comments · Fixed by #20
Closed

Not work files condition #19

posquit0 opened this issue Oct 15, 2020 · 0 comments · Fixed by #20

Comments

@posquit0
Copy link
Contributor

posquit0 commented Oct 15, 2020

labeler.yml

version: 1
labels:
- label: "env/dev"
  files:
  - "clusters/dev/.*"
- label: "env/staging"
  files:
  - "clusters/staging/.*"
- label: "env/prod"
  files:
  - "clusters/prod/.*"
- label: "infra/observability-platform"
  files:
  - "clusters/dev/observability/.*"
  - "clusters/staging/observability/.*"
  - "clusters/prod/observability/.*"

Problem

When I changed clusters/dev/observability/test.yaml in PR, the action does not add env/dev and infra/observability-platform labels.

I think getPrFileNames function is broken.

Logs

2020/10/15 17:37:50 Trigger event: pull_request
2020/10/15 17:37:50 env/dev: condition Title matches regex skipped (title is not set in config)
2020/10/15 17:37:50 env/dev: condition Branch matches regex skipped (branch is not set in config)
2020/10/15 17:37:50 env/dev: condition Pull Request is mergeable skipped (mergeable is not set in config)
2020/10/15 17:37:50 env/dev: condition Pull Request contains a number of changes skipped (size-above and size-below are not set in config)
2020/10/15 17:37:50 Matching `clusters/dev/.*` against: 
2020/10/15 17:37:50 env/dev: condition File matches regex yields false
2020/10/15 17:37:50 env/staging: condition Title matches regex skipped (title is not set in config)
2020/10/15 17:37:50 env/staging: condition Branch matches regex skipped (branch is not set in config)
2020/10/15 17:37:50 env/staging: condition Pull Request is mergeable skipped (mergeable is not set in config)
2020/10/15 17:37:50 env/staging: condition Pull Request contains a number of changes skipped (size-above and size-below are not set in config)
2020/10/15 17:37:50 Matching `clusters/staging/.*` against: 
2020/10/15 17:37:50 env/staging: condition File matches regex yields false
2020/10/15 17:37:50 env/prod: condition Title matches regex skipped (title is not set in config)
2020/10/15 17:37:50 env/prod: condition Branch matches regex skipped (branch is not set in config)
2020/10/15 17:37:50 env/prod: condition Pull Request is mergeable skipped (mergeable is not set in config)
2020/10/15 17:37:50 env/prod: condition Pull Request contains a number of changes skipped (size-above and size-below are not set in config)
2020/10/15 17:37:50 Matching `clusters/prod/.*` against: 
2020/10/15 17:37:50 env/prod: condition File matches regex yields false
2020/10/15 17:37:50 infra/observability-platform: condition Title matches regex skipped (title is not set in config)
2020/10/15 17:37:50 infra/observability-platform: condition Branch matches regex skipped (branch is not set in config)
2020/10/15 17:37:50 infra/observability-platform: condition Pull Request is mergeable skipped (mergeable is not set in config)
2020/10/15 17:37:50 infra/observability-platform: condition Pull Request contains a number of changes skipped (size-above and size-below are not set in config)
2020/10/15 17:37:50 Matching `clusters/dev/observability/.*, clusters/staging/observability/.*, clusters/prod/observability/.*` against: 
2020/10/15 17:37:50 infra/observability-platform: condition File matches regex yields false
2020/10/15 17:37:51 Desired labels: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant