Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koddsson/coworking-with
👩🏻💻 Easily add coworking signitures to your commits.
https://github.com/koddsson/coworking-with
coauthor git npx
Last synced: 2 months ago
JSON representation
👩🏻💻 Easily add coworking signitures to your commits.
- Host: GitHub
- URL: https://github.com/koddsson/coworking-with
- Owner: koddsson
- Created: 2019-03-12T20:30:08.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-02-24T20:00:43.000Z (10 months ago)
- Last Synced: 2024-10-23T02:12:11.410Z (2 months ago)
- Topics: coauthor, git, npx
- Language: JavaScript
- Homepage:
- Size: 195 KB
- Stars: 67
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @koddsson/coworking-with
Easily add coworking signatures to your commits.
## Usage
```sh
npx @koddsson/coworking-with ...
```The script installs a `commit-msg` hook that will append all commit messages with `Co-authored-by: USERNAME ` for each user you have specified. This commit trailer can be picked up by tools such as [GitHub](https://help.github.com/en/articles/creating-a-commit-with-multiple-authors).
Note that since we go through the git log history to find the signature that the user you want to cowork with needs to have at least one commit into the repo you are working in.
Quit "coworking mode" with the `--stop` flag.
```sh
npx @koddsson/coworking-with --stop
```That's pretty much it.
## Enhancements
I want a indicator in my shell to tell me if I'm coworking mode or not. I do this in my fish shell by checking the `coworking.coauthor` key in the git config.
```fish
function _is_coworking
echo (command git config --get-all coworking.coauthor 2> /dev/null)
end[..]
if [ (_is_coworking) ]
set -l git_coworking "👨🏻💻"
set git_info "$git_info$git_coworking"
end
```This snippet just sets a little emoji on my prompt when I'm in coworking mode but your setup is going to need some different way to indicate coworking mode.