Community managed lightweight code hosting solution written in Go
With the Gitea API, you can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gitea: {
type: "app",
app: "gitea",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.gitea.$auth.gitea_url}/api/v1/user`,
headers: {
Authorization: `Bearer ${this.gitea.$auth.apiKey}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})