github / github/paste-markdown

Links are inserted when copy/pasting action build logs and code with embedded links

Abierto
#49 2 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
234
Forks
47
Merge medio
1 d 12 h
PR fusionados (30 d)
5

Descripción

I was just trying to copy text out of an actions workflow, specifically [these lines](https://github.com/xt0rted-test/setup-dotnet-test/blob/044a4edc45952284fc730aed213e32644d07cb34/.github/workflows/dotnet-sdks.yml#L26-L32). Since I'm using OctoLinker the action name is linkified and the text that gets pasted into an issue shows up as:

```yml
- name: Set up .NET
uses: https://github.com/actions/setup-dotnet/tree/v2.0.0v2.0.0
with:
dotnet-version: |
3.1.417
5.0.406
6.0.201
```

instead of

```yml
- name: Set up .NET
uses: actions/setup-dotnet@v2.0.0
with:
dotnet-version: |
3.1.417
5.0.406
6.0.201
```

Similarly I tried to copy text out of an [Actions build log](https://github.com/xt0rted-test/setup-dotnet-test/runs/5973292245?check_suite_focus=true#step:2:22) and that's also pasting incorrectly. OctoLinker doesn't run on these pages so the issue isn't related to that like the above one kind of is.

```
.NET SDKs installed:
3.1.120 [/usr/share/dotnet/sdk]
3.1.202 [/usr/share/dotnet/sdk]
3.1.[30](https://github.com/xt0rted-test/setup-dotnet-test/runs/5973292245?check_suite_focus=true#step:2:30)2 [/usr/share/dotnet/sdk]
3.1.417 [/usr/share/dotnet/sdk]
5.0.104 [/usr/share/dotnet/sdk]
5.0.212 [/usr/share/dotnet/sdk]
5.0.303 [/usr/share/dotnet/sdk]
5.0.406 [/usr/share/dotnet/sdk]
6.0.201 [/usr/share/dotnet/sdk]
```

In this example the 4th line should actually be:

```
3.1.302 [/usr/share/dotnet/sdk]
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce el problema copiando código de workflow y un fragmento del build-log de Actions; después, sigue los puntos de entrada de JavaScript responsables del pegado y de la gestión del portapapeles que convierten texto con enlaces. Se considera terminado cuando el código copiado y el texto del log ya no incorporan enlaces Markdown incrustados ni caracteres alterados.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript
Área
frontend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.