UNPKG

@xniva/pivotal-github-cli

Version:

A cli tool for Pivotal Tracker users where branch and pull request can be created from story name with reference to it

22 lines (17 loc) 364 B
import axios from "axios"; const ptToken = process.env.PIVOTAL_TRACKER_TOKEN; const fetchPivotalData = async (url) => { const headers = { "X-TrackerToken": ptToken, }; const options = { headers, }; try { const data = await axios.get(url, options); return data; } catch (e) { throw e.message; } }; export { fetchPivotalData };