Skip to content

Conversation

@bcattaneo
Copy link
Contributor

Solves #8

Hi all,

Besides adding a new service (using the current provided structure) I had to modify the following:

  • Add a second header (SECOND_HEADER_[service]) for wget. API requests to gitlab snippets need to include a content-type header. I made it general so it can be used in the future with another service.
  • Add a new visibility setting (VISIBILITY_[service]) because gitlab accepts three different values for visibility: public, private and internal; so I couldn't use gist's PUBLIC_[service].
  • Modify help message a bit, so the user knows about gitlab's visibility, auth header (which is different than github's) and also server URL.

Please let me know what you think about the changes and phrasing.

@Cogitri
Copy link
Collaborator

Cogitri commented Jul 7, 2020

Nice, seems to work for me: https://gitlab.com/snippets/1993633

@bcattaneo bcattaneo requested a review from Cogitri July 13, 2020 19:32
@bcattaneo bcattaneo requested a review from Cogitri July 15, 2020 14:13
@Cogitri Cogitri merged commit 845e9c5 into zlin:master Jul 31, 2020
@Cogitri
Copy link
Collaborator

Cogitri commented Jul 31, 2020

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants