Skip to content

doc: add docs for dealing with special characters in ref names#9577

Merged
lucascosti merged 11 commits intomainfrom
wincent/special-characters
Sep 27, 2021
Merged

doc: add docs for dealing with special characters in ref names#9577
lucascosti merged 11 commits intomainfrom
wincent/special-characters

Conversation

@wincent
Copy link
Contributor

@wincent wincent commented Sep 6, 2021

Why:

There are a few places in the UI where we provide instructions for how to do things on the command-line. We can provide shell-friendly escaped versions of most branch names, but there will always be some edge-casey ones (eg. names containing single quotes) for which the escaping rules vary subtly by shell. Rather than try to cram a dozen variants of the commands into the UI, we want to direct people to the docs for such problematic names.

What's being changed:

The intent here is not to document every shell's rules (doomed to be incomplete and become stale over time), but rather provide a flavour of what users should be aware of, and some helpful links to jumping off to official upstream docs for commonly-used shells.

Closes: https://github.com/github/coding/issues/2388

Google Chrome app 2021-09-06 17 14 02 UTC

Check off the following:

  • I have reviewed my changes in staging (look for the latest deployment event in your pull request's timeline, then click View deployment).
  • For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

  • This pull request impacts the contribution experience
    • I have added the 'writer impact' label
    • I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

cc @codeminator and @georgebrock

@welcome
Copy link

welcome bot commented Sep 6, 2021

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Sep 6, 2021
@wincent wincent changed the title [WIP] doc: add docs for dealing with special characters in ref names doc: add docs for dealing with special characters in ref names Sep 6, 2021
@wincent wincent force-pushed the wincent/special-characters branch from 0d4dfed to e3d08aa Compare September 6, 2021 17:12
Copy link
Member

@georgebrock georgebrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are great docs! I made a couple of very small suggestions, but this is already very thorough and helpful as-is ✨

There are a few places in the UI where we provide instructions for how
to do things on the command-line. We can provide shell-friendly escaped
versions of _most_ branch names, but there will always be some
edge-casey ones (eg. names containing single quotes) for which the
escaping rules vary subtly by shell. Rather than try to cram a dozen
variants of the commands into the UI, we want to direct people to the
docs for such problematic names.

The intent here is not to document every shell's rules (doomed to be
incomplete and become stale over time), but rather provide a flavour of
what users should be aware of, and some helpful links to jumping off to
official upstream docs for commonly-used shells.

Closes: https://github.com/github/coding/issues/2388
Because it was failing this test:

    ● pages module › loadPages › every English page has a filename that matches its slugified title

as seen here:

    https://github.com/github/docs/pull/9577/checks?check_run_id=3524790084
As per style guide:

    https://github.com/github/docs/blob/main/contributing/content-style-guide.md

and self-review checklist:

    https://github.com/github/docs/blob/main/CONTRIBUTING.md#self-review

- Avoided nominalization in one place (eg. "for structure" instead of
  "to provide organization", which might have been confused with a
  _GitHub_ organization).
- Change passive to active voice in one place (eg. "most shells would
  interpret" instead of "would be interpreted by most shells").
@wincent wincent force-pushed the wincent/special-characters branch from e3d08aa to d1d177c Compare September 7, 2021 11:04
@wincent wincent marked this pull request as ready for review September 7, 2021 11:09
@ramyaparimi ramyaparimi added content This issue or pull request belongs to the Docs Content team waiting for review Issue/PR is waiting for a writer's review and removed triage Do not begin working on this issue until triaged by the team labels Sep 7, 2021
@ramyaparimi
Copy link
Contributor

@wincent
Thanks so much for opening a PR! I'll get this triaged for review ⚡

@codeminator
Copy link

@ramyaparimi any thoughts on when this PR will be reviewed?

@ramyaparimi
Copy link
Contributor

@codeminator Thanks for reaching out.

We have a limited set of resources to pull from in order to get work done in the open source repository. We do our best to get things addressed as quickly as possible. Unfortunately, we can’t promise exactly when this will be handled, but rest assured that it is in the hands of the proper team and we’ll get to it as rapidly as we can with resources and other priorities in mind.

Thanks for your patience and your contributions to the GitHub docs.

@lucascosti lucascosti self-assigned this Sep 23, 2021
@lucascosti
Copy link
Contributor

👋 Thanks a lot for providing the content for this article, @wincent! 🙇‍♂️ I'm sorry that it's taken us a while to get to reviewing this.

I've push up an edit in 1b903fc, which breaks the content up into digestible sections, and also made some wording/formatting edits for it to align with our style guides and language recommendations.

Please let me know if I've unintentionally changed the meaning of anything that makes it incorrect.

Because I've made significant changes, I'll get someone else on the team to give it a quick review of my changes.

Copy link
Contributor

@martin389 martin389 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR! I've added some small suggestions 👍

Co-authored-by: Martin Lopes <martin389@github.com>
@lucascosti
Copy link
Contributor

Thanks, @martin389! 🙇‍♂️

@wincent Let me know if you're happy to get this merged in 🙂

@wincent
Copy link
Contributor Author

wincent commented Sep 27, 2021

Let me know if you're happy to get this merged in

@lucascosti, thanks for the edits and @martin389, thanks for the review! This looks great to me.

@ramyaparimi ramyaparimi removed the waiting for review Issue/PR is waiting for a writer's review label Sep 27, 2021
@ramyaparimi ramyaparimi added the ready to merge This pull request is ready to merge label Sep 27, 2021
@lucascosti lucascosti enabled auto-merge (squash) September 27, 2021 21:38
@lucascosti lucascosti merged commit e7c0e79 into main Sep 27, 2021
@lucascosti lucascosti deleted the wincent/special-characters branch September 27, 2021 21:46
@github-actions
Copy link
Contributor

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content This issue or pull request belongs to the Docs Content team ready to merge This pull request is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants