Skip to content

Commit

Permalink
Merge pull request #34 from JuliaWeb/fc/get-file
Browse files Browse the repository at this point in the history
Use Owner/Repo function signature for get_file_contents on GitLab
  • Loading branch information
fchorney authored Nov 9, 2021
2 parents 3ead477 + 494f720 commit 9f7a48c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GitForge"
uuid = "8f6bce27-0656-5410-875b-07a5572985df"
authors = ["Chris de Graaf <me@cdg.dev>"]
version = "0.2.7"
version = "0.2.8"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
2 changes: 2 additions & 0 deletions src/forges/GitLab/projects.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,6 @@ into(::GitLabAPI, ::typeof(is_collaborator)) = Bool

endpoint(::GitLabAPI, ::typeof(get_file_contents), id::Integer, path::AStr) =
Endpoint(:GET, "/projects/$id/repository/files/$path"; query=Dict(:ref => "master"))
endpoint(::GitLabAPI, ::typeof(get_file_contents), owner::AStr, repo::AStr, path::AStr) =
Endpoint(:GET, "/projects/$(encode(owner, repo))/repository/files/$path"; query=Dict(:ref => "master"))
into(::GitLabAPI, ::typeof(get_file_contents)) = FileContents

2 comments on commit 9f7a48c

@fchorney
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/48466

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.8 -m "<description of version>" 9f7a48c9545048f6c0d3c82370c1f245b623a2dd
git push origin v0.2.8

Please sign in to comment.