forked from Gitlink/gitlink-cli
1.1 KiB
1.1 KiB
Reaction Shortcut
Summary
Adds a reaction shortcut group for repository social interactions. The group exposes watcher and stargazer lists plus follow/unfollow and like/unlike actions.
Commands
| Command | Purpose |
|---|---|
gitlink-cli reaction +watchers |
List repository watchers |
gitlink-cli reaction +stargazers |
List repository stargazers |
gitlink-cli reaction +follow |
Follow a repository |
gitlink-cli reaction +unfollow |
Unfollow a repository |
gitlink-cli reaction +like |
Like a repository |
gitlink-cli reaction +unlike |
Unlike a repository |
Behavior
+watchersand+stargazerssupport optional--start-atand--end-atUnix timestamp filters.- Write actions accept optional
--project-id; if omitted, the shortcut resolves the project ID from--owner/--repoautomatically. - Timestamp and project ID inputs are validated before API calls are sent.
Tests
The unit tests verify list query parameters, project ID auto-resolution, explicit project ID handling, follow/unfollow endpoints, like/unlike endpoints, and validation failures.