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

Add CLI option to update a campaign #11350

@smaifullerton-wk

Description

@smaifullerton-wk

I'm writing a CI runner for creating and publishing Sourcegraph campaigns in our organization. It uses a service account with admin access.

Unfortunately, there doesn't seem to be a way to update campaigns that have been created this way because you can only update a campaign using the web UI, which won't work since only admin accounts can create or modify SG campaigns. Our users are using their personal non-admin accounts, not the service account.

Even if it'd be possible to run and modify Sourcegraph campaigns without admin access, we still want to go the CI route to encourage a central place to store action.jsons that are run in our org.

It'd be great if you added support for updating an existing campaign via command line if you have generated both the former patchset ID and the updated patchset ID. Something like:

src campaigns update -name='My campaign name' \
  -desc='My first CLI-created campaign, edited' \
  -update-patchset=aSdFaSdFaSdFaSdF \
  -new-patchset=Q2FtcGFpZ25QbGFuOjg= \

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions