Skip to content

Commit 0497dbd

Browse files
committed
Move GitHub sync to update hook
1 parent 61f1973 commit 0497dbd

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

bin/git-push-github.rb

-17
This file was deleted.

hooks/post-receive.sh

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ function log() {
1414
log "### start ###"
1515
log "args: $*"
1616

17-
log "==> github sync"
18-
time "${ruby_commit_hook}/bin/git-push-github.rb" "$ruby_git" $*
19-
2017
log "==> notify slack"
2118
"${ruby_commit_hook}/bin/notify-slack.rb" $*
2219

hooks/update.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ set -o pipefail
33
# This script is executed by `git@git.ruby-lang.org:ruby.git/hooks/update`.
44
# Its outputs are logged to `/tmp/update.log`.
55

6-
echo hello
6+
refname="$1"
7+
oldrev="$2"
8+
newrev="$3"
9+
10+
git push github "$newrev:$refname"

0 commit comments

Comments
 (0)