mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
444 B
23 lines
444 B
6 years ago
|
## to-git-or-not-to-git-?
|
||
6 years ago
|
|
||
6 years ago
|
### Instructions
|
||
6 years ago
|
|
||
5 years ago
|
Write in a file `to-git-or-not-to-git.sh` the command that isolates your Gitea `id`.
|
||
|
|
||
5 years ago
|
Only the numbers will appear.
|
||
6 years ago
|
|
||
5 years ago
|
Here is the base command that needs to be adapted with your username and more :
|
||
5 years ago
|
|
||
5 years ago
|
```
|
||
5 years ago
|
curl -s https://[[DOMAIN]]/api/graphql-engine/v1/graphql --data '{"query":"{user(where:{githubLogin:{_eq:\"choumi\"}}){id}}"}'
|
||
5 years ago
|
```
|
||
|
|
||
6 years ago
|
### Usage
|
||
6 years ago
|
|
||
|
```console
|
||
|
$ ./to-git-or-not-to-git.sh
|
||
|
231748
|
||
|
$
|
||
|
`
|
||
|
```
|