@gls_spain/gps-common 35.16.0 → 35.16.1
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.
|
@@ -17,14 +17,14 @@ jobs:
|
|
|
17
17
|
# github.event.pull_request.user.login == 'external-contributor' ||
|
|
18
18
|
# github.event.pull_request.user.login == 'new-developer' ||
|
|
19
19
|
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
runs-on: ubuntu-latest
|
|
22
22
|
permissions:
|
|
23
23
|
contents: read
|
|
24
24
|
pull-requests: read
|
|
25
25
|
issues: read
|
|
26
26
|
id-token: write
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
steps:
|
|
29
29
|
- name: Checkout repository
|
|
30
30
|
uses: actions/checkout@v4
|
|
@@ -33,12 +33,48 @@ jobs:
|
|
|
33
33
|
|
|
34
34
|
- name: Run Claude Code Review
|
|
35
35
|
id: claude-review
|
|
36
|
-
uses: anthropics/claude-code-action@
|
|
36
|
+
uses: anthropics/claude-code-action@beta
|
|
37
37
|
with:
|
|
38
38
|
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
39
|
-
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
|
|
40
|
-
plugins: 'code-review@claude-code-plugins'
|
|
41
|
-
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
|
|
42
|
-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
|
43
|
-
# or https://code.claude.com/docs/en/cli-reference for available options
|
|
44
39
|
|
|
40
|
+
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
|
|
41
|
+
# model: "claude-opus-4-1-20250805"
|
|
42
|
+
|
|
43
|
+
# Direct prompt for automated review (no @claude mention needed)
|
|
44
|
+
direct_prompt: |
|
|
45
|
+
Actúa como un code reviewer senior exigente pero constructivo.Por favor revisa esta pull request y provee feedback en base a estas dimensiones:
|
|
46
|
+
- Calidad del código y mejores prácticas
|
|
47
|
+
- Posibles errores o problemas
|
|
48
|
+
- Consideraciones de rendimiento
|
|
49
|
+
- Preocupaciones de seguridad
|
|
50
|
+
|
|
51
|
+
Sé constructivo y útil en tus comentarios.
|
|
52
|
+
|
|
53
|
+
Al final, da una puntuación global de 1 a 10 con un resumen de una línea.
|
|
54
|
+
|
|
55
|
+
El idioma a usar es el español.
|
|
56
|
+
|
|
57
|
+
# Optional: Use sticky comments to make Claude reuse the same comment on subsequent pushes to the same PR
|
|
58
|
+
use_sticky_comment: false
|
|
59
|
+
|
|
60
|
+
# Optional: Customize review based on file types
|
|
61
|
+
# direct_prompt: |
|
|
62
|
+
# Review this PR focusing on:
|
|
63
|
+
# - For TypeScript files: Type safety and proper interface usage
|
|
64
|
+
# - For API endpoints: Security, input validation, and error handling
|
|
65
|
+
# - For React components: Performance, accessibility, and best practices
|
|
66
|
+
# - For tests: Coverage, edge cases, and test quality
|
|
67
|
+
|
|
68
|
+
# Optional: Different prompts for different authors
|
|
69
|
+
# direct_prompt: |
|
|
70
|
+
# ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
|
|
71
|
+
# 'Welcome! Please review this PR from a first-time contributor. Be encouraging and provide detailed explanations for any suggestions.' ||
|
|
72
|
+
# 'Please provide a thorough code review focusing on our coding standards and best practices.' }}
|
|
73
|
+
|
|
74
|
+
# Optional: Add specific tools for running tests or linting
|
|
75
|
+
# allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
|
|
76
|
+
|
|
77
|
+
# Optional: Skip review for certain conditions
|
|
78
|
+
# if: |
|
|
79
|
+
# !contains(github.event.pull_request.title, '[skip-review]') &&
|
|
80
|
+
# !contains(github.event.pull_request.title, '[WIP]')
|
|
@@ -32,19 +32,32 @@ jobs:
|
|
|
32
32
|
|
|
33
33
|
- name: Run Claude Code
|
|
34
34
|
id: claude
|
|
35
|
-
uses: anthropics/claude-code-action@
|
|
35
|
+
uses: anthropics/claude-code-action@beta
|
|
36
36
|
with:
|
|
37
37
|
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
38
38
|
|
|
39
39
|
# This is an optional setting that allows Claude to read CI results on PRs
|
|
40
40
|
additional_permissions: |
|
|
41
41
|
actions: read
|
|
42
|
-
|
|
43
|
-
# Optional:
|
|
44
|
-
#
|
|
45
|
-
|
|
46
|
-
# Optional:
|
|
47
|
-
#
|
|
48
|
-
|
|
49
|
-
#
|
|
50
|
-
|
|
42
|
+
|
|
43
|
+
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
|
|
44
|
+
# model: "claude-opus-4-1-20250805"
|
|
45
|
+
|
|
46
|
+
# Optional: Customize the trigger phrase (default: @claude)
|
|
47
|
+
# trigger_phrase: "/claude"
|
|
48
|
+
|
|
49
|
+
# Optional: Trigger when specific user is assigned to an issue
|
|
50
|
+
# assignee_trigger: "claude-bot"
|
|
51
|
+
|
|
52
|
+
# Optional: Allow Claude to run specific commands
|
|
53
|
+
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
|
|
54
|
+
|
|
55
|
+
# Optional: Add custom instructions for Claude to customize its behavior for your project
|
|
56
|
+
# custom_instructions: |
|
|
57
|
+
# Follow our coding standards
|
|
58
|
+
# Ensure all new code has tests
|
|
59
|
+
# Use TypeScript for new files
|
|
60
|
+
|
|
61
|
+
# Optional: Custom environment variables for Claude
|
|
62
|
+
# claude_env: |
|
|
63
|
+
# NODE_ENV: test
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [35.16.1](https://github.com/GLS-Spain/gps-common/compare/v35.16.0...v35.16.1) (2026-04-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* quitar validacion de pod para entrega DTT ([688af4f](https://github.com/GLS-Spain/gps-common/commit/688af4fbc68139bf61012c086a1d2ad52dc6116e))
|
|
7
|
+
* quitar validacion de pod en customerWithPod para entrega DTT ([6ae1db1](https://github.com/GLS-Spain/gps-common/commit/6ae1db1ec0767bed6b0976b8ad44f99678ea9c36))
|
|
8
|
+
|
|
1
9
|
# [35.16.0](https://github.com/GLS-Spain/gps-common/compare/v35.15.10...v35.16.0) (2026-04-10)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
|
@@ -92,7 +92,7 @@ const customer = () => ({
|
|
|
92
92
|
barcode: { type: 'string', trim: true },
|
|
93
93
|
pod: objectWithUuid(),
|
|
94
94
|
},
|
|
95
|
-
required: ['name', 'nif'
|
|
95
|
+
required: ['name', 'nif'],
|
|
96
96
|
additionalProperties: false,
|
|
97
97
|
});
|
|
98
98
|
|
|
@@ -104,7 +104,7 @@ const customerWithPod = () => ({
|
|
|
104
104
|
barcode: { type: 'string', trim: true },
|
|
105
105
|
pod: { type: 'string', contentMediaType: 'image/jpg', contentEncoding: 'base64' },
|
|
106
106
|
},
|
|
107
|
-
required: ['name', 'nif'
|
|
107
|
+
required: ['name', 'nif'],
|
|
108
108
|
additionalProperties: false,
|
|
109
109
|
});
|
|
110
110
|
|