Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRC Team
Errbot Development
gitlab
Commits
d1250e58
There was a problem fetching the pipeline mini graph.
Commit
d1250e58
authored
6 years ago
by
Bruce Cowan
Browse files
Options
Downloads
Patches
Plain Diff
PEP fixes
parent
a89f9760
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
gitlab.py
+3
-3
3 additions, 3 deletions
gitlab.py
with
4 additions
and
4 deletions
.gitlab-ci.yml
+
1
−
1
View file @
d1250e58
...
@@ -9,4 +9,4 @@ check:
...
@@ -9,4 +9,4 @@ check:
stage
:
check
stage
:
check
script
:
script
:
-
pip install flake8
-
pip install flake8
-
flake8 gitlab.py
-
flake8 gitlab.py
--max-line-length
120
This diff is collapsed.
Click to expand it.
gitlab.py
+
3
−
3
View file @
d1250e58
from
errbot
import
BotPlugin
,
botcmd
,
arg_botcmd
,
webhook
from
errbot
import
BotPlugin
,
botcmd
,
arg_botcmd
import
gitlab
import
gitlab
class
Gitlab
(
BotPlugin
):
class
Gitlab
(
BotPlugin
):
"""
"""
Commands for interacting with the gitlab API
Commands for interacting with the gitlab API
...
@@ -30,8 +31,7 @@ class Gitlab(BotPlugin):
...
@@ -30,8 +31,7 @@ class Gitlab(BotPlugin):
You should delete it if your plugin doesn
'
t use any configuration like this
You should delete it if your plugin doesn
'
t use any configuration like this
"""
"""
return
{
'
gitlab_url
'
:
"
https://gitlab.com
"
,
return
{
'
gitlab_url
'
:
"
https://gitlab.com
"
,
'
access_token
'
:
"
someUserTokenHere
"
'
access_token
'
:
"
someUserTokenHere
"
}
}
def
check_configuration
(
self
,
configuration
):
def
check_configuration
(
self
,
configuration
):
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment