Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a2767e2b
Commit
a2767e2b
authored
Jul 01, 2019
by
Marcel Amirault
Committed by
Evan Read
Jul 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Fix spacing in code blocks in webhook raketask doc
parent
68fc36d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
doc/raketasks/web_hooks.md
doc/raketasks/web_hooks.md
+25
-25
No files found.
doc/raketasks/web_hooks.md
View file @
a2767e2b
...
...
@@ -3,53 +3,53 @@
## Add a webhook for **ALL** projects:
```
sh
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:add
URL
=
"http://example.com/hook"
# source installations
bundle
exec
rake gitlab:web_hook:add
URL
=
"http://example.com/hook"
RAILS_ENV
=
production
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:add
URL
=
"http://example.com/hook"
# source installations
bundle
exec
rake gitlab:web_hook:add
URL
=
"http://example.com/hook"
RAILS_ENV
=
production
```
## Add a webhook for projects in a given **NAMESPACE**:
```
sh
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:add
URL
=
"http://example.com/hook"
NAMESPACE
=
acme
# source installations
bundle
exec
rake gitlab:web_hook:add
URL
=
"http://example.com/hook"
NAMESPACE
=
acme
RAILS_ENV
=
production
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:add
URL
=
"http://example.com/hook"
NAMESPACE
=
acme
# source installations
bundle
exec
rake gitlab:web_hook:add
URL
=
"http://example.com/hook"
NAMESPACE
=
acme
RAILS_ENV
=
production
```
## Remove a webhook from **ALL** projects using:
```
sh
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:rm
URL
=
"http://example.com/hook"
# source installations
bundle
exec
rake gitlab:web_hook:rm
URL
=
"http://example.com/hook"
RAILS_ENV
=
production
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:rm
URL
=
"http://example.com/hook"
# source installations
bundle
exec
rake gitlab:web_hook:rm
URL
=
"http://example.com/hook"
RAILS_ENV
=
production
```
## Remove a webhook from projects in a given **NAMESPACE**:
```
sh
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:rm
URL
=
"http://example.com/hook"
NAMESPACE
=
acme
# source installations
bundle
exec
rake gitlab:web_hook:rm
URL
=
"http://example.com/hook"
NAMESPACE
=
acme
RAILS_ENV
=
production
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:rm
URL
=
"http://example.com/hook"
NAMESPACE
=
acme
# source installations
bundle
exec
rake gitlab:web_hook:rm
URL
=
"http://example.com/hook"
NAMESPACE
=
acme
RAILS_ENV
=
production
```
## List **ALL** webhooks:
```
sh
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:list
# source installations
bundle
exec
rake gitlab:web_hook:list
RAILS_ENV
=
production
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:list
# source installations
bundle
exec
rake gitlab:web_hook:list
RAILS_ENV
=
production
```
## List the webhooks from projects in a given **NAMESPACE**:
```
sh
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:list
NAMESPACE
=
acme
# source installations
bundle
exec
rake gitlab:web_hook:list
NAMESPACE
=
acme
RAILS_ENV
=
production
```
\ No newline at end of file
# omnibus-gitlab
sudo
gitlab-rake gitlab:web_hook:list
NAMESPACE
=
acme
# source installations
bundle
exec
rake gitlab:web_hook:list
NAMESPACE
=
acme
RAILS_ENV
=
production
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment