Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

11 changes: 4 additions & 7 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
blank_issues_enabled: true
blank_issues_enabled: false
contact_links:
- name: Ask a question on how to use GitHub CLI
about: For general-purpose questions and answers, see the Discussions section.
url: https://github.com/cli/cli/discussions
- name: Ask a question about the GitHub API
about: Please check out the GitHub community forum for discussions about the GitHub API.
url: https://github.community/c/github-ecosystem/37
- name: "GitHub CLI issues"
url: https://github.com/cli/cli/issues/new/choose
about: "Go to the upstream repository for anything unrelated to the snap packaging"
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
name: "⭐ Submit a request"
about: Surface a feature or problem that you think should be solved
title: ''
labels: enhancement
assignees: ''

name: "⭐ Snap Issue"
about: Submit an issue related to the snapcraft packaging of GitHub CLI
---

### Describe the feature or problem you’d like to solve
Expand Down
28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/feedback.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ jobs:
git diff --name-status @{upstream}..
fi
- name: Bump homebrew-core formula
uses: mislav/bump-homebrew-formula-action@8e2baa47daaa8db10fcdeb04105dfa6850eb0d68
uses: mislav/bump-homebrew-formula-action@37c544ffe02cc3f4eb1987db8fa63c96e0b37098
if: inputs.environment == 'production' && !contains(inputs.tag_name, '-')
with:
formula-name: gh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/homebrew-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Bump homebrew-core formula
uses: mislav/bump-homebrew-formula-action@8e2baa47daaa8db10fcdeb04105dfa6850eb0d68
uses: mislav/bump-homebrew-formula-action@37c544ffe02cc3f4eb1987db8fa63c96e0b37098
if: inputs.environment == 'production' && !contains(inputs.tag_name, '-')
with:
formula-name: gh
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@
*~

vendor/

# snap
/gh_*.snap
9 changes: 4 additions & 5 deletions docs/install_linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,10 @@ To upgrade:
webi gh@stable
```

## Discouraged
### Snapcraft

> [!WARNING]
> The GitHub CLI team actively discourages use of the following methods of installation.
To install:

### Snap
`sudo snap install gh --classic`

The [GitHub CLI package](https://snapcraft.io/gh) has [so many issues with Snap](https://github.com/casperdcl/cli/issues/7) as a runtime mechanism for apps like GitHub CLI that our team suggests _never installing gh as a snap_.
Updates are automatically checked for (and if available, downloaded) every 6 hours.
46 changes: 46 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: gh
summary: The GitHub CLI
description: |
https://cli.github.com

**`gh` - The GitHub CLI tool**

`gh` is GitHub on the command line, and it's now available in beta. It brings pull requests, issues, and other GitHub concepts to
the terminal next to where you are already working with `git` and your code.

_Usage_

- `gh pr [create, list, status, view, checkout, ...]`
- `gh issue [create, list, status, view, ...]`
- `gh [auth, browse, codespace, gist, org, project, release, repo, ...]`
- `gh [cache, run, workflow, ...]`
- `gh [alias, api, attestation, config, extension, gpg-key, label, preview, ruleset, search, secret, ssh-key, status, variable, ...]`
- `gh help`
adopt-info: gh
grade: stable
confinement: classic
base: core24
license: MIT
parts:
gh:
plugin: make
source: .
build-snaps:
- go
- snapd
build-packages:
- git
- gcc
stage-packages:
- git
override-pull: |
snapcraftctl pull
snapcraftctl set-version `(git describe --tags | sed 's/^v//') 2>/dev/null || git rev-parse --short HEAD`
override-build: |
LDFLAGS='' make -j2
cp bin/gh $SNAPCRAFT_PART_INSTALL/
bin/gh completion -s bash > $SNAPCRAFT_PART_INSTALL/completion.sh
apps:
gh:
command: gh
completer: completion.sh