assets option is ambiguous with git plugin assets option
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- git, github, javascript
Línea de trabajo
Comienza rastreando cómo los plugins git y github resuelven la opción compartida de nivel superior assets y cómo las opciones específicas de los plugins la sobrescriben. Revisa el comportamiento existente de configuración y compatibilidad antes de decidir cómo deberían funcionar los nombres distintos. Se considera completado cuando los assets de git commit y los assets de versiones de GitHub se pueden configurar de forma independiente, mientras las configuraciones existentes de assets siguen funcionando.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Both the git plugin and github plugin have a configuration option named assets. When building out a shareable configuration, It is preferable to omit configuration inline with the plugin and define as much as possible in the top level of the release config so they can be overridden when the configuration is extended.
// my-release-config/index.js
module.exports = {
npmPublish: false,
releaseRules: [...],
assets: ['package.json', '*.md', '!**/node_modules/**'], // <---- assets
changelogTitle: '## Changelog',
plugins: [
['@semantic-release/commit-analyzer', null],
['@semantic-release/release-notes-generator', null],
['@semantic-release/changelog', null]
['@semantic-release/npm', null],
['@semantic-release/git', null],
['@semantic-release/exec', null],
['@semantic-release/github', null]
]
}
This works rather well except when you use the git and github plugins together - the assets configuration is ambiguous meaning. In the above example, All .md files will be included in both the release commit, and the files attached to the github release. if the value needs to be different between the two plugins, you have to define the plugin configuration inline, which makes it difficult to change
// my-release-config/index.js
module.exports = {
npmPublish: false,
releaseRules: [...],
changelogTitle: '## Changelog',
plugins: [
['@semantic-release/commit-analyzer', null],
['@semantic-release/release-notes-generator', null],
['@semantic-release/changelog', null]
['@semantic-release/npm', null],
['@semantic-release/git', {
assets: ['package.json', '*.md', '!**/node_modules/**'] // <---- assets
}]
['@semantic-release/exec', null],
['@semantic-release/github', {
assets: ['dist/*.tgz', 'coverage/*.json'] // <---- assets
}]
]
}
This allows them to be different, But now you cannot really over ride these values individually with out modifying them both, or changing them in the actualy config package being exteded. Which mean people have to re-define the entire plugin change and re-create most of the default configuration shipped with the shared config. Which mostly defeats the purpose.
Ideally, these settings should be named differently to disambiguate them - gitCommitAssets and githubReleaseAssets.
Something to this effect. It could initially be alternate value to allow the existing assets value to work if defined like it currently does.
- Lenguaje dominante
- JavaScript
- Estrellas
- 535
- Forks
- 150
- Merge medio
- 5 d 16 h
- PR fusionados (30 d)
- 11
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de semantic-release/github
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
semantic-release/github#1297 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
semantic-release/github#1242 · 1 comentario · 4 reacciones ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
semantic-release/github#1103 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
[@semantic-release/github] step fails with 404 error when trying to access non-existent PR # 1Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
semantic-release/github#1092 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
immutable releasesAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
semantic-release/github#1082 · 5 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
Todos los issues de semantic-release/github
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TheOdinProject/curriculum#31444 ·
Los mantenedores suelen responder en 1 día
-
[software-development-practices:nist-ssdf] github/gh-aw-threat-detection repository guidanceAbiertosoftware-development-practices software-development-practices:nist-ssdf
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
githubnext/gh-aw-cao#15860 ·
Los mantenedores suelen responder en 1 día
-
framework/gatsby help wanted kind/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
PedestrianDynamics/pyFDS-Evac#476 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
aiko-chan-ai/DiscordBotClient#380 ·