with BugHerd and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The BugHerd API provides a streamlined interface for managing and tracking bugs and issues directly within your web projects. By leveraging this API on Pipedream, you can automate the bug tracking process, sync data with project management tools, and create custom notifications based on event triggers. Automations can range from simple task creation to complex workflows involving multiple systems, cutting down the manual effort required to keep your development projects bug-free.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bugherd: {
type: "app",
app: "bugherd",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.bugherd.com/api_v2/organization.json`,
auth: {
username: `${this.bugherd.$auth.api_key}`,
password: `x`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})