-
Notifications
You must be signed in to change notification settings - Fork 21
[RFC] auto update homebrew formula resources #52
Conversation
In fact, I found it isn't too hard to let bot update formula directly. Use regex like below, I can easily update /(^ {2}resource "\w+" do(.|\n)+?^ {2}end\n+)+/m However, in order to implement this, I need some help:
|
For the Travis config, adding a new Instead of sending a PR, you could just update the formula directly. The steps would be similar to |
OK I will look it up tomorrow. (It's late in my timezone.)
I think it's best to send a PR. So ci on neovim/homebrew-neovim can verify it. Also it's best to let a human to do the real merge in case of any unexpected problem. |
I have finished implement it and tested each part. How shall we proceed? |
I'm trying to test it as whole but fail to let travis-ci run it under OS X. https://travis-ci.org/xu-cheng/bot-ci/builds/53667196 |
@xu-cheng Regarding OSX and Travis: that feature is still in beta and had to be unlocked for the neovim repos by Travis support, so you can't use it in your fork unfortunately. |
OK, I will test it as whole locally. There seems to be a small bug somewhere. |
Local Result:
|
Local Result which pointed to my tap (which is one commit behind neovim tap).
PR created by bot: https://github.com/xu-cheng/homebrew-neovim/pull/2 |
Updated a bit to let bot generate nicer commit message. See https://github.com/xu-cheng/homebrew-neovim/pull/3 for example. |
Ask for comments. |
I'm a bit torn whether it would be better to use a GH API gem.. I thought you were going to create a shell script, that's why I linked the |
Updated. It now sends PR using fixed branch. If such branch exists, it will skip updating. |
Ping |
As @fwalch alluded to, what is the reason for not using github-api.sh? The less code we have the better--build issues already take up more time than I would prefer... |
Mainly, because I'm more familiar to ruby than shell. And the API I needed is a little more complex than what have already implemented in github-api.sh. |
Per neovim/homebrew-neovim#31 Ping @jszakmeister
I don't know how to add it into
.travis.yml
. It should be run under OS X.