Coder Social home page Coder Social logo

call-for-code / practice-pull-requests Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 32.0 1.28 MB

This repository provides a sandbox to fork a Call for Code project repository and submit back your first pull request in GitHub. It's automated, so you can practice all you need.

License: Apache License 2.0

open-source github

practice-pull-requests's Introduction

Practicing GitHub pull requests

License Slack

If you're new to GitHub and want to get involved with an open source community like Call for Code, the process for adding code or text contributions to a particular project can be a bit daunting.

That's why we created this contribution practice repository. You can feel free to work through the important steps needed to make your first contribution.

How it works

Each Call for Code project typically has at four files in it that describe how new contributors can take part in the community.

  1. The README.md file. It's this document you're reading right now. It's the first file you look at to understand what a project is, what it does, and who's involved.

  2. The LICENSE file. While all open source code is free for anyone to inspect, it doesn't necessarily mean you can do what you want with it. This file establishes the terms of use, which normally are quite free.

  3. The CONTRIBUTING.md file. This file provides the rules of the road for contributing to a project. It defines any rules around the format for opening issues (reporting bugs) or submitting changes back to the project.

  4. The code itself (here represented by FIX_TYPO.md). Once you understand the three files above, you can then begin to contribute! In this repo, we invite you to test sending a pull request to this project. It will let you know whether you got it right or wrong.

Give it a try (using just a web browser)

  1. Log into GitHub if you haven't already.

  2. On the top right of this repository, click the "Fork" button to create a copy in your account.

    Fork

  3. Click on the FIX_TYPO.md in your copy.

  4. Click on the pencil icon in the edit bar for the file.

    Edit

  5. Fix the typo

    Fix

  6. Commit to a new branch in your fork by clicking "Propose changes".

    Commit

  7. Back on the main page of your fork, you should now see a message that your code is newer than the original repo.

    Fix

  8. Click "Contribute", then "Open pull request".

    Fix

  9. Review the changes which should look like this, then click "Create pull request". Make sure that it's comparing your branch with the original main branch in the upstream Call-for-Code repository, not the main branch of your fork.

    Note: The screenshot actually shows it comparing my main to the upstream main, but it should show krook-patch-1.

    Fix

  10. The pull request (proposed change for the main repository to accept) will then be opened.

  11. One of two things will happen, either the Mergify workflow will tell you were successful.

    Fix

  12. Otherwise it will tell you to try again.

    Fix

Next steps

After you've gotten the hang of things through this pull request practice repository, we encourage you to continue learning more about contributing to open source.

  1. Spend 4-6 hours on the free "Introduction to Open Source" class. It's intended for technical and non-technical folks alike to learn about open source, which is becoming a key skill in today's world. You can earn a badge and certificate after completion.

  2. Explore the existing Call for Code projects and make your first contribution! Anything from a small typo fix, to a language translation or documentation update, to an important code fix is welcome!

  3. If you want to create a new project and continue learning about best practices for using your own GitHub repository, check put the Project Sample. Folks use this to create Call for Code competition entries and start their own open source communities.

practice-pull-requests's People

Contributors

krook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

practice-pull-requests's Issues

There is a typo in FIX_TYPO.md

This issue exists in case you want to reference from within your pull request to see how GitHub links fixes to bug reports.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.