ccremer/greposync

New Pull request didn't get labels applied

Closed this issue · 0 comments

In ccremer/go-command-pipeline#16 the labels were not applied.

Logs

  DEBUG   Using config (config="{"project":{"rootDir":"repos","jobs":1},"log":{"level":"debug","showDiff":true,"showLog":true},"pr":{"create":true,"targetBranch":"","labels":["greposync"],"bodyTemplate":"This Pull request updates this repository with changes from a greposync template repository.","subject":"Update from greposync"},"template":{"rootDir":"template"},"git":{"skipReset":false,"skipCommit":false,"skipPush":false,"forcePush":false,"commitMessage":"Update from greposync","commitBranch":"greposync","defaultBranch":"","name":"","namespace":"ccremer"},"repositoryLabels":null}")
  DEBUG   Executing step (step="configure infrastructure")
  DEBUG   Executing step (step="fetch managed repos config")
  DEBUG   Loading config file (name="managed_repos.yml")
...
  DEBUG    (github.com/ccremer/go-command-pipeline) Executing step (step="push changes")
  INFO     (github.com/ccremer/go-command-pipeline) git push origin greposync
  DEBUG    (github.com/ccremer/go-command-pipeline) Executing step (step="find existing pull request")
  DEBUG    (github.com/ccremer/go-command-pipeline) No PR found
  DEBUG    (github.com/ccremer/go-command-pipeline) Executing step (step="ensure pull request")
  INFO     (github.com/ccremer/go-command-pipeline) PR created (url="https://github.com/ccremer/go-command-pipeline/pull/16")
 SUCCESS   (github.com/ccremer/go-command-pipeline) Update finished for repository               

Expected:

  • New PR should have received the "greposync" label.
  • Note: At the point of running, the repository didn't have the "greposync" label. Maybe it needs to exist first?

Version

v0.2.0