with AppVeyor 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 AppVeyor API grants programmatic access to AppVeyor's continuous integration and deployment services, empowering developers to trigger builds, fetch build history, deploy applications, and manage projects and account settings. With Pipedream's serverless platform, you can craft custom workflows that react to AppVeyor events or manipulate AppVeyor's pipeline dynamically, streamlining your CI/CD process by interfacing with other tools in the software development lifecycle.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
appveyor: {
type: "app",
app: "appveyor",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://ci.appveyor.com/api/roles`,
headers: {
Authorization: `Bearer ${this.appveyor.$auth.bearer_token}`,
"Content-type": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})