-
Notifications
You must be signed in to change notification settings - Fork 55
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
Update Skeleton Instructions for Development Guide Project Setup #97
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but with one small item noted.
Let's get @mcdonnnj's review before merging. |
project_setup/README.md
Outdated
helper tool included in the [`scripts`](scripts) directory can quickly setup | ||
a new local repository. Once you've cloned and configured the repository | ||
to your local machine, it can be published to a repository created on GitHub. | ||
The [`gh-skeleton`](https://github.com/cisagov/gh-skeleton) GitHub CLI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we link out to the gh-skeleton
repository in multiple places. Please switch this to a reference-style link and update all uses of "gh-skeleton" to both use this link when appropriate and be formatted consistently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project_setup/README.md
Outdated
@@ -19,7 +18,7 @@ branch protection - [see our branch protection guide for details](branch-protect | |||
## Contents ## | |||
|
|||
- [Adding a skeleton configuration to an existing repository](#adding-a-skeleton-configuration-to-an-existing-repository) | |||
- [Using the skeleton tool to start a new repository 💀🛠](#using-the-skeleton-tool-to-start-a-new-repository-) | |||
- [Using the gh-skeleton `gh` extension to start a new repository 💀🛠](#using-the-gh-skeleton-gh-extension-to-start-a-new-repository-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The emoji no longer make sense.
- [Using the gh-skeleton `gh` extension to start a new repository 💀🛠](#using-the-gh-skeleton-gh-extension-to-start-a-new-repository-) | |
- [Using the gh-skeleton `gh` extension to start a new repository](#using-the-gh-skeleton-gh-extension-to-start-a-new-repository-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project_setup/README.md
Outdated
```bash | ||
./skeleton list | ||
gh skeleton list | ||
``` | ||
|
||
```console |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please combine these codeblocks and ensure the sample output aligns with the output of the extension. Please also update the lead-in formatting like so:
```console
$ gh skeleton list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project_setup/README.md
Outdated
|
||
```console | ||
./skeleton clone [options] <parent-repo-name> <new-repo-name> | ||
gh skeleton clone [options] <parent-repo-name> <new-repo-name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gh skeleton clone [options] <parent-repo-name> <new-repo-name> | |
$ gh skeleton clone [options] <parent-repo-name> <new-repo-name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mcdonnnj , I received 2 linter failed errors for adding the dollar sign prompt, it complains that expected output is required. I worked with Michael on this solution to add the following:
$ gh skeleton clone [options] <parent-repo-name> <new-repo-name>
# Expected output:
# Cloning into 'new-repo-name' .
Alternatively we may need to omit the dollar sign prompt. What do you suggest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project_setup/README.md
Outdated
|
||
```console | ||
./skeleton clone [options] <parent-repo-name> <new-repo-name> | ||
gh skeleton clone [options] <parent-repo-name> <new-repo-name> | ||
``` | ||
|
||
For example, to create a project based on `skeleton-ansible-role` named | ||
`ansible-role-quantum-rng` in your local `~/projects` directory: | ||
|
||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```bash | |
```console |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1,12 +1,14 @@ | |||
# Skeletonize an Existing Repository # | |||
|
|||
Skeletonizing a repository standardizes our development setup and environment, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skeletonizing a repository standardizes our development setup and environment, | |
Skeletonizing a repository standardizes our development setup and environment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to keep the repository updated and standardized. | ||
and enables our [Lineage GitHub Action](https://github.com/cisagov/action-lineage/) | ||
to keep the repository updated and standardized. The purpose of the | ||
instructions here is to describe how to skeletonize an existing non-skeletonized |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instructions here is to describe how to skeletonize an existing non-skeletonized | |
instructions here are to describe how to skeletonize an existing non-skeletonized |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. [Add the skeleton as a remote](#add-a-skeleton-as-remote) to the | ||
non-skeletonized repository | ||
1. [Add the skeleton as a remote](#add-the-skeleton-as-a-remote) to the | ||
existing non-skeletonized repository | ||
1. Pull with `--allow-unrelated-histories` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Pull with `--allow-unrelated-histories` | |
1. Pull with `git pull --allow-unrelated-histories skeleton-parent` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To see a list of available skeletons, use the `skeleton list` command or see | ||
First, decide which of the available skeletons best fits your | ||
existing non-skeletonized repository. To see a list of available | ||
skeletons, use the `gh skeleton list` command or see | ||
the [list of skeletons](skeleton-list.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we able to use a link fragment here to link to the appropriate section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mcdonnnj , Can you please elaborate regarding the fragment link required ? From my understanding the 'gh skeleton list' command is to be run at the command line. And the skeleton-list link goes to skeleton-list.md document.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit will remove out-dated skeleton tool instructions. Previously the documentation was using a legacy skeleton tool. Now the instructions will reflect using the gh CLI skeleton tool extension. Links have been updated along with steps to make a repository from a skeleton.
Updated naming of gh tool to be more accurate verbiage from gh CLI extension to gh skeleton. Updated link to skeleton AWS lambda python which was linked to archived skeleton AWS lambda.
Update naming convention to GitHub CLI 'gh' Extension Co-authored-by: Shane Frasier <[email protected]>
Co-authored-by: Shane Frasier <[email protected]>
Co-authored-by: Shane Frasier <[email protected]>
This commit updates Development guide Readme and Skeletonize existing repository according to requested changes for wording, grammar, replacing text and delete emoji.
This commit updates Development guide links using a reference style for gh-skeleton links in the Readme file and directly links to the skeleton list for skeletonize existing repository file.
This commit fixes some fragment links that were not working.
Updates to add reference links, fragment link, and text changes to skeleton list file.
command promt dollar sign text change
Adding reference link to maintain consistency of link references globally for gh-skeleton extension tool.
Referenced skeleton list required update.
add back whitespace to reflect what the user should expect to see in terminal output.
Redo changes to formatting to reflect what the user should expect to see in terminal output.
8513d28
to
201b4c7
Compare
🗣 Description
This PR will update the Documentation Guide Project Setup markdown files instructions to create new skeleton repositories or skeletonize existing repositories.
💭 Motivation and context
These updates are required for uniformity of the cisagov skeleton updates to create and update repositories and to advise on the latest skeletonize tools used.
✅ Pre-approval checklist
to reflect the changes in this PR.
✅ Pre-merge checklist
✅ Post-merge checklist