Skip to content

Snippet plugin only works for personal snippets. #75

@danmetzler

Description

@danmetzler

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my request.

Is Your Feature Request Related To A Problem? Please describe.

I was attempting to change the snippet of markdown to be a Gitlab project snippet, and it would not publish to a project snippet using an apitoken from that project. It failed with a 404 snippet not found error.
It works fine if using a global snippet.

Describe The Solution. Why is it needed?

Would like to move the snippet to the project it is associated with.

Additional Context

This appears to be related to the api call or where the token is defined.
There is another api available for project snippets, but the snippet api seems to work for both project and global snippets when reading.
The other thing I'm doing is using an apitoken defined in the project. It's possible that only works with the project api.

I will do some additional investigation.

Related Issues

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions