travis-web icon indicating copy to clipboard operation
travis-web copied to clipboard

update plans page - Rich's (The GM) request

Open Montana opened this issue 4 years ago • 2 comments

this is on staging to take a peek beforehand. https://app-staging.travis-ci.com/plans not sure why the failed build, could be via Greenkeeper

Montana avatar May 24 '21 16:05 Montana

Looks good but the test is failing

Yeah exactly what I was thinking, I'll try and run a verbose on it or a debug.

Montana avatar Jun 03 '21 09:06 Montana

In GreenKeeper (as I thought about 3 weeks ago) the logs display verbosely that plans-remove branch is not listed in GreenKeeper.

We can do:

branches:
  only:
    - master
    - /^greenkeeper.*$/

GreenKeeper depending on the config will be scoped to master only, for example, what if I give Travis/GreenKeeper permission to access all branches, or whitelist branches with GreenKeeper in their name. For example, say if the project was using yarn and I had a if statement for yarn, then Travis would look at the branches which would involve GreenKeeper, it would look something like:

after_success:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then yarn deploy; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then yarn alias; fi'
branches:
  only:
  - master
  - "/^greenkeeper/.*$/"

This is just an example I built. I think it's clear though.

-Montana Mendy

Montana avatar Jun 17 '21 11:06 Montana