Skip to content

if namespace is omitted, default to username#372

Merged
chrispine merged 12 commits into
mainfrom
cp/use-default-namespace
Nov 12, 2020
Merged

if namespace is omitted, default to username#372
chrispine merged 12 commits into
mainfrom
cp/use-default-namespace

Conversation

@chrispine

Copy link
Copy Markdown

@chrispine chrispine marked this pull request as ready for review November 11, 2020 17:55
Comment thread internal/campaigns/service.go

@eseliger eseliger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, besides your nil check

Comment thread cmd/src/campaigns_common.go

@mrnugget mrnugget left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve so. you can merge it after you've done it, but

  • please add a changelog entry!

Before you merge your documentation changes in sourcegraph/sourcegraph:

  • merge this
  • release a new src-cli version (see DEVELOPMENT.md)
  • make sure to bump the version in sourcegraph/sourcegraph

🌶 Hot Pro Tip: 🌶 include the version bump in our documentation PR so that the docs are updated with the bump.

Comment thread cmd/src/campaigns_apply.go
Comment thread cmd/src/campaigns_common.go Outdated
Comment thread internal/campaigns/service.go Outdated
Comment thread internal/campaigns/service.go Outdated
Chris Pine and others added 5 commits November 12, 2020 08:27
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
@chrispine chrispine merged commit 91c8421 into main Nov 12, 2020
@chrispine chrispine deleted the cp/use-default-namespace branch November 12, 2020 16:51
scjohns pushed a commit that referenced this pull request Apr 24, 2023
* if namespace is omitted, default to username

* just fetch the ID and do not worry about the username

* remove -namespace from help text

* Update internal/campaigns/service.go

Co-authored-by: Erik Seliger <erikseliger@me.com>

* explain the default

* cannot return a nil for a string

* Update cmd/src/campaigns_common.go

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>

* Update internal/campaigns/service.go

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>

* Update cmd/src/campaigns_apply.go

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>

* Update internal/campaigns/service.go

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>

* added CHANGELOG entry

Co-authored-by: Erik Seliger <erikseliger@me.com>
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants