-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
forge-insert-{issues,pullreqs}: Add SPEC and HEADING arguments
This allows wrapping these functions, while overriding certain aspects, to define additional section inserters that apply additional filtering. In `forge--insert-topics' use the heading as the "value", which is necessary to tell different sections apart. See #676. Usage example: (defun forge-insert-assigned-issues () "Insert a list of issues that are assigned to you. Mostly honor the buffer's filtering spec, overriding only the `assignee' slot." (when-let (((forge-db t)) (repo (forge-get-repository :tracked?)) (user (ghub--username repo)) (spec (clone forge--buffer-topics-spec))) (oset spec assignee user) (forge-insert-issues spec "Assigned issues"))) (magit-add-section-hook 'magit-status-sections-hook #'forge-insert-assigned-issues #'forge-insert-issues t)
- Loading branch information
Showing
3 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters