Skip to content

Instantly share code, notes, and snippets.

@ashx3s
Last active March 6, 2023 00:30
Show Gist options
  • Save ashx3s/178d16cda841f74d60deb226626083c9 to your computer and use it in GitHub Desktop.
Save ashx3s/178d16cda841f74d60deb226626083c9 to your computer and use it in GitHub Desktop.
Pull Request Achievement

Pull Request Achievement

Goal: Set up prettier and or eslint in a feature branch.

Instructions

Use your global gitignore achievement repo or a new repo

  • Prep work: add an html file and quickly write some html. Purposefully make it a little messy
  1. Create a new branch with git checkout -b branch-name (name it develop, dev, or a logical feature branch title)
  2. Make 5 git commits with descriptive commit messages
    • these commits should be steps taken to configure prettier and or eslint
    • points will be deducted for messages like "tweaks"
    • The commits should all be working towards a goal like setting up a header or other feature
  3. Open a Pull Request in Github and merge the changes down to your main repo
    • PR Title should indicate the goal that all the commits are working towards
    • PR description should give a bit more detail (but not just list out what the commits are in a list)
  4. Merge your Pull Request to Main
  5. In vscode, switch back to main with git checkout main and run git pull
  6. Your code should now be set to format on save!
  7. Use your formatter to clean up that html file and push it to github

Rubric

Proof of Work 2.5pts

  • Commits made in a branch and merged down to main
  • Files changed in commits reflect what's described in the commit message

Exit Ticket 2.5pts

  • Git commit message quality
  • Pull Request title and description quality

Submission

  • Submit a link to your github repo and a zipped folder of your repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment