buildkite_watcher 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +19 -6
- data/docs/notification_screenshot.png +0 -0
- data/lib/buildkite_watcher.rb +2 -2
- data/lib/buildkite_watcher/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3a24a5b71c0b483775becf3121225b092adfea7af00912325854bb9ffce00ca
|
4
|
+
data.tar.gz: e190ca0fefacc2760abaae640650761c68af784a7618f3055e43783bc04db9cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0227a1e7d51c320d4d4b9439addb6304212bb9175e0158b5195c74dd22663c74a012e3fdea16cb5882fd2ccdc02d92119c2b84b166f5abb9b32c3e90aad6a80
|
7
|
+
data.tar.gz: a6af957c33a368227766afbe5bcdf4ef392facaf1e84ccc348580fc3d3fc877fd13cfa34331cb8243a7cfe0226c40419652dabf2746bbc54f0e99938d97053b3
|
data/.github/workflows/main.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,24 +1,37 @@
|
|
1
1
|
# Buildkite Watcher
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/buildkite_watcher.svg)](https://badge.fury.io/rb/buildkite_watcher)
|
4
|
+
[![CI Status](https://github.com/nulogy/buildkite_watcher/workflows/CI/badge.svg?branch=main)](https://github.com/nulogy/buildkite_watcher/actions?query=workflow%3ACI)
|
5
|
+
|
6
|
+
It continuously watches the most recent buildkite job running the current git branch and notifies on build status changes.
|
7
|
+
|
8
|
+
![Notification Screenshot](docs/notification_screenshot.png)
|
4
9
|
|
5
10
|
## Installation
|
6
11
|
|
7
|
-
|
12
|
+
Run this command:
|
8
13
|
|
9
|
-
|
14
|
+
gem install buildkite_watcher
|
10
15
|
|
11
16
|
## Usage
|
12
17
|
|
13
|
-
From
|
18
|
+
From your project's root directory, run:
|
14
19
|
|
15
|
-
|
20
|
+
bw
|
16
21
|
|
17
22
|
## Development
|
18
23
|
|
19
24
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
20
25
|
|
21
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
26
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
27
|
+
|
28
|
+
### To release a new version
|
29
|
+
|
30
|
+
1. Update `CHANGELOG.md`
|
31
|
+
1. Update the version number in `version.rb`
|
32
|
+
1. Run `bundle install`
|
33
|
+
1. Commit the changes
|
34
|
+
1. Run `bundle exec rake release`
|
22
35
|
|
23
36
|
## Contributing
|
24
37
|
|
Binary file
|
data/lib/buildkite_watcher.rb
CHANGED
@@ -166,9 +166,9 @@ module BuildkiteWatcher
|
|
166
166
|
# You can find available sounds here: '/System/Library/Sounds'
|
167
167
|
case new_result
|
168
168
|
when BUILD_PASSED, BUILD_BLOCKED
|
169
|
-
system('osascript -e \'display notification "CI PASSED" with title "
|
169
|
+
system('osascript -e \'display notification "CI PASSED" with title "Buildkite Watcher" sound name "Glass"\'')
|
170
170
|
when BUILD_FAILED
|
171
|
-
system('osascript -e \'display notification "CI FAILED" with title "
|
171
|
+
system('osascript -e \'display notification "CI FAILED" with title "Buildkite Watcher" sound name "Funk"\'')
|
172
172
|
end
|
173
173
|
end
|
174
174
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildkite_watcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arturo Pie
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- buildkite_watcher.gemspec
|
93
93
|
- docs/buildkite_token.md
|
94
94
|
- docs/new_api_access_token_page.png
|
95
|
+
- docs/notification_screenshot.png
|
95
96
|
- docs/pipeline_slug.md
|
96
97
|
- exe/bw
|
97
98
|
- lib/buildkite_watcher.rb
|