Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add milestone command #23

Merged
merged 13 commits into from
Jun 3, 2024
Merged

feat: add milestone command #23

merged 13 commits into from
Jun 3, 2024

Conversation

benelan
Copy link
Owner

@benelan benelan commented Jun 3, 2024

  • Add milestone command to find/select milestones using gh api
  • Add keybindings to the milestone command:
    • enter: Print the milestone title; useful for scripting
    • alt-t: Edit the title of the selected milestone
    • alt-d Edit the description of the selected milestone
    • alt-X: Close the selected milestone
    • alt-O: Reopen the selected milestone
    • alt-i: Execute gh fzf issue filtered for the selected milestone
    • alt-s: Show both open and closed milestones (default is open)
    • alt-c: Sort list by completeness (default is by due date)
    • alt-D: Display list in descending order (default is ascending)
  • Add keybindings to the issue command:
    • alt-M: Execute gh fzf milestone and filter the list of issues by the selected item
  • Add GH_FZF_OPEN_CMD environment variable to set the command used to open the milestone in the browser. The default value should suffice in most cases.

ref: https://docs.github.com/en/rest/issues/milestones
resolves #21

@benelan benelan linked an issue Jun 3, 2024 that may be closed by this pull request
benelan added 12 commits June 2, 2024 18:23
…command

* origin/main:
  feat(label): reload list after edit keybinds
…command

* origin/main:
  style: add/cleanup vim fold comments
Check if `GH_FZF_OPEN_CMD` is set, and if so, use the environment
variable's value to open a milestone's URL in the browser. Defaults to
the `BROWSER` environment variable if set, otherwise it uses the
operating system's open command. Any future commands that fetch the list
with `gh api` will use this environment variable too.
@benelan benelan merged commit 86cb9da into main Jun 3, 2024
@benelan benelan deleted the benelan/21-milestone-command branch June 3, 2024 08:28
benelan added a commit that referenced this pull request Jun 4, 2024
🤖 I have created a release *beep* *boop*
---


## [0.12.0](v0.11.0...v0.12.0)
(2024-06-03)


### Features

* **milestone, issue:** Add `milestone` command and an `alt-M`
keybinding for the `issue` command, which filters by the selected
milestone ([#23](#23))
([86cb9da](86cb9da)),
closes [#21](#21)
* **issue, pr:** Support fzf multi-selection when adding or removing
labels via `alt-l` or `alt-L` keybindings, respectively
([cac5f20](cac5f20))
* **label:** Include the selected label's name in the prompt for editing
the name via `alt-n`, description via `alt-d`, and color via `alt-c`
([d45ea06](d45ea06))
* **label:** Reload list after the edit keybindings (`alt-n`, `alt-d`,
`alt-c`) to ensure info is up to date
([b76453a](b76453a))
* **run:** Prompt to rerun (if failed) after viewing logs via the
`dunstify` notification action
([ff14747](ff14747))


### Bug Fixes

* **issue, pr:** Exit with code 0 after checking out a branch via the
`alt-o` keybindings
([2dbea75](2dbea75))
* **label:** Fix regression where `enter` keybinding printed the whole
row of the selected item(s), rather than only the name
([44bd0af](44bd0af))
* **run:** Fix the message/format of notifications when the watcher's
process is killed before completion
([b419d35](b419d35))


---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben Elan <no-reply@benelan.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: add a milestone command
1 participant