Skip to content

Commit aca466f

Browse files
committed
Ruby has moved from trunk to the master branch.
1 parent 6bf229e commit aca466f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RubyBench was born out from
99

1010
# Benchmark Scripts
1111

12-
Ruby Scripts: https://github.com/ruby/ruby/tree/trunk/benchmark
12+
Ruby Scripts: https://github.com/ruby/ruby/tree/master/benchmark
1313

1414
Discourse Scripts: https://github.com/discourse/discourse/tree/master/script
1515

@@ -50,7 +50,7 @@ Motherboard | Intel Coporation S1200RP
5050
```bash
5151
redis-server
5252

53-
# Make sure that the current user has a Postgres account
53+
# Make sure that the current user has a Postgres account
5454
# If not run : sudo -u postgres createuser <username> -s
5555
bundle exec rake db:setup
5656

app/services/github_event_handler.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
# frozen_string_literal: true
2+
13
class GithubEventHandler
24
PUSH = 'push'
35
HEADER = 'HTTP_X_GITHUB_EVENT'
4-
MAIN_BRANCHES = [
5-
'master',
6-
'trunk'
7-
]
86

97
def initialize(request, payload)
108
@request = request
@@ -18,7 +16,7 @@ def handle
1816
private
1917

2018
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"
2220
end
2321

2422
def branch_from_payload

0 commit comments

Comments
 (0)