mdma-cli 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,6 +21,26 @@ npx mdma-cli add # default: GitHub workflow, merge auto
21
21
  npx mdma-cli add jira # JIRA integration, milestone, anonymity
22
22
  ```
23
23
 
24
+ ### Configuration JIRA
25
+
26
+ **Variables globales** (`.zshrc` ou `.bashrc`) :
27
+
28
+ ```bash
29
+ export ARTE_ATLASSIAN_ROOT_URL="https://mycompany.atlassian.net" # ou URL on-premise
30
+ export ARTE_ATLASSIAN_USER_EMAIL="user@email.com"
31
+ export ARTE_ATLASSIAN_API_TOKEN="your-api-token"
32
+ ```
33
+
34
+ **Variable projet** (dans `CLAUDE.md` ou `.env`) :
35
+
36
+ ```bash
37
+ export ARTE_ATLASSIAN_PROJECT_NAME="PROJ" # clé du projet JIRA
38
+ ```
39
+
40
+ Créer un token : [Atlassian API tokens](https://id.atlassian.com/manage-profile/security/api-tokens)
41
+
42
+ **Fallback MCP** : si l'API échoue, le workflow propose d'utiliser `@anthropic/atlassian-mcp-server`.
43
+
24
44
  ## Custom mix
25
45
 
26
46
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdma-cli",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "Rules opinionated pour agents de code",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -7,6 +7,44 @@
7
7
  > - Ne jamais faire d'exception, quelle que soit la taille ou nature du changement
8
8
  > - En cas de doute → STOP → demander à l'utilisateur
9
9
 
10
+ ## Configuration JIRA
11
+
12
+ ### Variables globales (`.zshrc` ou `.bashrc`)
13
+
14
+ ```bash
15
+ export ARTE_ATLASSIAN_ROOT_URL="https://mycompany.atlassian.net" # ou URL on-premise
16
+ export ARTE_ATLASSIAN_USER_EMAIL="user@email.com"
17
+ export ARTE_ATLASSIAN_API_TOKEN="your-api-token"
18
+ ```
19
+
20
+ ### Variable projet (`CLAUDE.md` du projet)
21
+
22
+ ```markdown
23
+ ## JIRA
24
+ - **Projet** : `PROJ` (clé JIRA)
25
+ ```
26
+
27
+ Ou via variable d'environnement projet :
28
+ ```bash
29
+ export ARTE_ATLASSIAN_PROJECT_NAME="PROJ"
30
+ ```
31
+
32
+ ### Utilisation API
33
+
34
+ ```bash
35
+ # Exemple de requête JIRA
36
+ curl -s -u "$ARTE_ATLASSIAN_USER_EMAIL:$ARTE_ATLASSIAN_API_TOKEN" \
37
+ "$ARTE_ATLASSIAN_ROOT_URL/rest/api/3/issue/PROJ-123"
38
+ ```
39
+
40
+ ### Fallback
41
+
42
+ Si l'API REST échoue (erreurs réseau, permissions), utiliser le MCP Atlassian :
43
+
44
+ ```bash
45
+ claude mcp add atlassian -- npx -y @anthropic/atlassian-mcp-server
46
+ ```
47
+
10
48
  ## Étapes obligatoires
11
49
 
12
50
  ### 0. Setup Git
@@ -15,7 +53,7 @@
15
53
  - Ne jamais rationaliser ("c'est juste un petit fix")
16
54
 
17
55
  ### 1. Plan
18
- - Cherche dans .zshrc pour le token JIRA afin de l'utiliser en REST API avec CURL. Attention le token peut contenir des caractères spéciaux, en tenir compte dans le CURL.
56
+ - Utilise les variables `$ARTE_ATLASSIAN_*` pour les appels API JIRA (voir Configuration ci-dessus)
19
57
  - Cherche le contenu du ticket JIRA à traiter avec l'id donné dans le prompt
20
58
  - Passe le statut du ticket JIRA à "In progress"
21
59
  - Attribue le ticket à l'utilisateur