{"id":24983423,"url":"https://github.com/mozilla-mobile/cloud-functions-slack","last_synced_at":"2025-07-08T22:05:50.238Z","repository":{"id":86782727,"uuid":"557963548","full_name":"mozilla-mobile/cloud-functions-slack","owner":"mozilla-mobile","description":"A Cloud Function to post Firebase Test Lab results to Slack","archived":false,"fork":false,"pushed_at":"2023-12-11T09:13:28.000Z","size":18,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T10:11:33.516Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mozilla-mobile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"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":"2022-10-26T16:25:13.000Z","updated_at":"2022-10-26T16:30:28.000Z","dependencies_parsed_at":"2025-03-29T10:11:30.074Z","dependency_job_id":null,"html_url":"https://github.com/mozilla-mobile/cloud-functions-slack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mozilla-mobile/cloud-functions-slack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla-mobile%2Fcloud-functions-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla-mobile%2Fcloud-functions-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla-mobile%2Fcloud-functions-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla-mobile%2Fcloud-functions-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozilla-mobile","download_url":"https://codeload.github.com/mozilla-mobile/cloud-functions-slack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla-mobile%2Fcloud-functions-slack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264357298,"owners_count":23595576,"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":"2025-02-04T09:14:17.482Z","updated_at":"2025-07-08T22:05:50.233Z","avatar_url":"https://github.com/mozilla-mobile.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloud-functions-slack\n\nA Cloud Function to post Firebase Test Lab results to Slack\n\nLargely borrowed from: https://github.com/firebase/functions-samples/tree/main/testlab-to-slack\n\n1. Clone or download this repo and open the `cloud-functions-slack`\n   directory.\n2. You must have the Firebase CLI installed. If you don't have it install it\n   with `npm install -g firebase-tools` and then configure it with\n   `firebase login`.\n3. Configure the CLI locally by using `firebase use --add` and select your\n   project in the list.\n4. Install Cloud Functions dependencies locally by running:\n   `cd functions; npm install; cd -`\n5. Set the following environment variables so that the function can authenticate with Slack and post to the correct room:\n   ```firebase functions:config:set slack.webhook_url=\"YOUR_SLACK_WEBHOOK_URL\"```\n\n## Deploy and test\n\n1.  Deploy your function using `firebase deploy --only functions`\n2.  Navigate to the\n    [Test Lab](https://console.firebase.google.com/u/0/project/_/testlab/histories)\n    section of the Firebase Console and start a test.\n1.  Once the test finishes running,\n    [view the functions logs](https://console.firebase.google.com/u/0/project/_/functions/logs?severity=DEBUG)\n    for your project, and check that the test run status was logged.\n\n## Example output\n`TEST matrix-2pwpy02hkp9wc (created at 2022-09-26T00:25:58.392882Z): FINISHED. SUCCESS`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozilla-mobile%2Fcloud-functions-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozilla-mobile%2Fcloud-functions-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozilla-mobile%2Fcloud-functions-slack/lists"}