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

Open
#49 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Reproduce the issue by copying workflow code and an Actions build-log snippet, then trace the JavaScript paste and clipboard-handling entry points responsible for converting linked text. Compare the pasted output with the plain-text examples in the report; done means copied code and log text no longer gain embedded Markdown links or altered characters.

Written by the indexing model from the issue text.

Description

I was just trying to copy text out of an actions workflow, specifically these lines. Since I'm using OctoLinker the action name is linkified and the text that gets pasted into an issue shows up as:

- 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

      - 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 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]
Dominant language
JavaScript
Stars
234
Forks
47
Avg merge
1d 12h
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/paste-markdown

All issues in github/paste-markdown

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.