Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(docs) Fix spacing on link. #9213

Merged
merged 1 commit into from
Oct 3, 2024
Merged

(docs) Fix spacing on link. #9213

merged 1 commit into from
Oct 3, 2024

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Oct 3, 2024

Description

The newline was rending an extra <p> tag and messing up the layout.

@anthonyshew anthonyshew requested a review from a team as a code owner October 3, 2024 05:05
@turbo-orchestrator turbo-orchestrator bot added area: docs Improvements or additions to documentation created-by: turborepo owned-by: turborepo labels Oct 3, 2024
Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 5:05am
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2024 5:05am
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2024 5:05am
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2024 5:05am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2024 5:05am
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2024 5:05am
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2024 5:05am
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2024 5:05am
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2024 5:05am

@anthonyshew anthonyshew merged commit 18807de into main Oct 3, 2024
28 of 30 checks passed
@anthonyshew anthonyshew deleted the shew-94b15 branch October 3, 2024 05:06
Copy link
Contributor

github-actions bot commented Oct 3, 2024

Hi there 👋

It looks like this PR introduces broken links to the docs, please take a moment to fix them before merging:

Broken link Type File
/repo/docs/guides/tools/typescript#you-likely-dont-need-a-tsconfigjson-file-in-the-root-of-your-project hash /repo-docs/crafting-your-repository/structuring-a-repository.mdx
#package-entrypoint-wildcards hash /repo-docs/guides/tools/typescript.mdx
#package-entrypoint-wildcards hash /repo-docs/guides/tools/typescript.mdx

Thank you 🙏

chris-olszewski added a commit that referenced this pull request Oct 3, 2024
…kout (#9214)

### Description

Fixes #9208

With #9169 we started using `GITHUB_BASE_REF` to determine the base of
our `--affected` comparison. This can return a commit that doesn't exist
in the current checkout, but will pass `rev-parse` since the reference
exists.

This PR avoids crashing by treating `bad object` git errors the same as
`no merge base` so if we get passed a commit that is valid, but
non-existent in the checkout we still run.

### Testing Instructions

I only have a manual test as creating a repository where a commit exists
according to `rev-parse`, but not as part of the checkout is beyond my
git-fu levels.

Create a shallow checkout:
`git clone [email protected]:vercel/turborepo.git --depth=1`

Find a commit that exists in the repo, but does not exist in the
checkout e.g. `ce11d86705632160dd234ec4cf04bb1bd4ddeebc`
```
[0 olszewski@chriss-mbp] /tmp/turborepo $ git rev-parse ce11d86                                           
ce11d86
[0 olszewski@chriss-mbp] /tmp/turborepo $ git log
commit 18807de (grafted, HEAD -> main, origin/main, origin/HEAD)
Author: Anthony Shew <[email protected]>
Date:   Wed Oct 2 23:06:06 2024 -0600

    (docs) Fix spacing on link. (#9213)
    
    ### Description
    
    <!--
     ✍️✍  Write a short summary of your work.
      If necessary, include relevant screenshots.
    -->
    
    ### Testing Instructions
    
    <!--
      Give a quick description of steps to test your changes.
    -->
[0 olszewski@chriss-mbp] /tmp/turborepo $ git checkout ce11d86
fatal: reference is not a tree: ce11d86
```

Verify that `turbo ls --affected` crashes with "bad object" message:
```
GITHUB_ACTIONS=1 GITHUB_BASE_REF=ce11d86705632160dd234ec4cf04bb1bd4ddeebc turbo ls --affected 
 WARNING  No locally installed `turbo` found. Using version: 2.1.4-canary.0.
turbo 2.1.4-canary.0

 WARNING  ls command is experimental and may change in the future
Resolved base ref from GitHub Actions event: ce11d86
  × Unable to query SCM: git error: fatal: bad object ce11d86
  │ 
  ╰─▶ git error: fatal: bad object ce11d86
```

Test PR and verify that since we can't diff the commit we assume
everything has changed:
```
GITHUB_ACTIONS=1 GITHUB_BASE_REF=ce11d86705632160dd234ec4cf04bb1bd4ddeebc turbo_dev ls --affected
 WARNING  No locally installed `turbo` found. Using version: 2.1.4-canary.0.
turbo 2.1.4-canary.0

 WARNING  ls command is experimental and may change in the future
Resolved base ref from GitHub Actions event: ce11d86
 WARNING  unable to detect git range, assuming all files have changed: git error: fatal: bad object ce11d86

37 packages (pnpm)

  @turbo-internal/top-issues-gh-action packages/top-issues
  @turbo/benchmark packages/turbo-benchmark
...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Improvements or additions to documentation created-by: turborepo owned-by: turborepo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant