Update Atlassian skill prereq checks
This commit is contained in:
@@ -23,6 +23,8 @@ pnpm --dir skills/atlassian/shared/scripts sync:agents
|
|||||||
- `ATLASSIAN_EMAIL`
|
- `ATLASSIAN_EMAIL`
|
||||||
- `ATLASSIAN_API_TOKEN`
|
- `ATLASSIAN_API_TOKEN`
|
||||||
|
|
||||||
|
The `ATLASSIAN_*` values may come from the shell environment or a `.env` file in the installed agent-specific `scripts/` folder.
|
||||||
|
|
||||||
Optional:
|
Optional:
|
||||||
|
|
||||||
- `ATLASSIAN_JIRA_BASE_URL`
|
- `ATLASSIAN_JIRA_BASE_URL`
|
||||||
@@ -121,9 +123,7 @@ Run in the installed `scripts/` folder:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')"
|
node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')"
|
||||||
test -n \"$ATLASSIAN_BASE_URL\"
|
node -e 'require("dotenv").config({ path: ".env" }); const required = ["ATLASSIAN_BASE_URL", "ATLASSIAN_EMAIL", "ATLASSIAN_API_TOKEN"]; const missing = required.filter((key) => !(process.env[key] || "").trim()); if (missing.length) { console.error("Missing required Atlassian config: " + missing.join(", ")); process.exit(1); } console.log("OK: Atlassian config present")'
|
||||||
test -n \"$ATLASSIAN_EMAIL\"
|
|
||||||
test -n \"$ATLASSIAN_API_TOKEN\"
|
|
||||||
pnpm atlassian health
|
pnpm atlassian health
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ Portable Atlassian workflows for Claude Code using a shared TypeScript CLI.
|
|||||||
- `ATLASSIAN_EMAIL`
|
- `ATLASSIAN_EMAIL`
|
||||||
- `ATLASSIAN_API_TOKEN`
|
- `ATLASSIAN_API_TOKEN`
|
||||||
|
|
||||||
|
The `ATLASSIAN_*` values may come from the shell environment or a `.env` file in `~/.claude/skills/atlassian/scripts`.
|
||||||
|
|
||||||
## First-Time Setup
|
## First-Time Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -30,15 +32,13 @@ pnpm install
|
|||||||
```bash
|
```bash
|
||||||
cd ~/.claude/skills/atlassian/scripts
|
cd ~/.claude/skills/atlassian/scripts
|
||||||
node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')"
|
node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')"
|
||||||
test -n \"$ATLASSIAN_BASE_URL\"
|
node -e 'require("dotenv").config({ path: ".env" }); const required = ["ATLASSIAN_BASE_URL", "ATLASSIAN_EMAIL", "ATLASSIAN_API_TOKEN"]; const missing = required.filter((key) => !(process.env[key] || "").trim()); if (missing.length) { console.error("Missing required Atlassian config: " + missing.join(", ")); process.exit(1); } console.log("OK: Atlassian config present")'
|
||||||
test -n \"$ATLASSIAN_EMAIL\"
|
|
||||||
test -n \"$ATLASSIAN_API_TOKEN\"
|
|
||||||
pnpm atlassian health
|
pnpm atlassian health
|
||||||
```
|
```
|
||||||
|
|
||||||
If any check fails, stop and return:
|
If any check fails, stop and return:
|
||||||
|
|
||||||
`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Run setup and configure ATLASSIAN_* env vars, then retry.`
|
`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Configure ATLASSIAN_* in the shell environment or scripts/.env, then retry.`
|
||||||
|
|
||||||
## Supported Commands
|
## Supported Commands
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ Portable Atlassian workflows for Codex using a shared TypeScript CLI.
|
|||||||
- `ATLASSIAN_EMAIL`
|
- `ATLASSIAN_EMAIL`
|
||||||
- `ATLASSIAN_API_TOKEN`
|
- `ATLASSIAN_API_TOKEN`
|
||||||
|
|
||||||
|
The `ATLASSIAN_*` values may come from the shell environment or a `.env` file in `~/.codex/skills/atlassian/scripts`.
|
||||||
|
|
||||||
## First-Time Setup
|
## First-Time Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -32,15 +34,13 @@ Run before using the skill:
|
|||||||
```bash
|
```bash
|
||||||
cd ~/.codex/skills/atlassian/scripts
|
cd ~/.codex/skills/atlassian/scripts
|
||||||
node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')"
|
node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')"
|
||||||
test -n \"$ATLASSIAN_BASE_URL\"
|
node -e 'require("dotenv").config({ path: ".env" }); const required = ["ATLASSIAN_BASE_URL", "ATLASSIAN_EMAIL", "ATLASSIAN_API_TOKEN"]; const missing = required.filter((key) => !(process.env[key] || "").trim()); if (missing.length) { console.error("Missing required Atlassian config: " + missing.join(", ")); process.exit(1); } console.log("OK: Atlassian config present")'
|
||||||
test -n \"$ATLASSIAN_EMAIL\"
|
|
||||||
test -n \"$ATLASSIAN_API_TOKEN\"
|
|
||||||
pnpm atlassian health
|
pnpm atlassian health
|
||||||
```
|
```
|
||||||
|
|
||||||
If any check fails, stop and return:
|
If any check fails, stop and return:
|
||||||
|
|
||||||
`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Run setup and configure ATLASSIAN_* env vars, then retry.`
|
`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Configure ATLASSIAN_* in the shell environment or scripts/.env, then retry.`
|
||||||
|
|
||||||
## Supported Commands
|
## Supported Commands
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ Portable Atlassian workflows for Cursor Agent CLI using a shared TypeScript CLI.
|
|||||||
- `ATLASSIAN_EMAIL`
|
- `ATLASSIAN_EMAIL`
|
||||||
- `ATLASSIAN_API_TOKEN`
|
- `ATLASSIAN_API_TOKEN`
|
||||||
|
|
||||||
|
The `ATLASSIAN_*` values may come from the shell environment or a `.env` file in the installed `scripts/` folder.
|
||||||
|
|
||||||
## First-Time Setup
|
## First-Time Setup
|
||||||
|
|
||||||
Repo-local install:
|
Repo-local install:
|
||||||
@@ -45,15 +47,13 @@ Repo-local form:
|
|||||||
cursor-agent --version
|
cursor-agent --version
|
||||||
cd .cursor/skills/atlassian/scripts
|
cd .cursor/skills/atlassian/scripts
|
||||||
node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')"
|
node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')"
|
||||||
test -n \"$ATLASSIAN_BASE_URL\"
|
node -e 'require("dotenv").config({ path: ".env" }); const required = ["ATLASSIAN_BASE_URL", "ATLASSIAN_EMAIL", "ATLASSIAN_API_TOKEN"]; const missing = required.filter((key) => !(process.env[key] || "").trim()); if (missing.length) { console.error("Missing required Atlassian config: " + missing.join(", ")); process.exit(1); } console.log("OK: Atlassian config present")'
|
||||||
test -n \"$ATLASSIAN_EMAIL\"
|
|
||||||
test -n \"$ATLASSIAN_API_TOKEN\"
|
|
||||||
pnpm atlassian health
|
pnpm atlassian health
|
||||||
```
|
```
|
||||||
|
|
||||||
If any check fails, stop and return:
|
If any check fails, stop and return:
|
||||||
|
|
||||||
`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Run setup and configure ATLASSIAN_* env vars, then retry.`
|
`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Configure ATLASSIAN_* in the shell environment or scripts/.env, then retry.`
|
||||||
|
|
||||||
## Supported Commands
|
## Supported Commands
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ Portable Atlassian workflows for OpenCode using a shared TypeScript CLI.
|
|||||||
- `ATLASSIAN_EMAIL`
|
- `ATLASSIAN_EMAIL`
|
||||||
- `ATLASSIAN_API_TOKEN`
|
- `ATLASSIAN_API_TOKEN`
|
||||||
|
|
||||||
|
The `ATLASSIAN_*` values may come from the shell environment or a `.env` file in `~/.config/opencode/skills/atlassian/scripts`.
|
||||||
|
|
||||||
## First-Time Setup
|
## First-Time Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -30,15 +32,13 @@ pnpm install
|
|||||||
```bash
|
```bash
|
||||||
cd ~/.config/opencode/skills/atlassian/scripts
|
cd ~/.config/opencode/skills/atlassian/scripts
|
||||||
node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')"
|
node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')"
|
||||||
test -n \"$ATLASSIAN_BASE_URL\"
|
node -e 'require("dotenv").config({ path: ".env" }); const required = ["ATLASSIAN_BASE_URL", "ATLASSIAN_EMAIL", "ATLASSIAN_API_TOKEN"]; const missing = required.filter((key) => !(process.env[key] || "").trim()); if (missing.length) { console.error("Missing required Atlassian config: " + missing.join(", ")); process.exit(1); } console.log("OK: Atlassian config present")'
|
||||||
test -n \"$ATLASSIAN_EMAIL\"
|
|
||||||
test -n \"$ATLASSIAN_API_TOKEN\"
|
|
||||||
pnpm atlassian health
|
pnpm atlassian health
|
||||||
```
|
```
|
||||||
|
|
||||||
If any check fails, stop and return:
|
If any check fails, stop and return:
|
||||||
|
|
||||||
`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Run setup and configure ATLASSIAN_* env vars, then retry.`
|
`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Configure ATLASSIAN_* in the shell environment or scripts/.env, then retry.`
|
||||||
|
|
||||||
## Supported Commands
|
## Supported Commands
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user