example-github-user.yaml 852 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: github-user-lookup
  2. input:
  3. key: value
  4. type: Username
  5. retry:
  6. max_retries: 3
  7. backoff_factor: 1
  8. retry_on_status:
  9. - 429
  10. - 500
  11. - 502
  12. - 503
  13. - 504
  14. output:
  15. type: SocialAccount
  16. request:
  17. url: https://api.github.com/users/{{value}}
  18. params:
  19. per_page: 100
  20. sort: updated
  21. method: GET
  22. timeout: 15
  23. secrets:
  24. - name: GITHUB_TOKEN
  25. required: true
  26. description: GitHub personal access token (required for API rate limits)
  27. version: 1
  28. category: Username
  29. response:
  30. map:
  31. bio: bio
  32. location: location
  33. username: login
  34. created_at: created_at
  35. posts_count: public_repos
  36. profile_url: html_url
  37. display_name: name
  38. followers_count: followers
  39. following_count: following
  40. profile_picture_url: avatar_url
  41. expect: json
  42. description: Fetch GitHub user profile and return as SocialAccount