2020-02-28 23:34:24 +01:00
|
|
|
# Campaigner
|
|
|
|
|
|
|
|
Command line tool to create and manage community campaigns.
|
|
|
|
|
2020-02-29 01:22:11 +01:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ campaigner --help
|
|
|
|
Create and manage Open Source campaigns
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
campaigner [command]
|
|
|
|
|
|
|
|
Available Commands:
|
2020-03-01 11:43:31 +01:00
|
|
|
add Adds tickets to the campaign from the output of grep/ag/govet
|
2020-02-29 14:30:59 +01:00
|
|
|
filter Interactively filters the current ticket list
|
2020-02-29 01:22:11 +01:00
|
|
|
help Help about any command
|
|
|
|
init Creates a new campaign in the current directory
|
2020-03-01 11:43:31 +01:00
|
|
|
standalone Standalone fire-and-forget commands
|
2020-02-29 01:22:11 +01:00
|
|
|
token Subcommands related to tokens
|
|
|
|
|
|
|
|
Flags:
|
|
|
|
-h, --help help for campaigner
|
|
|
|
|
|
|
|
Use "campaigner [command] --help" for more information about a command.
|
|
|
|
```
|
|
|
|
|
2020-02-28 23:34:24 +01:00
|
|
|
## Application flow
|
|
|
|
|
|
|
|
1. Run `campaigner set-token` to set the tokens for `jira/github`.
|
2020-02-29 14:38:32 +01:00
|
|
|
2. Run `campaigner init` to create a new community campaign.
|
2020-02-28 23:34:24 +01:00
|
|
|
3. Run `campaigner add` to add new tickets based either on a `grep/ag`
|
|
|
|
command or a `govet` check.
|
2020-02-29 14:38:32 +01:00
|
|
|
4. Run `campaigner filter` to interactively remove false matches.
|
|
|
|
5. Run `campaigner status` to see the status of each one of the
|
2020-02-28 23:34:24 +01:00
|
|
|
tickets. The tickets can be in an `unpublished`, `jira`, `github`
|
|
|
|
and `completed` state.
|
2020-02-29 14:38:32 +01:00
|
|
|
6. Modify the `template.md` file to adjust the ticket templates.
|
|
|
|
7. Run `campaigner publish` to create the tickets in `jira` based on
|
2020-02-28 23:34:24 +01:00
|
|
|
the template.
|
2020-02-29 14:38:32 +01:00
|
|
|
8. Possible next step to publish the tickets from `jira` to `github`.
|
2020-02-29 16:39:27 +01:00
|
|
|
|
|
|
|
## Roadmap
|
|
|
|
|
2020-02-29 17:45:53 +01:00
|
|
|
- [x] Modify the add command to only act on `stdin`, using the
|
2020-02-29 16:39:27 +01:00
|
|
|
`--grep` and `--govet` flags to distinguish how to parse the
|
|
|
|
input.
|
2020-03-01 13:04:34 +01:00
|
|
|
- [x] Add `standalone` group of commands.
|
2020-02-29 21:56:43 +01:00
|
|
|
- [ ] Parametrise the atlassian API url.
|
2020-02-29 17:57:57 +01:00
|
|
|
- [ ] Add file only mode to the `add` command.
|
|
|
|
- [ ] Add file path normalisation to the `add` command.
|
2020-02-29 16:39:27 +01:00
|
|
|
- [ ] Add `--ag` to the `add` command.
|
|
|
|
- [ ] Add the `publish` command.
|
|
|
|
- [ ] Add state management to the tickets and links to the jira
|
|
|
|
issues.
|
|
|
|
- [ ] Add the `sync` command to synchronize the issue state.
|
2020-02-29 17:57:57 +01:00
|
|
|
- [ ] Add the `filter` command with a button to get context and the
|
|
|
|
option to add fn name.
|