Run fast, secure, and scalable CI pipelines on your own infrastructure
Returns basic details about the user account that sent the request
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
With the Buildkite API, you can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
buildkite: {
type: "app",
app: "buildkite",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.buildkite.com/v2/user`,
headers: {
Authorization: `Bearer ${this.buildkite.$auth.api_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})