<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-shell.git/lib/gitlab_custom_hook.rb, branch zj-cleanup-exec</title>
<subtitle>gitlab.com: gitlab-org/gitlab-shell.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-shell.git/'/>
<entry>
<title>Revert "Merge branch 'ash.mckenzie/srp-refactor' into 'master'"</title>
<updated>2018-08-13T23:22:46+00:00</updated>
<author>
<name>Nick Thomas</name>
<email>nick@gitlab.com</email>
</author>
<published>2018-08-13T23:22:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=c8bf2e7d47c3b8f34cb79847edcd5dd50b8f280e'/>
<id>c8bf2e7d47c3b8f34cb79847edcd5dd50b8f280e</id>
<content type='text'>
This reverts commit 3aaf4751e09262c53544a1987f59b1308af9b6c1, reversing
changes made to c6577e0d75f51b017f2f332838b97c3ca5b497c0.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 3aaf4751e09262c53544a1987f59b1308af9b6c1, reversing
changes made to c6577e0d75f51b017f2f332838b97c3ca5b497c0.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use gl_id instead of key_id</title>
<updated>2018-07-31T14:24:17+00:00</updated>
<author>
<name>Ash McKenzie</name>
<email>amckenzie@gitlab.com</email>
</author>
<published>2018-07-31T05:50:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=cda96eb70992cc80d0dde8195df57d7b5c4a1429'/>
<id>cda96eb70992cc80d0dde8195df57d7b5c4a1429</id>
<content type='text'>
- Is possible that gl_id could be a 'user_id'
- Is a more accurate variable name
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Is possible that gl_id could be a 'user_id'
- Is a more accurate variable name
</pre>
</div>
</content>
</entry>
<entry>
<title>Update files to pass modern rubocop checks. Disable some of them</title>
<updated>2018-02-22T16:57:19+00:00</updated>
<author>
<name>Dmitriy Zaporozhets</name>
<email>dmitriy.zaporozhets@gmail.com</email>
</author>
<published>2018-02-22T16:57:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=f83801a9fe092334d5b325bbe4b736aa6b88007e'/>
<id>f83801a9fe092334d5b325bbe4b736aa6b88007e</id>
<content type='text'>
Signed-off-by: Dmitriy Zaporozhets &lt;dmitriy.zaporozhets@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Dmitriy Zaporozhets &lt;dmitriy.zaporozhets@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Make custom hooks dir configurable</title>
<updated>2016-12-12T13:21:42+00:00</updated>
<author>
<name>Sean McGivern</name>
<email>sean@gitlab.com</email>
</author>
<published>2016-12-09T12:52:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=fbc213eabdbb76ec846357d980705f5d4f20ecc5'/>
<id>fbc213eabdbb76ec846357d980705f5d4f20ecc5</id>
<content type='text'>
Add a new configuration option, custom_hooks_dir. When this is set, we
will look for global custom hooks in:
    &lt;custom_hooks_dir&gt;/{pre-receive,update,post-receive}.d/*

When this is not set, default to &lt;REPO_PATH&gt;/hooks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new configuration option, custom_hooks_dir. When this is set, we
will look for global custom hooks in:
    &lt;custom_hooks_dir&gt;/{pre-receive,update,post-receive}.d/*

When this is not set, default to &lt;REPO_PATH&gt;/hooks.
</pre>
</div>
</content>
</entry>
<entry>
<title>avoid Dir.exists? duplication by moving the check to match_hook_files</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Elan Ruusamäe</name>
<email>glen@delfi.ee</email>
</author>
<published>2016-11-16T00:12:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=872c66e977b3041e0c18543d2e00a255e8e89e41'/>
<id>872c66e977b3041e0c18543d2e00a255e8e89e41</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>use String.end_with? instead of regexp</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Elan Ruusamäe</name>
<email>glen@delfi.ee</email>
</author>
<published>2016-11-16T00:08:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=d87c4b9c0d3aed4a23d74f340ece2c4bff83101b'/>
<id>d87c4b9c0d3aed4a23d74f340ece2c4bff83101b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>custom_hook: chain custom hooks</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Elan Ruusamäe</name>
<email>glen@delfi.ee</email>
</author>
<published>2016-10-26T18:13:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=dbd4bc264baf611b91c03d799f77376963633551'/>
<id>dbd4bc264baf611b91c03d799f77376963633551</id>
<content type='text'>
update hooks lookup to use &lt;hook&gt;.d/* from repository hooks dir

the order would be:

1. &lt;repository&gt;.git/custom_hooks/&lt;hook_name&gt; - per project hook
2. &lt;repository&gt;.git/custom_hooks/&lt;hook_name&gt;.d/* - per project hooks
3. &lt;repository&gt;.git/hooks/&lt;hook_name&gt;.d/* - global hooks

only executable files are matched and backup files excluded (*~)
and the resulting list is sorted per each lookup
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
update hooks lookup to use &lt;hook&gt;.d/* from repository hooks dir

the order would be:

1. &lt;repository&gt;.git/custom_hooks/&lt;hook_name&gt; - per project hook
2. &lt;repository&gt;.git/custom_hooks/&lt;hook_name&gt;.d/* - per project hooks
3. &lt;repository&gt;.git/hooks/&lt;hook_name&gt;.d/* - global hooks

only executable files are matched and backup files excluded (*~)
and the resulting list is sorted per each lookup
</pre>
</div>
</content>
</entry>
<entry>
<title>custom_hook: add support for global custom hooks</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Dirk Hörner</name>
<email>dirker@gmail.com</email>
</author>
<published>2016-09-05T10:06:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=0e409ee49b1d68ea949da2d0504f325439ad53b3'/>
<id>0e409ee49b1d68ea949da2d0504f325439ad53b3</id>
<content type='text'>
This commit adds the option of having another set of global custom hooks
along with the already supported repository local custom hooks.

The repository local custom hook is executed first (if available). If
successful, execution continues with the global custom hook (if available).
This way, local custom hooks get priority over global custom hooks.

Global custom hooks can be enabled by placing an executable file into the
"custom_hooks" directory within gitlab-shell (create if it does not exist,
yet).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit adds the option of having another set of global custom hooks
along with the already supported repository local custom hooks.

The repository local custom hook is executed first (if available). If
successful, execution continues with the global custom hook (if available).
This way, local custom hooks get priority over global custom hooks.

Global custom hooks can be enabled by placing an executable file into the
"custom_hooks" directory within gitlab-shell (create if it does not exist,
yet).
</pre>
</div>
</content>
</entry>
<entry>
<title>custom_hook: refactor to pull repo_path into class</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Dirk Hörner</name>
<email>dirker@gmail.com</email>
</author>
<published>2016-09-05T09:59:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=d05522de85dcdfa91349c0d9fc78bf72931d6a39'/>
<id>d05522de85dcdfa91349c0d9fc78bf72931d6a39</id>
<content type='text'>
This commit takes the GitlabCustomHook a bit clother to the other hook
handling classes by receiving the repo_path as argument to initialize()
instead of passing it to each method.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit takes the GitlabCustomHook a bit clother to the other hook
handling classes by receiving the repo_path as argument to initialize()
instead of passing it to each method.
</pre>
</div>
</content>
</entry>
<entry>
<title>custom_hook: only execute hook if file is executable</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Dirk Hörner</name>
<email>dirker@gmail.com</email>
</author>
<published>2016-09-05T08:44:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=2d774eeae8ccfb211cc6ab6aeab5db600f3fdc7c'/>
<id>2d774eeae8ccfb211cc6ab6aeab5db600f3fdc7c</id>
<content type='text'>
This commit fixes an issue where an existing but unexecutable hook would
cause an uncaught execption.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit fixes an issue where an existing but unexecutable hook would
cause an uncaught execption.
</pre>
</div>
</content>
</entry>
</feed>
