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
26 changes: 0 additions & 26 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.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@
*.swp

vendor/

# snap
/gh_*.snap
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ For instructions on specific distributions and package managers, see [Linux & BS

MSI installers are available for download on the [releases page][].

### Snapcraft

Install:

1. `sudo snap install gh`
2. `sudo snap connect gh:ssh-keys` grant ssh access

Updates are automatically checked for (and if available, downloaded) every 6 hours.

### GitHub Actions

GitHub CLI comes pre-installed in all [GitHub-Hosted Runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners).
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ require (
github.com/sourcegraph/jsonrpc2 v0.1.0
github.com/spf13/cobra v1.4.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.4
github.com/stretchr/testify v1.7.5
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.4 h1:wZRexSlwd7ZXfKINDLsO4r7WBt3gTKONc6K/VesHvHM=
github.com/stretchr/testify v1.7.4/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.7.5 h1:s5PTfem8p8EbKQOctVV53k6jCJt3UX4IEJzwh+C324Q=
github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down
53 changes: 53 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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 [status, list, view, checkout, create]`
- `gh issue [status, list, view, create]`
- `gh help`
adopt-info: gh
grade: stable
confinement: strict # classic
base: core18
license: MIT
parts:
gh:
plugin: make
source: .
build-snaps:
- go
- snapd
build-packages:
- git
- gcc
stage-packages:
- git
- nano
- ssh
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
plugs:
- home
- network
- network-bind
- desktop
- ssh-keys
completer: completion.sh
environment:
GIT_EDITOR: nano