We have nice release names in https://github.com/sourcegraph/sg/releases, but it's not actually programmatically available - this causes a discrepancy between the `sg` version one might pull, and the version of `sg` that is known in-code, and means that we can't do something like #62134.
This change adds a `ReleaseName` variable to be stamped at build/release time, and updates a few references to `BuildCommit` where I think it might be more prudent to report `ReleaseName` instead, and also fixes some yellow squiggles in my IDE on files I visited (sorry) and some noisy `-v` output (sorry again)
## Test plan
```
$ go build -ldflags "-s -w -X main.BuildCommit=$(git rev-list -1 HEAD .) -X main.ReleaseName=hello-world" -o ./sg ./dev/sg
$ ./sg version
hello-world
$ ./sg -v version
Version: hello-world
Build commit: b23db0be5e
```
* ci: init trigger to pipeline on release
* ci: add release number as env var
* ci: testing action now that the env var is in place
* ci: more testing
* ci: add name
* ci: tested!
* ci(AMIs): pin GHA trigger BK
* ci: add workflow_dispatch
* ci: change branch to main
Lets get rid of PG_UTILS_PATH! :allthethings: 🎉
## Test plan
CI and a _lot_ of `nix build .#pg-utils && ldd ./result/bin/pg_dump`
also tested e2e with the following diff: 61e0eb0d55
Cody no longer needs it and it is obsolete now!
Since App added a non-insignificant amount of new concepts and alternative code paths, I decided to take some time and remove it from out codebase.
This PR removes ~21k lines of code. If we ever want parts of single binary (app), the redis kv alternatives, or the release pipeline for a native mac app back, we can look back at this PR and revert parts of it, but maintaining 21k lines of code and many code paths for which I had to delete a surprisingly small amount of tests justifies this move for me very well.
Technically, to some extent SG App and Cody App both still existed in the codebase, but we don't distribute either of them anymore, so IMO we shouldn't keep this weight in our code.
So.. here we go.
This should not affect any of the existing deployments, we only remove functionality that was special-cased for app.
- Removed a broken link in `CONTRIBUTING.md`. The handbook article must
have been moved.
- Added the Discord link into `CONTRIBUTING.md`.
- Reworded Slack link to Discord link in the good first issue GH issue
template.
Co-authored-by: Valery Bugakov <skymk1@gmail.com>
We added an [automated workflow](https://github.com/orgs/sourcegraph/projects/209/workflows/12532815) that adds team/source tickets to our triage inbox.
We will check this column regularly instead of creating massive email spam for each of us each time an issue is labeled with team/source.
This also allows us to retire some old GitHub actions workflows.
This is the end of the PR train to remove the enterprise directory from out repo since we have consolidated to use a single license.
Bye rough code split :)
* only upload when a change to ctags nix is pushed to main
* change to trigger workflow
* use apple specific shasum
* binaries get uploaded when branch matches
* use github.head_ref
* use ref_name for push events
* add short sha to filename