kowshik-sundararajan / process

Generic process-related info that can guide an OSS project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Reference Process for OSS Projects on GitHub

This is an attempt to document similarities in in a number of our OSS projects hosted on GitHub.

Contents

Guidelines for New Contributors

Asking a Question

If the project doesn't have a public mailing list or a chat channel, post your question in the issue tracker.
See Posting an Issue for guidelines to follow when posting an issue.

Posting an Issue

  1. Do a search in the issue tracker to ensure the same issue has not been posted before.
  2. Craft a concise yet descriptive issue title.
    For example, if it is a bug report, the issue title should sound like a bug report instead of a feature request.

Submitting Your First PR

  1. Select an open issue from the issue tracker that you want to work on.

    If the issue list does not contain what you want to work on, post an issue (as described above).

  2. You are recommended to start with an issue specifically marked for new contributors. e.g. issues with the d.firstTimers label

    1. It is not required to ask for permission to work on an issue. But do check the issue discussion thread to see if there are active PRs for that issue. If someone is already working on that issue, perhaps your efforts are better spent on a different issue.
    2. If it seems the existing PRs for that issue are no longer active (e.g. no activity in the past few weeks), you can always post a message to check if anybody is still working on that issue.
  3. Fork the repo to your GitHub account. Clone the code to your computer.

  4. Set up the project in your computer. Pull the latest code from the master branch.

  5. Create a branch with the name as specified in the Naming Conventions: branch name.

  6. Fix the issue in the new branch.Remember to adhere to coding style and testing requirements of the project, as specified in the project documentation.

  7. When you think you are done with fix,

    1. Push the code to your fork.
    2. Create a PR.

    You may create a PR even before you are done with the fix, if you want to seek some early feedback from the dev team.

  8. After creating the PR, post a comment to inform the dev team that it is ready for review.
    If you do not get any response from the dev team within 1-2 days, keep posting reminders in the PR thread.

Submitting subsequent PRs

  • After you have managed to successfully merge one PR, you can gradually move to harder issues.
  • As harder issues take longer to finish, it is prudent to post a message in the issue to let others know that you are working on an issue.
  • Try to adopt Git Usage Guidelines.

Coding Standards

Naming Conventions

Branch name

format: issueNumber-some-keywords-from-issue-title

e.g. if the issue title is Error alert email has very long subject #5958,
your branch name can be 5958-error-alert-long-subject

PR title

format: IssueTitle #IssueNumber

e.g. Error alert email has very long subject #5958

Git Usage Guidelines

  • Commit each distinct change as a separate commit. You may have to squash trivial commits.

  • Write short descriptive commit message

    It's common practice to use the imperative mood when writing commit messages
    e.g. Add README.md rather than Added README.md or Adding README.md

  • Rebase your branch if the master branch has progressed since you started your branch.
    Alternatively (less preferred), you can merge the master branch to your branch.

Resources

  1. [Web article] How to Write a Git Commit Message

Contributing to this Repo

We welcome contributions. Just follow the process described above to submit your contributions as a PR.

About

Generic process-related info that can guide an OSS project

License:MIT License


Languages

Language:CSS 70.8%Language:HTML 19.3%Language:JavaScript 9.9%