User:BryanDavis/GitLab
Appearance
Things and stuff about using and abusing GitLab.
Running .gitlab-ci.yml locally
The holy grail of CI for me is making things work mostly the same for local dev testing as happens on the integration repo side of things.
What user does this token belong to
If you are operating a number of bots you can sometimes lose track of which Developer account a particular personal access token belongs to. There is a handy API that can be used to find out!
$ TOKEN="put your PAT here"
$ curl -sH "PRIVATE-TOKEN: $TOKEN" 'https://gitlab.wikimedia.org/api/v4/user' | jq .username
"gitlabaccountapprovalbot"