New to Kestra?
Use blueprints to kickstart your first workflows.
Scheduled Kestra workflow that fetches GitHub issues, checks the HTTP status with an If task, and records an audit row in DuckDB.
hourly-sync-schedule trigger fires at the top of every hour (0 * * * *).fetch-github-issues calls the GitHub REST API and retrieves the 10 most recent open issues of kestra-io/kestra.evaluate-sync-status (an If task) continues only when the API answers with HTTP 200.index-database-batch runs a DuckDB query that stores the sync timestamp, the HTTP status code, and the pipeline status in the github_sync_audit table.log-sync-success confirms the sync. If the status is not 200, log-sync-warning is logged instead and the database step is skipped.https://api.github.com.No secrets are required: the flow reads public issues from the unauthenticated GitHub API, which allows 60 requests per hour per IP address. For private repositories or higher rate limits, create a secret and send it in an Authorization header:
GITHUB_TOKEN: a GitHub personal access token with read access to the repository.uri of fetch-github-issues to the repository you want to track.hourly-sync-schedule trigger will take over from the next full hour.jdbc:duckdb: URL is an in-memory database that lives for a single execution. Point url to a DuckDB file or a MotherDuck database to retain data across runs.read_json_auto() for full issue analytics.else branch or in an errors block.