{"id":19054507,"url":"https://github.com/datadog/slapr","last_synced_at":"2025-04-24T03:21:24.398Z","repository":{"id":45945019,"uuid":"238665613","full_name":"DataDog/slapr","owner":"DataDog","description":"Add Pull Request status emojis to Slack posts.","archived":false,"fork":false,"pushed_at":"2024-12-04T16:09:35.000Z","size":635,"stargazers_count":22,"open_issues_count":12,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-18T12:17:18.763Z","etag":null,"topics":["emoji","github-actions","pull-requests","slack"],"latest_commit_sha":null,"homepage":"https://github.com/DataDog/slapr","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DataDog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-06T10:45:15.000Z","updated_at":"2024-10-28T11:56:19.000Z","dependencies_parsed_at":"2023-11-30T09:27:46.336Z","dependency_job_id":"7377abe1-1fa3-4f67-b02f-6514fa3b79f6","html_url":"https://github.com/DataDog/slapr","commit_stats":{"total_commits":60,"total_committers":4,"mean_commits":15.0,"dds":0.5166666666666666,"last_synced_commit":"5b3df3ba1c7ec06b6c60876d470df1d26155f3c2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDog%2Fslapr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDog%2Fslapr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDog%2Fslapr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataDog%2Fslapr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataDog","download_url":"https://codeload.github.com/DataDog/slapr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250552783,"owners_count":21449272,"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":["emoji","github-actions","pull-requests","slack"],"created_at":"2024-11-08T23:38:36.083Z","updated_at":"2025-04-24T03:21:24.372Z","avatar_url":"https://github.com/DataDog.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slapr\n\nAdd Pull Requests status emojis to Slack posts.\n\n\u003cimg src=\"docs/images/example_screenshot.png\"  alt=\"Example Screenshot\" /\u003e\n\nOn `pull_request_review` or `pull_request` events Slapr will update your slack posts with suitable emojis.\n\n## Slack posts\n\nSlack posts should contain the PR URL.\n\nExamples:\n\n- Blabla Need Review for :eyes: https://github.com/DataDog/integrations-core/pull/5746/s\n- Blabla Need Review for rev https://github.com/DataDog/integrations-core/pull/5746/s\n\n## Requirements\n\nSlack API Token with following permissions\n\n- `channels:history`\n- `reactions:read`\n- `reactions:write`\n\n## Emoji status\n\n| emoji                        | description                                                  |\n|------------------------------|--------------------------------------------------------------|\n| `SLAPR_EMOJI_REVIEW_STARTED` | The PR has at least 1 in-progress review.                    |\n| `SLAPR_EMOJI_APPROVED`       | The PR has all required approvals and is ready to be merged. |\n| `SLAPR_EMOJI_NEEDS_CHANGES`  | Changes are requested for the PR.                            |\n| `SLAPR_EMOJI_COMMENTED`      | A review has been submitted with comment only.               |\n| `SLAPR_EMOJI_MERGED`         | The PR is merged.                                            |\n| `SLAPR_EMOJI_CLOSED`         | The PR is closed.                                            |\n\n## Example Usage\n\n```yaml\nname: Slack emoji PR updates\non:\n  pull_request_review:\n    types: [submitted]\n  pull_request:\n    types: [closed]\n\njobs:\n  run_slapr:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: DataDog/slapr@master\n      env:\n        GITHUB_TOKEN: \"${{ secrets.GITHUB_TOKEN }}\"\n        GITHUB_REPO: DataDog/slapr\n        SLACK_CHANNEL_ID: CNY5XCHAA\n        SLACK_API_TOKEN: \"${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}\"\n        SLAPR_BOT_USER_ID: UTMS06TPX\n        SLAPR_NUMBER_OF_APPROVALS_REQUIRED: 2 # integer minimum=1 default=1. The number of approvals that are required for the approval emoji to be added in Slack\n```\n\n## Troubleshoot\n\nIf you get the following error during Slapr run:\n```\nslack.errors.SlackApiError: The request to the Slack API failed.\nThe server responded with: {'ok': False, 'error': 'account_inactive'}\n```\n\nYour `SLACK_BOT_USER_OAUTH_ACCESS_TOKEN` OAuth Token might not be valid anymore. If that's the case you should replace it with the one in `https://api.slack.com/apps/{your_app_id}/oauth`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadog%2Fslapr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatadog%2Fslapr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatadog%2Fslapr/lists"}