Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsantell/fx-devtools-bot
Bot that tweets for Firefox Dev Tools on every landed patch.
https://github.com/jsantell/fx-devtools-bot
Last synced: about 1 month ago
JSON representation
Bot that tweets for Firefox Dev Tools on every landed patch.
- Host: GitHub
- URL: https://github.com/jsantell/fx-devtools-bot
- Owner: jsantell
- License: mit
- Created: 2014-07-04T19:37:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-16T19:47:33.000Z (over 10 years ago)
- Last Synced: 2024-10-16T05:44:30.907Z (3 months ago)
- Language: Go
- Homepage: http://twitter.com/fxdevtoolsbot
- Size: 227 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
fx-devtools-bot
===============[![Build Status](http://img.shields.io/travis/jsantell/fx-devtools-bot.svg?style=flat)](https://travis-ci.org/jsantell/fx-devtools-bot)
Tweets for [@FirefoxDevtools](https://twitter.com/firefoxdevtools) on every landed patch.
Twitter account: [@fxdevtoolsbot](https://twitter.com/fxdevtoolsbot)
## Using
Fetch using `go get`
```
$ go get github.com/jsantell/fx-devtools-bot
```Or clone this repository and install dependencies:
```
$ go get github.com/jsantell/go-githubstream
$ go get github.com/ChimeraCoder/anaconda
$ go get github.com/bitly/go-simplejson
```The following environment variables will need to be set with their obvious values:
```
FX_DEVTOOLS_BOT_GITHUB_TOKEN
FX_DEVTOOLS_BOT_CONSUMER_KEY
FX_DEVTOOLS_BOT_CONSUMER_SECRET
FX_DEVTOOLS_BOT_ACCESS_TOKEN
FX_DEVTOOLS_BOT_ACCESS_TOKEN_SECRET
```Build and run
```
$ go build . && ./fx-devtools-bot```
## Extending
To extend this for your own commit bot, modify `FilterCommits` to ignore commits as type `github.RepositoryCommit` that can be done on the first pass of filtering (like ignoring merge commits, etc.). Then instantiate a custom Commit object (just needs to implement `FormatMessage() string` and `IsValid() bool` for filtering that may require calling an external API, like in this case, calling Bugzilla's API to ensure it's in the Developer Tools component. You may also need to change the environment variables set mentioned in `Using`.
## Testing
Currently the `bz-commit_test` test queries the Bugzilla API, so be polite on running this.
## License
MIT License, Copyright (c) 2014 Jordan Santell