{"id":46336641,"url":"https://github.com/jsheffie/gh-to-slack","last_synced_at":"2026-04-13T20:01:30.827Z","repository":{"id":341932650,"uuid":"1172083262","full_name":"jsheffie/gh-to-slack","owner":"jsheffie","description":"macOS Swift scripts to format and paste GitHub CLI (gh) output (PRs, issues, etc.) directly into Slack with rich links and emoji support.","archived":false,"fork":false,"pushed_at":"2026-04-01T16:57:52.000Z","size":71,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T06:48:32.911Z","etag":null,"topics":["clipboard","gh","github-cli","issue","macos","pasteboard","productivity","pull-request","slack","swift"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"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/jsheffie.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-03T23:32:14.000Z","updated_at":"2026-04-01T16:55:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jsheffie/gh-to-slack","commit_stats":null,"previous_names":["jsheffie/gh-to-slack"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/jsheffie/gh-to-slack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsheffie%2Fgh-to-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsheffie%2Fgh-to-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsheffie%2Fgh-to-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsheffie%2Fgh-to-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsheffie","download_url":"https://codeload.github.com/jsheffie/gh-to-slack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsheffie%2Fgh-to-slack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["clipboard","gh","github-cli","issue","macos","pasteboard","productivity","pull-request","slack","swift"],"created_at":"2026-03-04T19:03:09.043Z","updated_at":"2026-04-13T20:01:30.821Z","avatar_url":"https://github.com/jsheffie.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-to-slack\n\nmacOS shell scripts that format GitHub CLI (`gh`) output (PRs, issues, etc.) into rich text and copy it to the clipboard for pasting into Slack with clickable links and custom emoji.\n\n## Scripts\n\n- **`gh-clippy`** — formats GitHub PRs/issues as rich text for Slack\n- **`gh-syms`** — creates branch-named symlinks for git repo directories\n\n## Install\n\n### Homebrew (recommended)\n\n```bash\nbrew install jsheffie/tap/gh-to-slack\n```\n\n### Manual\n\n1. Create `~/bin` if it doesn't exist:\n\n   ```bash\n   mkdir -p ~/bin\n   ```\n\n2. Download the scripts and make executable:\n\n   ```bash\n   curl -fsSL https://raw.githubusercontent.com/jsheffie/gh-to-slack/v1.0.7/scripts/gh-clippy.sh \\\n     -o ~/bin/gh-clippy \u0026\u0026 chmod +x ~/bin/gh-clippy\n\n   curl -fsSL https://raw.githubusercontent.com/jsheffie/gh-to-slack/v1.0.7/scripts/gh-syms.sh \\\n     -o ~/bin/gh-syms \u0026\u0026 chmod +x ~/bin/gh-syms\n   ```\n\n3. Add `~/bin` to your PATH (if not already there):\n\n   **zsh** (`~/.zshrc`):\n   ```bash\n   echo 'export PATH=\"$HOME/bin:$PATH\"' \u003e\u003e ~/.zshrc \u0026\u0026 source ~/.zshrc\n   ```\n\n   **bash** (`~/.bashrc`):\n   ```bash\n   echo 'export PATH=\"$HOME/bin:$PATH\"' \u003e\u003e ~/.bashrc \u0026\u0026 source ~/.bashrc\n   ```\n\n## Dependencies\n\n- macOS (uses `NSPasteboard` via Swift for clipboard access) — `gh-clippy` only\n- [`gh`](https://cli.github.com/) CLI (authenticated) — `gh-clippy` only\n- [`jq`](https://jqlang.github.io/jq/) — `gh-clippy` only\n- Swift runtime (ships with Xcode / Command Line Tools) — `gh-clippy` only\n- `git` — `gh-syms` only\n\n## Usage\n\n### gh-clippy\n\nList your recent PRs or issues formatted for Slack. Copies rich text to clipboard — Cmd+V into Slack gives clickable links.\n\n**Individual Developer Focused:**\nDefaults to `@me` for status reporting.\n```bash\ngh-clippy pr                    # Open, ready-for-review PRs\ngh-clippy pr --all              # All PRs\ngh-clippy pr 12595 12593        # Specific PRs\ngh-clippy pr --limit 20         # Up to 20 PRs\ngh-clippy issue                 # Open issues assigned to me\ngh-clippy issue --all           # All issues\ngh-clippy issue 42 57           # Specific issues\ngh-clippy issue --limit 5       # Show 5 issues\n```\n\n**Team/Management Focused:**\n\n```bash\ngh-clippy activity                    # Recent issues \u0026 PRs (defaults to 10 each)\ngh-clippy activity --user-display     # With linked usernames\ngh-clippy activity --limit 5          # 5 items per section\ngh-clippy pr --user octocat           # Open PRs by octocat\ngh-clippy issue --user bob --user ben # Issues for multiple users\ngh-clippy users                       # List collaborators with links\n```\n\n### gh-syms\n\nCreate branch-named symlinks for git directories in the current working directory. Running without a subcommand removes stale symlinks, creates fresh ones, then lists the result.\n\nBy default only directories named exactly `\u003cprefix\u003e` or `\u003cprefix\u003e\u003cN\u003e` (e.g. `django`, `django2`, `django3`) are processed — not `django-old` or `django_bak`.\n\n```bash\ngh-syms django                        # Remove stale, create fresh, list\ngh-syms django --verbose              # Same, with removal/creation details\ngh-syms django list                   # List existing symlinks only\ngh-syms django clean                  # Remove all symlinks for django* dirs\ngh-syms django --no-strict-nums-only  # Also process django-old, django_bak, etc.\n```\n\n### Terminal Output\n\nTerminal output uses ANSI-colored status icons for quick visual scanning. The `#number` for each PR or issue is a clickable hyperlink in supported terminals (iTerm2, Terminal.app, Warp, etc.).\n\n### PR Status Emoji (Slack)\n\nEach line is formatted as: `date emoji title #number`. PRs use these status emoji:\n\n| Emoji | State |\n|---|---|\n| `:git--merged:` | Merged |\n| `:git--closed:` | Closed |\n| `:git--draft:` | Draft |\n| `:git--approved:` | Approved |\n| `:git--changes-required:` | Changes requested |\n| `:git--ready-for-review:` | Ready for review |\n\n### Issue Status Emoji (Slack)\n\nIssues use these status emoji:\n\n| Emoji | State |\n|---|---|\n| `:git--issue:` | Open |\n| `:git--closed:` | Closed |\n\n## How It Works\n\n1. Fetches PR/issue data as JSON via `gh`\n2. Transforms it with `jq` into HTML (with `\u003ca\u003e` links) and plain text\n3. Copies both formats to the macOS clipboard using an inline Swift snippet — Slack preserves hyperlinks from the HTML pasteboard type\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsheffie%2Fgh-to-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsheffie%2Fgh-to-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsheffie%2Fgh-to-slack/lists"}