Skip to content

Conversation

@addiegupta
Copy link
Contributor

@addiegupta addiegupta commented Dec 11, 2018

Fixes #729

Changes: There is a section for First Time Contributors to read the ContributionHelp.md but there is no such file. I have added the file and created the required link in README.md

Screenshots for the change:

README.md: Before, without link

original contribution readme

README.md: After, with link

new readme

ContributionHelp.md: New file

contributionhelp

@addiegupta
Copy link
Contributor Author

This is my first pull request so please let me know if I have done something incorrectly

@iamareebjamal
Copy link
Member

Hi, thanks for the PR. We'll review it shortly, for now, please rename the markdown file to CONTRIBUTING.md

@liveHarshit
Copy link
Member

@addiegupta Please squash the commits. One PR should have one commit only.

@iamareebjamal
Copy link
Member

Squashing comes after changes are accepted, or else it becomes difficult for the contributor to squash, do change, and repeat

CONTRIBUTING.md Outdated

You’ll now have a local copy of your version of that repository.

*For further details on how to contribute as a first time contributer visit [Contribute to someone's repository](http://kbroman.org/github_tutorial/pages/fork.html)*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

External links are not recommended as they can be deleted later.

CONTRIBUTING.md Outdated

#### Add a connection to the original owner’s repository.

`$ git remote add foss_remote git://github.com/fossasia/open-event-android`
Copy link
Member

@iamareebjamal iamareebjamal Dec 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`$ git remote add foss_remote git://github.com/fossasia/open-event-android`
`$ git remote add upstream git@github.com:fossasia/open-event-android`

CONTRIBUTING.md Outdated

`$ git remote add foss_remote git://github.com/fossasia/open-event-android`

Note the distinction between git@github.com: in the first case and git://github.com/ in the second case. I’m not sure why these need to be the way they are, but that’s what works for me.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove, because both will work. The first syntax is just doing via SSH. Also, I'd recommend to change both commands to HTTPS versions as that's what will work for beginners who might not have added their SSH keys to Github

CONTRIBUTING.md Outdated

Also note 'foss_remote' does not need to be specific. You could very well choose:

`$ git remote add repo_nickname git://github.com/fossasia/open-event-android`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since, we are not teaching git here, we can skip details and just give instructions

CONTRIBUTING.md Outdated

error: failed to push some refs to 'git@github.com:username/the_repo'

Then try `git push origin HEAD:gh-pages` (see stackoverflow.).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a misleading command

CONTRIBUTING.md Outdated

Go into the directory for the project and type:

`$ git pull foss_remote master`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First checkout to development

CONTRIBUTING.md Outdated

Go into the directory for the project and type:

`$ git pull foss_remote master`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`$ git pull foss_remote master`
`$ git pull upstream development --rebase

CONTRIBUTING.md Outdated

Now push them back to your github repository.

`$ git push`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make them push a single branch to single remote

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review! I am currently implementing these changes

@addiegupta addiegupta force-pushed the development branch 5 times, most recently from d4f788d to 2565391 Compare December 16, 2018 11:39
@addiegupta
Copy link
Contributor Author

addiegupta commented Dec 17, 2018

I have updated the changes and updated the branch. Please have a look.

@iamareebjamal iamareebjamal changed the title fix: added ContributionHelp.md file and a link to it in README.md docs: Add CONTRIBUTING.md file and a link to it in README.md Dec 17, 2018
@iamareebjamal iamareebjamal changed the title docs: Add CONTRIBUTING.md file and a link to it in README.md docs: Add CONTRIBUTING.md file link it to README.md Dec 17, 2018
@iamareebjamal iamareebjamal merged commit 760c7da into fossasia:development Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants