Skip to content
Merged

Dev #78

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/skills/init-env/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ The CLI is interactive — let the user complete it. On success, `.vercel/projec

Invoke the `init-jira` subskill via the Skill tool. It detects state and runs phase 1 because `JIRA_BASE_URL` is not yet set in Vercel:

- Asks for `JIRA_BASE_URL` / `JIRA_EMAIL` / `JIRA_API_TOKEN` / `JIRA_PROJECT_KEY` / `COLUMN_AI` / `COLUMN_AI_REVIEW` / `COLUMN_BACKLOG`.
- Asks for `JIRA_BASE_URL` / `JIRA_API_TOKEN` / `JIRA_PROJECT_KEY` / `COLUMN_AI` / `COLUMN_AI_REVIEW` / `COLUMN_BACKLOG`.
- **Pre-generates `JIRA_WEBHOOK_SECRET`** via `openssl rand -hex 32`.
- Emits a single `.env`-format paste-template.
- Walks the user through pasting into the Vercel dashboard (Project Settings → Environment Variables).
Expand Down
4 changes: 1 addition & 3 deletions .claude/skills/init-jira/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ Hold the value for the paste-template below. Even if the user later defers webho
Ask in one prompt (single credential bundle):

- `JIRA_BASE_URL` — e.g. `https://acme.atlassian.net` (no trailing slash, no `/jira`)
- `JIRA_EMAIL` — the bot account's email
- `JIRA_API_TOKEN` — created at https://id.atlassian.com/manage-profile/security/api-tokens
- `JIRA_API_TOKEN` — scoped service-account token (Bearer) from https://id.atlassian.com/manage-profile/security/api-tokens
- `JIRA_PROJECT_KEY` — e.g. `AWT`

Then ask:
Expand All @@ -84,7 +83,6 @@ Print this single block for the user to copy into Vercel → Project Settings

```
JIRA_BASE_URL=<value>
JIRA_EMAIL=<value>
JIRA_API_TOKEN=<value>
JIRA_PROJECT_KEY=<value>
COLUMN_AI=<value>
Expand Down
5 changes: 3 additions & 2 deletions .claude/skills/init-jira/references/column-statuses.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ Each column should contain exactly one status with the matching name. Don't put
## Verify the status spelling

```bash
curl -u "$JIRA_EMAIL:$JIRA_API_TOKEN" \
"$JIRA_BASE_URL/rest/api/3/project/$JIRA_PROJECT_KEY/statuses" | \
CLOUD_ID=$(curl -s "$JIRA_BASE_URL/_edge/tenant_info" | jq -r .cloudId)
curl -H "Authorization: Bearer $JIRA_API_TOKEN" \
"https://api.atlassian.com/ex/jira/$CLOUD_ID/rest/api/3/project/$JIRA_PROJECT_KEY/statuses" | \
jq '.[].statuses[].name'
```

Expand Down
5 changes: 3 additions & 2 deletions .claude/skills/init-jira/references/transitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ If the source status doesn't have an outbound transition to the target, draw a n
For an issue currently in `AI`:

```bash
curl -u "$JIRA_EMAIL:$JIRA_API_TOKEN" \
"$JIRA_BASE_URL/rest/api/3/issue/$JIRA_PROJECT_KEY-1/transitions" | \
CLOUD_ID=$(curl -s "$JIRA_BASE_URL/_edge/tenant_info" | jq -r .cloudId)
curl -H "Authorization: Bearer $JIRA_API_TOKEN" \
"https://api.atlassian.com/ex/jira/$CLOUD_ID/rest/api/3/issue/$JIRA_PROJECT_KEY-1/transitions" | \
jq '.transitions[] | {name, to: .to.name}'
```

Expand Down
3 changes: 1 addition & 2 deletions .env.e2e.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Target server
E2E_BASE_URL=https://your-staging.vercel.app

# Jira
# Jira (scoped service-account Bearer token; routed through api.atlassian.com)
JIRA_BASE_URL=https://your-domain.atlassian.net
JIRA_EMAIL=your-email@example.com
JIRA_API_TOKEN=
JIRA_PROJECT_KEY=PROJ
JIRA_WEBHOOK_SECRET=
Expand Down
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Issue Tracker (Jira)
# ISSUE_TRACKER_KIND defaults to "jira" (only supported tracker today).
JIRA_BASE_URL=https://your-domain.atlassian.net
JIRA_EMAIL=your-email@example.com
# Scoped service-account API token (Bearer). Issue from id.atlassian.com
# under the bot account; requests are routed through api.atlassian.com.
JIRA_API_TOKEN=your-jira-api-token
JIRA_PROJECT_KEY=PROJ

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
env:
E2E_BASE_URL: ${{ secrets.E2E_BASE_URL }}
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_EMAIL: ${{ secrets.JIRA_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_PROJECT_KEY: ${{ secrets.JIRA_PROJECT_KEY }}
JIRA_WEBHOOK_SECRET: ${{ secrets.JIRA_WEBHOOK_SECRET }}
Expand Down Expand Up @@ -88,7 +87,6 @@ jobs:
env:
E2E_BASE_URL: ${{ secrets.E2E_BASE_URL }}
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_EMAIL: ${{ secrets.JIRA_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_PROJECT_KEY: ${{ secrets.JIRA_PROJECT_KEY }}
JIRA_WEBHOOK_SECRET: ${{ secrets.JIRA_WEBHOOK_SECRET }}
Expand Down Expand Up @@ -141,7 +139,6 @@ jobs:
env:
E2E_BASE_URL: ${{ secrets.E2E_BASE_URL }}
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_EMAIL: ${{ secrets.JIRA_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_PROJECT_KEY: ${{ secrets.JIRA_PROJECT_KEY }}
JIRA_WEBHOOK_SECRET: ${{ secrets.JIRA_WEBHOOK_SECRET }}
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
env:
E2E_BASE_URL: ${{ secrets.E2E_BASE_URL }}
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_EMAIL: ${{ secrets.JIRA_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_PROJECT_KEY: ${{ secrets.JIRA_PROJECT_KEY }}
JIRA_WEBHOOK_SECRET: ${{ secrets.JIRA_WEBHOOK_SECRET }}
Expand Down Expand Up @@ -85,7 +84,6 @@ jobs:
env:
E2E_BASE_URL: ${{ secrets.E2E_BASE_URL }}
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_EMAIL: ${{ secrets.JIRA_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_PROJECT_KEY: ${{ secrets.JIRA_PROJECT_KEY }}
JIRA_WEBHOOK_SECRET: ${{ secrets.JIRA_WEBHOOK_SECRET }}
Expand Down Expand Up @@ -141,7 +139,6 @@ jobs:
env:
E2E_BASE_URL: ${{ secrets.E2E_BASE_URL }}
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_EMAIL: ${{ secrets.JIRA_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_PROJECT_KEY: ${{ secrets.JIRA_PROJECT_KEY }}
JIRA_WEBHOOK_SECRET: ${{ secrets.JIRA_WEBHOOK_SECRET }}
Expand Down
Loading
Loading