https://github.com/jb55/notmuch-github
GitHub hacks and helpers for notmuch-mode
https://github.com/jb55/notmuch-github
github notmuch
Last synced: 3 months ago
JSON representation
GitHub hacks and helpers for notmuch-mode
- Host: GitHub
- URL: https://github.com/jb55/notmuch-github
- Owner: jb55
- Created: 2017-10-13T07:55:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T22:27:33.000Z (over 6 years ago)
- Last Synced: 2025-02-08T20:45:37.970Z (12 months ago)
- Topics: github, notmuch
- Language: Emacs Lisp
- Homepage:
- Size: 9.77 KB
- Stars: 6
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# notmuch-github
A bunch of helpers for working with notmuch and GitHub
## Tagging
Here are some ways to tag github pull request emails
```bash
notmuch tag +github from:github.com and tag:inbox
notmuch tag +pr '"You can view, comment on, or merge this pull request online at"' and tag:github and not tag:pr and tag:inbox and not tag:issue
# tag all messages in the thread that have a pr tag
notmuch tag +pr $(notmuch search --output=threads tag:pr and tag:inbox)
# this seems to be a semi reliable way to find github merge emails
notmuch tag +merged Merged and event from:notifications@github.com and not tag:merged and tag:inbox and tag:pr
# tag the entire pr thread as merged
notmuch tag +merged $(notmuch search --output=threads tag:merged and tag:inbox)
```
## notmuch-visit-pr-in-magit
View PR commits in magit from a GitHub pull request email. Requires a somewhat
special setup that could be more customizable
### Crud
* "origin" is hard-coded
* Assumes that you've added
fetch = +refs/pull/*/head:refs/pull/origin/*
fetch = +refs/pull/*/merge:refs/merge/origin/*
to origin's in ".git/config". We could drop that assumption
passing a more explicit refspec to the fetch call.
## notmuch-review-pr
approve/reject/comment on a PR when viewing a GitHub PR email
### Crud
* Relys on [this](./git-pr-event) cruddy script that needs to be replaced with elisp