Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Plugins
gitlab
Commits
ceb8059a
Commit
ceb8059a
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Move fixes towards API v4
parent
a8d4485e
No related branches found
Branches containing commit
Tags
v0.1.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab_issue.py
+5
-5
5 additions, 5 deletions
gitlab_issue.py
with
5 additions
and
5 deletions
gitlab_issue.py
+
5
−
5
View file @
ceb8059a
...
...
@@ -187,8 +187,8 @@ def main():
return
# Validate if project exists and get its ID
p
roject
=
GitLabProject
(
module
,
git
)
# type:
g
it
l
ab
.
Project
project_exists
=
p
roject
.
exists
(
group_name
,
project_name
)
metaP
roject
=
GitLabProject
(
module
,
git
)
# type:
G
it
L
abProject
project_exists
=
metaP
roject
.
exists
(
group_name
,
project_name
)
if
not
project_exists
:
module
.
fail_json
(
msg
=
"
Gitlab project does not exist
"
)
...
...
@@ -201,7 +201,7 @@ def main():
# Validate if milestone exists and get its ID
milestone
=
GitLabMilestone
(
module
,
git
)
milestone_exists
=
milestone
.
exists
(
p
roject
.
pid
,
milestone_name
)
milestone_exists
=
milestone
.
exists
(
metaP
roject
.
pid
,
milestone_name
)
milestone_id
=
None
if
milestone_exists
:
milestone_id
=
milestone
.
mid
...
...
@@ -211,7 +211,7 @@ def main():
labels
=
[]
if
update
:
issues
=
p
roject
.
findIssues
(
title
)
issues
=
metaP
roject
.
findIssues
(
title
)
updated
=
0
if
issues
:
issue
=
None
# type: gitlab.ProjectIssue
...
...
@@ -256,7 +256,7 @@ def main():
time
.
sleep
(
delay
)
delay
*=
2
try
:
issue
=
project
.
issues
.
create
(
arguments
)
# type: gitlab.Issue
issue
=
metaProject
.
project
.
issues
.
create
(
arguments
)
# type: gitlab.Issue
except
Exception
,
e
:
pass
if
issue
:
...
...
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