Skip to content

Commit 3d6516b

Browse files
authored
Repository gardening (#131)
* ci: remove brew tag check from workflow * goreleaser: remove brew-specific configuration * .github: improve pull request template * .github: add copilot instructions
1 parent a5c6f87 commit 3d6516b

File tree

4 files changed

+33
-33
lines changed

4 files changed

+33
-33
lines changed

.github/copilot-instructions.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
This is a Go based repository buliding a command line tool that converts the status of a git working tree for a specific directory into a tmux status string the end user can add to their tmux status line. It is designed to be used with the `tmux` terminal multiplexer.
2+
3+
## Code Standards
4+
5+
### Required Before Each Commit
6+
7+
- Run `go test ./...` before committing any changes to ensure tests pass
8+
- Go code should be formatted with `gofmt`
9+
10+
## Repository Structure
11+
12+
- `./`: repository root, main package, default configuration file, and main entry point
13+
- `tmux/`: tmux formatting
14+
- `json/`: used by gitmux -dbg to print the git working tree status as a json object, for debugging purposes
15+
- `testdata/`: testscripts fixtures when actual gitmux output is checked against some specific conditions.
16+
17+
## Key Guidelines
18+
19+
1. Follow Go best practices and idiomatic patterns
20+
2. Maintain existing code structure and organization
21+
3. Write unit tests for new functionality. Use table-driven unit tests when possible.
22+
4. Document public options
23+
5. Keep table aligned in the README.md file, for a nice experience even when reading the file in a terminal

.github/pull_request_template.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
_Describe the problem or feature in addition to a link to the issues._
33

44
## Approach
5-
_How does this change address the problem?_
5+
_How does this Pull Request address the problem?_
66

7-
Thank you!
7+
## Testing
8+
9+
- There should be some unit tests for every behaviour change or new feature
10+
- If you're adding a new configuration option, the default configuration file
11+
(.gitmux.yml) should be modified with the new option
12+
- There's a test that verifies that gitmux output always remains the same
13+
across versions when using the default configuration. You can run it with:
14+
`go test -run TestScriptst`
15+
- `README.md` should always be updated.

.github/workflows/ci-cd.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,3 @@ jobs:
3535
args: release --clean
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
38-
39-
check_brew:
40-
name: Check Brew Tap
41-
needs: goreleaser
42-
runs-on: macos-latest
43-
steps:
44-
- name: Install gitmux with brew
45-
run: |
46-
brew tap arl/arl
47-
brew install gitmux
48-
gitmux -V
49-
- name: Check installed gitmux version
50-
run: |
51-
[ v$(gitmux -V) == "$GITHUB_REF_NAME" ]

.goreleaser.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,3 @@ changelog:
3131
exclude:
3232
- "^docs:"
3333
- "^test:"
34-
35-
brews:
36-
- name: gitmux
37-
homepage: "https://github.com/arl/gitmux"
38-
description: "Git in your tmux status bar."
39-
license: "MIT"
40-
url_template: "https://github.com/arl/gitmux/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
41-
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
42-
directory: Formula
43-
skip_upload: false
44-
repository:
45-
owner: arl
46-
name: homebrew-arl
47-
branch: main
48-
commit_author:
49-
name: goreleaser-bot
50-

0 commit comments

Comments
 (0)