Skip to content

Commit

Permalink
[Enhancement] Basic UI Elements (#2)
Browse files Browse the repository at this point in the history
* adding ui elements

* trying to figure out updates

* fixing workflow, issues, readme
  • Loading branch information
antgrutta authored Jul 28, 2023
1 parent 973262c commit 130a727
Show file tree
Hide file tree
Showing 13 changed files with 342 additions and 64 deletions.
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: 'Bug report'
about: 'Create a bug report to help improve this project'
title: 'PLEASE DESCRIBE THE BUG'
labels: ':bug: bug'
assignees: ''
---

### Describe the bug

A clear and concise description of what the bug is.

### To Reproduce

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

### Expected behavior

A clear and concise description of what you expected to happen.

### Environment

> (please complete the following information)
- Go version [e.g. 1.14.2]
- Shell Type: [e.g. bash, zsh]
- Terminal: [e.g. native, iTerm, hyper]

### Additional context

Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: 'Feature request'
about: 'Suggest an idea for this project'
title: 'PLEASE DESCRIBE THE FEATURE REQUEST'
labels: ':construction: feature-request'
assignees: ''
---

### Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

### Describe the solution you'd like

A clear and concise description of what you want to happen.

### Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

### Additional context

Add any other context or screenshots about the feature request here.
27 changes: 27 additions & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Contributing

[fork]: /fork
[pr]: /compare

Hi there! I'm thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.

## Submitting a pull request

1. [Fork][fork] and clone the repository
1. Create a new branch: `git checkout -b my-branch-name`
1. Make your change
1. Push to your fork and [submit a pull request][pr]
1. Pat your self on the back and wait for your pull request to be reviewed and merged.

Here are a few things you can do that will increase the likelihood of your pull request being accepted:

- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).

Work in Progress pull request are also welcome to get feedback early on, or if there is something blocked you.

## Resources

- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
- [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
- [GitHub Help](https://help.github.com)
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build
on:
push:
branches:
- main
paths-ignore:
- "*.md"
pull_request:
branches:
- main
paths-ignore:
- "*.md"
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
env:
CI: true
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/setup-go@v2.1.4
with:
go-version: 1.19.x
- run: go get -v -t -d ./...
- run: go build -v .
38 changes: 32 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
# Git Ignore
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

## Folders
.vscode
# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Go workspace file
go.work

## Files
# Go Patch
/vendor/
/Godeps/

# Build outputs
dist/
/gh-migration-monitor
/gh-migration-monitor.exe
scratch.txt
/gh-mirgation-monitor.exe

# Misc ignores
.vscode/
scratch
*.csv
*.log
.vscode
.DS_Store
31 changes: 12 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
# gh-migration-monitor

GitHub Migration Monitor GH Extension

> `gh-migration-monitor` is a [GitHub CLI](https://cli.github.com) that monitors the progress of a GitHub migration.
## Local Development

Local installation:

```bash
gh extension install .
```

Update local build with changes:

```bash
go build && gh migration-monitor
```
`gh-migration-monitor` is a [GitHub CLI](https://cli.github.com) that monitors the progress of a GitHub Organization migrations. It is inspired by another migration monitor app, [github-migration-monitor](https://github.com/timrogers/github-migration-monitor).

## Installation

Expand All @@ -26,8 +10,17 @@ gh extension install mona-actions/gh-migration-monitor

## Usage

TBD
```bash
Usage:
migration-monitor [flags]

Flags:
-t, --github-token string Github token to use
-h, --help help for migration-monitor
-o, --organization string Organization to monitor
```

## License

- [MIT](./license)
- [MIT](./license) (c) [Mona-Actions](https://github.com/mona-actions)
- [Contributing](./contributing.md)
21 changes: 14 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,32 +1,39 @@
module github.com/mona-actions/gh-migration-monitor

go 1.19
go 1.20

require (
github.com/gdamore/tcell/v2 v2.6.0
github.com/gofri/go-github-ratelimit v1.0.4
github.com/shurcooL/githubv4 v0.0.0-20230424031643-6cea62ecd5a9
github.com/rivo/tview v0.0.0-20230621164836-6cc0565babaf
github.com/shurcooL/githubv4 v0.0.0-20230704064427-599ae7bbf278
github.com/spf13/cobra v1.7.0
github.com/spf13/viper v1.16.0
golang.org/x/oauth2 v0.9.0
golang.org/x/oauth2 v0.7.0
)

require (
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/gdamore/encoding v1.0.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/shurcooL/graphql v0.0.0-20220606043923-3cf50f8a0a29 // indirect
github.com/rivo/uniseg v0.4.3 // indirect
github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
golang.org/x/net v0.11.0 // indirect
golang.org/x/sys v0.9.0 // indirect
golang.org/x/text v0.10.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/term v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
Expand Down
Loading

0 comments on commit 130a727

Please sign in to comment.