Skip to content

Commit

Permalink
Write README
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninban committed Jan 31, 2019
1 parent 967216d commit 66bc4be
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,38 @@
puller
# puller
`puller` will automatically try to create a pull request from upstream to your fork, so you can review and merge it.

#### Why
This project was created out of a particular problem. I needed to use a particular library on a mobile project, however including one of its classes required me to ask a new permission which **I didn't need**. So I forked that project, removed the guilty source and began using it. I can't make a pull request upstream because I'm killing a feature.

What a bad idea! Now I'm locking myself to a potentially out-of-date version of the library. Ok, so maybe other devs will need this "version" of the lib, so let's maintain it by pulling whatever commits happen upstream.

## Configuration
This project was made with the [serverless framework](https://serverless.com/), which makes it easy to deploy.

You will need to fill out the `environment` variables in the `serverless.yml` file.
Below is an example setup:
```yaml
environment:
GITHUB_TOKEN: 'MY_SECRET_GITHUB_TOKEN'
baseRepoOwner: 'Ninban'
repoName: 'fork-me'
baseRepoBranch: 'master'
headRepoOwner: 'LearnFrontEnd'
headRepoBranch: 'master'
```
To create a Github token, follow the [documentation](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
You may also want to modify the schedule to you own liking. I have made it every 1 hour by default.
```yaml
events:
- schedule: rate(1 hour)
```
## Deployment
```zsh
$ sls deploy
```
Try it!
```zsh
$ sls invoke -f puller -l
```

0 comments on commit 66bc4be

Please sign in to comment.