{"id":15018129,"url":"https://github.com/probot/adapter-azure-functions","last_synced_at":"2025-10-19T15:32:41.323Z","repository":{"id":36967728,"uuid":"337519506","full_name":"probot/adapter-azure-functions","owner":"probot","description":"Adapter to run a probot application function in Azure Functions","archived":false,"fork":false,"pushed_at":"2025-01-28T09:08:41.000Z","size":1189,"stargazers_count":6,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-28T10:23:28.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/probot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-09T19:54:08.000Z","updated_at":"2025-01-28T09:08:44.000Z","dependencies_parsed_at":"2024-01-09T07:28:04.146Z","dependency_job_id":"8fc008d9-0652-46e3-ad77-05ff245649a8","html_url":"https://github.com/probot/adapter-azure-functions","commit_stats":{"total_commits":215,"total_committers":6,"mean_commits":"35.833333333333336","dds":"0.49302325581395345","last_synced_commit":"31b58096d994584d96cfff7ae664d35e4706fdb4"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fadapter-azure-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fadapter-azure-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fadapter-azure-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fadapter-azure-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probot","download_url":"https://codeload.github.com/probot/adapter-azure-functions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237163103,"owners_count":19265211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T19:51:29.153Z","updated_at":"2025-10-19T15:32:35.976Z","avatar_url":"https://github.com/probot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@probot/adapter-azure-functions`\n\n\u003e Adapter to run a [Probot](https://probot.github.io/) application function in [Azure Functions](https://azure.microsoft.com/services/functions/)\n\n[![Build Status](https://github.com/probot/adapter-azure-functions/workflows/Test/badge.svg)](https://github.com/probot/adapter-azure-functions/actions)\n\n## Usage\n\nCreate your Probot Application as always\n\n```js\n// app.js\nmodule.exports = (app) =\u003e {\n  app.on(\"issues.opened\", async (context) =\u003e {\n    const params = context.issue({ body: \"Hello World!\" });\n    await context.octokit.issues.createComment(params);\n  });\n};\n```\n\n### Azure Functions v4\n\nIn your Azure function file:\n\n```js\n// src/functions/probot.js\nconst { app } = require(\"@azure/functions\");\nconst {\n  createAzureFunctionV4,\n  createProbot,\n} = require(\"@probot/adapter-azure-functions\");\nconst probotapp = require(\"../app\");\n\napp.http(\"probot\", {\n  methods: [\"POST\"],\n  authLevel: \"anonymous\",\n  handler: createAzureFunctionV4(probotapp, {\n    probot: createProbot(),\n  }),\n});\n```\n\n### Azure Functions v3\n\nCreate a folder with `function.json` and `index.js`, e.g.\n\n```js\n// ProbotFunction/function.json\n{\n  \"bindings\": [\n    {\n      \"authLevel\": \"Anonymous\",\n      \"type\": \"httpTrigger\",\n      \"direction\": \"in\",\n      \"name\": \"req\",\n      \"methods\": [\"post\"]\n    },\n    {\n      \"type\": \"http\",\n      \"direction\": \"out\",\n      \"name\": \"res\"\n    }\n  ]\n}\n```\n\nand\n\n```js\n// ProbotFunction/index.js\nconst {\n  createAzureFunction,\n  createProbot,\n} = require(\"@probot/adapter-azure-functions\");\nconst app = require(\"../app\");\nmodule.exports = createAzureFunction(app, {\n  probot: createProbot(),\n});\n```\n\nFor an example Probot App continuously deployed to Azure Functions, see https://github.com/probot/example-azure-function/#how-it-works\n\n## How it works\n\n`@probot/adapter-azure-functions` exports everything that [`probot`](https://github.com/probot/probot/#readme) does plus `createAzureFunction`.\n\n`createAzureFunction` slightly differs from Probot's built-in `createNodeMiddleware`, as an Azure function does receives slightly different parameters.\n\n## License\n\n[ISC](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobot%2Fadapter-azure-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobot%2Fadapter-azure-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobot%2Fadapter-azure-functions/lists"}