Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.37 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.37 KB

YouTrack for Go

GoDoc Build Status

Bare bones YouTrack REST API client library for Go that provides authentication using Permanent Token Authorization.

The youtrack.Api type provides methods for making authenticated HTTP GET and POST requests to the YouTrack REST API.

There are also some convenience functions for creating issues.

Contributions welcome.

Testing

The tests communicate with an actual YouTrack endpoint and therefore need credentials to run. You can set these with the YOUTRACK_URL and YOUTRACK_TOKEN environment variables. The YouTrack project must have at least one project with the ID (aka issue prefix or shortName) of TP.

To debug HTTP requests, run:

go test -v -yt-trace

WARNING: -yt-trace logs the entire HTTP request, including Authorization token, so take care when using it or sharing any logs generated from it.