Update-PSScriptFileInfo modifies Description even when -Description parameter is not used
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Comienza con la reproducción vinculada de Update-PSInfo.ps1 y el punto de entrada Update-PSScriptFileInfo en PSResourceGet. Compara la salida esperada y la real cuando solo se proporciona -Version y, a continuación, ejecuta las pruebas existentes relevantes si están disponibles. Se considera terminado cuando la descripción permanece en su lugar con el formato de párrafo sin cambios cuando se omite -Description.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
When Update-PSScriptInfo is used to change script metadata, the Description property of Comment-based help is modified event when Description parameter is not used.
The sample script to test the problem: Update-PSInfo.ps1
Expected behavior
Both the placement of Description property is changed and also, the formatting of content is changed.
Expected behavior
PS> Get-Content Update-PSInfo.ps1
<#PSScriptInfo
.VERSION 1.0.0
. . .
#>
<#
.SYNOPSIS
A short synopsis
.DESCRIPTION
A longer description.
Second paragraph
. . .
PS> Update-PSScriptFileInfo -Path Update-PSInfo.ps1 -Version 1.1.0
PS> Get-Content Update-PSInfo.ps1
<#PSScriptInfo
.VERSION 1.1.0
. . .
#>
<#
.SYNOPSIS
A short synopsis
.DESCRIPTION
A longer description.
Second paragraph
. . .
Actual behavior
PS> Update-PSScriptFileInfo -Path Update-PSInfo.ps1 -Version 1.1.0
PS> Get-Content Update-PSInfo.ps1
<#PSScriptInfo
.VERSION 1.1.0
. . .
#>
<#
.DESCRIPTION
A longer description.
Second paragraph
.SYNOPSIS
A short synopsis
. . .
Error details
Environment data
- PowerShell version: 5.1, 7.5.1
- PSResourceGet version: 1.1.1
Visuals
No response
- Lenguaje dominante
- C#
- Estrellas
- 577
- Forks
- 114
- Merge medio
- 23 h 17 min
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 PowerShell/PSResourceGet
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectoryAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PowerShell/PSResourceGet#2056 ·
Los mantenedores suelen responder en 1 día
-
feature_request
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
PowerShell/PSResourceGet#2013 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Needs-Triage
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
PowerShell/PSResourceGet#2060 ·
Los mantenedores suelen responder en 1 día
-
Needs-Triage
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
PowerShell/PSResourceGet#2059 ·
Los mantenedores suelen responder en 1 día
-
Use GitHub app token to authenticate to GitHub resourcesPosiblemente ocupada @adityapatwardhan la tomó hace 12 días. Abiertofeature_request Needs-Triage
PowerShell/PSResourceGet#2057 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de PowerShell/PSResourceGet
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
elsa-workflows/elsa-core#8593 ·
Los mantenedores suelen responder en 1 día
-
WebSocket upgrade check is case-sensitive for `Upgrade`Posiblemente ocupada @S0CloseYetS0Far la tomó hoy. Abiertobug good first issue severity:low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
example mod Controller SupportAbiertoNEW ISSUE Requestor-TML Maintainers Type: Change/Feature Request
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
tModLoader/tModLoader#5476 ·
Los mantenedores suelen responder en 1 día
-
Issue-Enhancement Needs-Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
PowerShell/PowerShell#28138 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
SubtitleEdit/subtitleedit#15600 ·
Los mantenedores suelen responder en 1 día