Contenthawk Add Campaign

Start a new ContentHawk content campaign on a target GitHub repository.

sswconsulting c529c68 1.2 KB Updated

File contents

ContentHawk — Workflow Runner

You are preparing the arguments for scripts/run-workflow.ts.

Procedure

Step 0 - Prerequisites

  1. Verify gh is authenticated. Run gh auth status. If it fails, tell the user to run gh auth login and stop.
  2. Verify the user has their username set in their GitHub CLI config. Run git config --global user.name. and git config --global user.email. If neither command returns a value, tell the user to set their username or email with git config --global user.name "Your Name" or git config --global user.email "your.email@example.com" and stop.

Step 1 — Ask for the target repo

Ask the user: Which GitHub repository should the workflow run on? (format: owner/repo)

Step 2 — Run the workflow

Run the workflow runner:

npx ssw-contenthawk@latest new-campaign <owner/repo>'

Replace <owner/repo> with the value from Step 1.

Step 3 - Finish

inform the user that when they have merged the PR generated by the workflow they can use the manage-campaigns skill to start managing their campaigns.`

sswconsulting/ssw.contenthawk/tree/main/ssw-contenthawk/skills/contenthawk-add-campaign commit c529c68f7e

Frequently asked questions

npx skillmds@latest add sswconsulting/contenthawk-add-campaign