File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ RubyBench was born out from
9
9
10
10
# Benchmark Scripts
11
11
12
- Ruby Scripts: https://github.com/ruby/ruby/tree/trunk /benchmark
12
+ Ruby Scripts: https://github.com/ruby/ruby/tree/master /benchmark
13
13
14
14
Discourse Scripts: https://github.com/discourse/discourse/tree/master/script
15
15
@@ -50,7 +50,7 @@ Motherboard | Intel Coporation S1200RP
50
50
``` bash
51
51
redis-server
52
52
53
- # Make sure that the current user has a Postgres account
53
+ # Make sure that the current user has a Postgres account
54
54
# If not run : sudo -u postgres createuser <username> -s
55
55
bundle exec rake db:setup
56
56
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
class GithubEventHandler
2
4
PUSH = 'push'
3
5
HEADER = 'HTTP_X_GITHUB_EVENT'
4
- MAIN_BRANCHES = [
5
- 'master' ,
6
- 'trunk'
7
- ]
8
6
9
7
def initialize ( request , payload )
10
8
@request = request
@@ -18,7 +16,7 @@ def handle
18
16
private
19
17
20
18
def push_to_main_branch?
21
- @request . env [ HEADER ] == PUSH && MAIN_BRANCHES . include? ( branch_from_payload )
19
+ @request . env [ HEADER ] == PUSH && branch_from_payload == "master"
22
20
end
23
21
24
22
def branch_from_payload
You can’t perform that action at this time.
0 commit comments