Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Commit 23e3ac5

Browse files
authored
Merge pull request #7 from hellofresh/cli-improvements
Cli improvements
2 parents c65da33 + aaafbda commit 23e3ac5

19 files changed

+676
-482
lines changed

.github.sample.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Defines the application log level
2-
LogLevel="debug"
3-
41
# Where your public ssh key that is registered on Github is. By default it
52
# looks in your ssh folder for a file called `id_rsa`
63
# PublicKeyPath = ~/.ssh/id_rsa
@@ -51,3 +48,10 @@ LogLevel="debug"
5148

5249
# Defines branch protections
5350
Protections={master=["code-review/pullapprove"]}
51+
52+
[githubtestorg]
53+
# Defines the github test organization
54+
Organization="yourOrg"
55+
56+
# Defines the github test token
57+
Token=""

.travis.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,5 @@ install:
1010
script:
1111
- make test
1212

13-
before_deploy:
14-
- make
15-
16-
deploy:
17-
- provider: releases
18-
api_key: ${GITHUB_TOKEN}
19-
file: dist/github-cli*
20-
skip_cleanup: true
21-
file_glob: true
22-
on:
23-
repo: hellofresh/github-cli
24-
tags: true
13+
after_success:
14+
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash

Gopkg.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ github-cli [command] [--flags]
3131

3232
| Command | Description |
3333
|--------------------------|--------------------------------------|
34-
| `github-cli repo create [--flags]` | Creates a new github repository |
35-
| `github-cli test create [--flags]` | Creates a new hellofresh hiring test |
36-
| `github-cli unseat [--flags]` | Removes external collaborators from repositories |
37-
| `github-cli version` | Prints the version information |
34+
| `github-cli repo create [--flags]` | Creates a new github repository |
35+
| `github-cli repo delete [--flags]` | Deletes a github repository |
36+
| `github-cli hiring send [--flags]` | Creates a new hellofresh hiring test |
37+
| `github-cli hiring unseat [--flags]` | Removes external collaborators from repositories |
38+
| `github-cli version` | Prints the version information |
3839

3940
## Contributing
4041

cmd/create_repo.go

Lines changed: 0 additions & 154 deletions
This file was deleted.

cmd/create_test_repo.go

Lines changed: 0 additions & 102 deletions
This file was deleted.

cmd/delete_repo.go

Lines changed: 0 additions & 49 deletions
This file was deleted.

cmd/hiring.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package cmd
2+
3+
import "github.com/spf13/cobra"
4+
5+
// NewHiringCmd aggregates the hiring comamnds
6+
func NewHiringCmd() *cobra.Command {
7+
// Repo commands
8+
cmd := &cobra.Command{
9+
Use: "hiring",
10+
Short: "Github hiring tests repository management",
11+
}
12+
13+
cmd.AddCommand(NewHiringSendCmd())
14+
cmd.AddCommand(NewHiringUnseat())
15+
16+
return cmd
17+
}

0 commit comments

Comments
 (0)