File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 379
379
# end project file upload with data
380
380
381
381
# project file upload markdown
382
- uploaded_file = project .upload_file ("filename.txt" , filedata = "data" )
382
+ uploaded_file = project .upload ("filename.txt" , filedata = "data" )
383
383
issue = project .issues .get (issue_id )
384
384
issue .notes .create ({
385
385
"body" : "See the attached file: {}" .format (uploaded_file ["markdown" ])
386
386
})
387
387
# project file upload markdown
388
388
389
389
# project file upload markdown custom
390
- uploaded_file = project .upload_file ("filename.txt" , filedata = "data" )
390
+ uploaded_file = project .upload ("filename.txt" , filedata = "data" )
391
391
issue = project .issues .get (issue_id )
392
392
issue .notes .create ({
393
393
"body" : "See the [attached file]({})" .format (uploaded_file ["url" ])
Original file line number Diff line number Diff line change @@ -781,7 +781,7 @@ Delete a list:
781
781
:end-before: # end board lists delete
782
782
783
783
784
- File Uploads
784
+ File uploads
785
785
============
786
786
787
787
Reference
@@ -790,12 +790,10 @@ Reference
790
790
* v4 API:
791
791
792
792
+ :attr: `gitlab.v4.objects.Project.upload `
793
- + :class: `gitlab.v4.objects.ProjectUpload `
794
793
795
794
* v3 API:
796
795
797
796
+ :attr: `gitlab.v3.objects.Project.upload `
798
- + :class: `gitlab.v3.objects.ProjectUpload `
799
797
800
798
* Gitlab API: https://docs.gitlab.com/ce/api/projects.html#upload-a-file
801
799
You can’t perform that action at this time.
0 commit comments