{"id":21847532,"url":"https://github.com/scribd/find-slack-user-action","last_synced_at":"2025-04-14T13:33:15.712Z","repository":{"id":47751219,"uuid":"327995744","full_name":"scribd/find-slack-user-action","owner":"scribd","description":"GitHub Action that retrieves a Slack username for the author of the most recent commit (or provided email).","archived":false,"fork":false,"pushed_at":"2024-08-02T20:08:53.000Z","size":130,"stargazers_count":10,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-11T15:48:55.895Z","etag":null,"topics":["javascript","managed-by-terraform","mobile-build-tooling"],"latest_commit_sha":null,"homepage":"https://github.com/scribd/find-slack-user-action","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scribd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-01-08T19:38:13.000Z","updated_at":"2024-08-19T13:11:26.000Z","dependencies_parsed_at":"2024-08-02T22:47:27.769Z","dependency_job_id":"15c7856a-0828-4072-864e-9e169ebdc63f","html_url":"https://github.com/scribd/find-slack-user-action","commit_stats":{"total_commits":6,"total_committers":4,"mean_commits":1.5,"dds":0.5,"last_synced_commit":"c59f71455798c0525a40067dd6db46500ce6af0c"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Ffind-slack-user-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Ffind-slack-user-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Ffind-slack-user-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Ffind-slack-user-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scribd","download_url":"https://codeload.github.com/scribd/find-slack-user-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248888886,"owners_count":21178120,"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":["javascript","managed-by-terraform","mobile-build-tooling"],"created_at":"2024-11-27T23:18:28.278Z","updated_at":"2025-04-14T13:33:15.681Z","avatar_url":"https://github.com/scribd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Find Slack User Action\n\nGitHub Action that retrieves a Slack username for the author of the most recent commit (or provided email).\n\n## Example usage\n\n```yaml\n- name: Find Slack user\n  id: find-slack-user\n  uses: scribd/find-slack-user-action@v1\n  with:\n    slack-token: ${{ secrets.SLACK_API_TOKEN }}\n\n- name: Print Slack user\n  run: echo \"${{ steps.find-slack-user.outputs.username }}\"\n\n- name: Mention the user in Slack\n  uses: archive/github-actions-slack@v2.2.1\n  with:\n    slack-function: send-message\n    slack-bot-user-oauth-access-token: ${{ secrets.SLACK_API_TOKEN }}\n    slack-channel: ABC123\n    slack-text: |\n      \"Hello, \u003c@${{ steps.find-slack-user.outputs.member-id }}\u003e!\"\n```\n\n## Inputs\n\n### `email`\n\n**Required** The email to convert to slack user. *Defaults to whomever pushed the last commit*\n\n### `slack-token`\n\n**Required** The Slack API token.\n\n### `default-username`\n\nThe username to use if the email address does not match a Slack user.\n\n### `default-member-id`\n\nThe member ID to use if the email address does not match a Slack user.\n\n### `include-at-symbol`\n\nInclude @ as a prefix to the found user. *Defaults to false*\n\n## Outputs\n\n### `username`\n\nThe retrieved Slack username.\n\n### `member-id`\n\nThe retrieved Slack user's member ID. This is what you'll use to [mention your user](https://api.slack.com/reference/surfaces/formatting#mentioning-users):\n\u003e Hey \u003c@U024BE7LH\u003e, thanks for submitting your report.\n\n### `found-user`\n\nBoolean indicating if a matching Slack username was found.\n\n\n## Permissions\n\nYou'll need to provide the following permissions for the slack bot:\n\n- https://api.slack.com/scopes/users:read.email\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscribd%2Ffind-slack-user-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscribd%2Ffind-slack-user-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscribd%2Ffind-slack-user-action/lists"}