Skip to content

chekeAditya/Android-Interview-Question

Repository files navigation

Repository contributors

About contributing guidelines

To help your project contributors do good work, you can add a file with contribution guidelines to your project repository's root, docs, or .github folder. When someone opens a pull request or creates an issue, they will see a link to that file. The link to the contributing guidelines also appears on your repository's contribute page. For an example of a contribute page, see github/docs/contribute.

https://docs.github.com/assets/images/help/pull_requests/contributing-guidelines.png

For the repository owner, contribution guidelines are a way to communicate how people should contribute.

For contributors, the guidelines help them verify that they're submitting well-formed pull requests and opening useful issues.

For both owners and contributors, contribution guidelines save time and hassle caused by improperly created pull requests or issues that have to be rejected and re-submitted.

You can create default contribution guidelines for your organization or user account. For more information, see "Creating a default community health file."

Tip: Repository maintainers can set specific guidelines for issues by creating an issue or pull request template for the repository. For more information, see "About issue and pull request templates."

Adding a CONTRIBUTING file

  1. On GitHub.com, navigate to the main page of the repository.

  2. Above the list of files, using the Add file drop-down, click Create new file.

    https://docs.github.com/assets/images/help/repository/create_new_file.png

  3. Decide whether to store your contributing guidelines in your repository's root, docs, or .github directory. Then, in the filename field, type the name and extension for the file. Contributing guidelines filenames are not case sensitive. Files are rendered in rich text format if the file extension is in a supported format. For more information, see "Working with non-code files."

    https://docs.github.com/assets/images/help/repository/new-file-name.png

    • To make your contributing guidelines visible in the repository's root directory, type CONTRIBUTING.
    • To make your contributing guidelines visible in the repository's docs directory, type docs/ to create the new directory, then CONTRIBUTING.
    • If a repository contains more than one CONTRIBUTING file, then the file shown in links is chosen from locations in the following order: the .github directory, then the repository's root directory, and finally the docs directory.
  4. In the new file, add contribution guidelines. These could include:

    • Steps for creating good issues or pull requests.
    • Links to external documentation, mailing lists, or a code of conduct.
    • Community and behavioral expectations.
  5. At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file. You can attribute the commit to more than one author in the commit message. For more information, see "Creating a commit with multiple co-authors."

    https://docs.github.com/assets/images/help/repository/write-commit-message-quick-pull.png

  6. Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is the default branch, you should choose to create a new branch for your commit and then create a pull request. For more information, see "Creating a new pull request."

    https://docs.github.com/assets/images/help/repository/choose-commit-branch.png

  7. Click Propose new file.

    https://docs.github.com/assets/images/help/repository/new-file-commit-button.png

Examples of contribution guidelines

If you're stumped, here are some good examples of contribution guidelines:

About

Interview Question on Java, Kotlin, Android Studio.

Topics

Resources

Stars

Watchers

Forks