Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Emit new event when the specified User receives a Follower See the documentation
Emit new event when the specified User follows a List See the documentation
Emit new event when a (classic) project card is created or moved to a specific column. For Projects V2 use New Issue with Status
trigger. More information here
Emit new event when the specified User is mentioned in a Tweet See the documentation
Retrieve Tweets from the last seven days that match a query. See the documentation
Find issues and pull requests by state and keyword. See docs here
Add a member to a list owned by the user. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
github: {
type: "app",
app: "github",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.github.com/user`,
headers: {
Authorization: `Bearer ${this.github.$auth.oauth_access_token}`,
"X-GitHub-Api-Version": `2022-11-28`,
},
})
},
})
import { axios } from "@pipedream/platform"
import twitter from "@pipedream/twitter"
export default defineComponent({
props: {
twitter
},
async run({steps, $}) {
const config = {
url: `https://api.twitter.com/2/users/me`,
params: {
"user.fields": `created_at,description,entities,id,location,name,pinned_tweet_id,profile_image_url,protected,url,username,verified,withheld`,
expansions: `pinned_tweet_id`,
},
}
const headers = this.twitter._getAuthHeader(config)
return await axios($, {
...config,
headers
})
},
})