Commit 04ab2719 authored by Thierry Martinez's avatar Thierry Martinez
Browse files

Updating README

parent b0416f8a
Pipeline #110 passed with stage
in 37 seconds
......@@ -42,14 +42,16 @@ Access to the API
## Command line instructions
Profile settings->Access Tokens
Name:
Your New Personal Access Token
Copy to Clipboard button on the right
```
gem install gitlab
export GITLAB_API_ENDPOINT='https://gitlab.inria.fr/api/v3'
export GITLAB_API_PRIVATE_TOKEN='gA85wJTVMaCuA2b7xjxw'
export GITLAB_API_PRIVATE_TOKEN='<token>'
```
---
## Gitlab API
......@@ -59,7 +61,9 @@ python-gitlab
https://gitlab.inria.fr/siteadmin/gitlab_import_ildap_group_members
```
gitlab create_ssh_key "My key" "`cat ~/.ssh/id_rsa.pub`"
```
---
## New project
Dashboard Projects New Project
......@@ -74,14 +78,18 @@ Project description
appears as sub head line on the project page and on the list of projects
Visibility Level
Private
- Private (0)
Project access must be granted explicitly to each user.
Internal
The project can be cloned by any logged in user.
Public
The project can be cloned without any authentication.
- Internal (10)
The project can be listed and cloned by any logged in user.
- Public (20)
The project can be listed and cloned without any authentication.
```
gitlab create_project <project name> \
"{ description: <description>, visibility_level: <level> }"
```
gitlab create_project test-cli4 "{ description: 'Test de création', visibility_level: 10 }"
---
## Import from GitHub
......@@ -96,33 +104,44 @@ Issues attributed to the importer when the user is unknown
Profile settings->Emails
```
gitlab add_email <email>
```
---
## Emails on push
Services->Emails on push
https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/services.md
gitlab project_search codingdojo
gitlab change_service 193 emails-on-push "{ recipients: 'thierry.martinez@inria.fr' }"
```
gitlab project_search <project name>
gitlab change_service project-id emails-on-push \
"{ recipients: 'email' }"
```
---
## Issue tracker
Issues->New Issue
gitlab create_issue <project-id> "Issue title" "{ description: '...', assignee_id: '...' }"
```
gitlab create_issue <project-id> "Issue title" \
"{ description: '...', assignee_id: '...' }"
gitlab issues <project-id>
gitlab edit_issue <project-id> <issue-id> "{ title: '...', assignee_id: '...' }"
gitlab edit_issue <project-id> <issue-id> \
"{ title: '...', assignee_id: '...' }"
gitlab close_issue <project-id> <issue-id>
```
https://gitlab.inria.fr/help/user/project/issues/automatic_issue_closing.md
clos{e,es,ed,ing}, fix{e,es,ed,ing}, resolv{e,es,ed,ing} #n
Reopen issue (gitlab reopen_issue <project-id> <issue-id>)
Reopen issue (`gitlab reopen_issue <project-id> <issue-id>`)
---
## Wiki
......@@ -158,8 +177,9 @@ If a user is both in a group's project and the project itself, the highest permi
Only to another namespace (or rename and transfer)
Remove fork relationship
```
gitlab create_fork <project id>
```
---
## Merge Request
......@@ -170,12 +190,12 @@ Branch
---
## Keyboard shortcut
?
Key `?` for help
- g p project home page
- g i issues
- g m merge requests
- i new issue
- `g p` project home page
- `g i` issues
- `g m` merge requests
- `i` new issue
---
## Protected branches
......@@ -205,23 +225,28 @@ Community slave images on ci.inria.fr:
- sedparis-osx-10.9-runner
- sedparis-windows7-64-sshd-runner
```
sudo gitlab-ci-multi-runner register
c:\Multi-Runner\gitlab-ci-multi-runner register
```
Coordinator URL: https://gitlab.inria.fr/ci
Registration token: Runners
--
---
## .gitlab-ci.yml
File .gitlab-ci.yml in the root of the project
File `.gitlab-ci.yml` in the root of the project
```
before_script:
- command
task1:
script:
- command
--
```
---
## Only allow succesful merge
Edit project
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment