Skip to content

Commit

Permalink
Fix Markdownbear and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robbyoconnor committed Jan 4, 2017
1 parent d2106b4 commit e3808de
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .coafile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ javascript_strictness = implied

[md]
bears = MarkdownBear
files = **.md, **.markdown
files = **.md
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ Thank you for your pull request! Please read and understand everything below

Please acknowledge that you have read and understood each of the following before submitting your pull request.

<!-- Ignore MarkdownBear -->
# _Do not_ delete any text other than where you are instructed.

<!-- Stop ignoring MarkdownBear -->

**Maintainers: If any of these are left unchecked, do not merge.**

Expand Down
45 changes: 26 additions & 19 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,56 @@
#Contributing to [gci16.fossasia.org](http://gci16.fossasia.org/)
# Contributing to [gci16.fossasia.org](http://gci16.fossasia.org/)

## Code practices

Please help us follow the best practice to make it easy for the reviewer as well as the contributor.
We want to focus on the code quality more than on managing pull request ethics.

* [People before code](http://hintjens.com/blog:95): If any of the following rules are violated, the pull-requests must not be rejected. This is to create an easy and joyful onboarding process for new programmers and first-time contributors.
- [People before code](http://hintjens.com/blog:95): If any of the following rules are violated, the pull-requests must not be rejected. This is to create an easy and joyful onboarding process for new programmers and first-time contributors.

* Single commit per pull request and name the commit as something meaningful, example: `Adding <-your-name-> in students/mentors/blogs section`.
- Single commit per pull request and name the commit as something meaningful, example: `Adding <-your-name-> in students/mentors/blogs section`.

* Reference the issue numbers in the commit message if it resolves an open issue. Follow the pattern ``` Fixes #<issue number> <commit message>```
- Reference the issue numbers in the commit message if it resolves an open issue. Follow the pattern `Fixes #<issue number> <commit message>`

* Provide the link to live `gh-pages` from your forked repository or relevant screenshot for easier review.
- Provide the link to live `gh-pages` from your forked repository or relevant screenshot for easier review.

* The PR should also include a link to the Google Code-In Task instance (if applicable) to fasten the review process both sides.
- The PR should also include a link to the Google Code-In Task instance (if applicable) to fasten the review process both sides.

* In case there are multiple commits on the PR, the commit author should squash them.
- In case there are multiple commits on the PR, the commit author should squash them.

* Pull Request older than 4 days with no response from the contributor shall be marked closed.
- Pull Request older than 4 days with no response from the contributor shall be marked closed.

* Avoid duplicate PRs, if need be comment on the older PR with the PR number of the follow-up (new PR) and close the obsolete PR yourself.
- Avoid duplicate PRs, if need be comment on the older PR with the PR number of the follow-up (new PR) and close the obsolete PR yourself.

For further discussions & communications, please join us on FOSSASIA Slack at #gci channel, link: https://fossasia.slack.com/messages/gci.
For further discussions & communications, please join us on FOSSASIA Slack at #gci channel, link: <https://fossasia.slack.com/messages/gci>.
You can get an invite [here](http://fossasia-slack.herokuapp.com/).

Also, we have a [team of maintainers](maintainers.md) to whom you can write with `@fossasia/gci16-maintainers`
if your pull-request goes unnoticed. They may have time.

## Tutorials

### Command Line Tutorials
* [OpenHatch Missions](https://openhatch.org/missions/)

- [OpenHatch Missions](https://openhatch.org/missions/)

### Git/Github Tutorials

### Git: Introduction
* [Git - the simple guide (awesome)](http://rogerdudler.github.io/git-guide/)
* [An Intro to Git and GitHub for Beginners (Tutorial)](http://product.hubspot.com/blog/git-and-github-tutorial-for-beginners)

- [Git - the simple guide (awesome)](http://rogerdudler.github.io/git-guide/)
- [An Intro to Git and GitHub for Beginners (Tutorial)](http://product.hubspot.com/blog/git-and-github-tutorial-for-beginners)

#### Github: Introduction
* [An Intro to Git and GitHub for Beginners (Tutorial)](http://product.hubspot.com/blog/git-and-github-tutorial-for-beginners)
* [Github Hello World](https://guides.github.com/activities/hello-world/)
* [Changing a commit message](https://help.github.com/articles/changing-a-commit-message/)

- [An Intro to Git and GitHub for Beginners (Tutorial)](http://product.hubspot.com/blog/git-and-github-tutorial-for-beginners)
- [Github Hello World](https://guides.github.com/activities/hello-world/)
- [Changing a commit message](https://help.github.com/articles/changing-a-commit-message/)

### Merge Commits
* [How To Manually Fix Git Merge Conflicts (video)](https://www.youtube.com/watch?v=g8BRcB9NLp4)

- [How To Manually Fix Git Merge Conflicts (video)](https://www.youtube.com/watch?v=g8BRcB9NLp4)

#### Squash Commits
* [Git Rebase (squash last commit)](https://www.youtube.com/watch?v=qh9KtjfjzCU)
* [Squash Commits with Git](https://davidwalsh.name/squash-commits-git)

- [Git Rebase (squash last commit)](https://www.youtube.com/watch?v=qh9KtjfjzCU)
- [Squash Commits with Git](https://davidwalsh.name/squash-commits-git)
51 changes: 28 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# gci16.fossasia.org

[![Join the chat at https://gitter.im/fossasia/gci16.fossasia.org](https://badges.gitter.im/fossasia/gci16.fossasia.org.svg)](https://gitter.im/fossasia/gci16.fossasia.org?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/fossasia/gci16.fossasia.org.svg)]
(https://travis-ci.org/fossasia/gci16.fossasia.org)
[![Build Status](https://travis-ci.org/fossasia/gci16.fossasia.org.svg)](https://travis-ci.org/fossasia/gci16.fossasia.org)

The student site for GCI 2016 Students.

# Contributing

Thoroughly read our [contributing guide](https://github.com/fossasia/gci16.fossasia.org/blob/gh-pages/CONTRIBUTING.md) before sending in your Pull Requests. Happy Contributing!

# Adding a mentor
Expand All @@ -24,11 +24,12 @@ To add a mentor open the file `mentors.yml` in `_data` folder and please maintai
```

**IMPORTANT:**

- All images must be optimized before uploaded to the repo via commit or PR. You may use any image optimizer of your choice.
- The images should be 240 x 240 pixels.
- Adding Facebook, Twitter, Github, etc. is not obliged. But if you do not want to include social media accounts, please do not provide empty fields like `facebook: `. Ask the mentors if you do not know their accounts.
- If you do not know the mentors' location, ask them to go to the official FOSSASIA geolocation website https://fossasia.github.io/geolocation and give you their latitude and longitude.
- Avoid using contractions such as _can't, don't,_ etc. If there is no choice (e.g. the name has single quote mark) put double quotes (`"`) around that part.
- Adding Facebook, Twitter, Github, etc. is not obliged. But if you do not want to include social media accounts, please do not provide empty fields like `facebook:`. Ask the mentors if you do not know their accounts.
- If you do not know the mentors' location, ask them to go to the official FOSSASIA geolocation website <https://fossasia.github.io/geolocation> and give you their latitude and longitude.
- Avoid using contractions such as *can't, don't,* etc. If there is no choice (e.g. the name has single quote mark) put double quotes (`"`) around that part.
- Try to use abbreviations in your name wherever possible, i.e. restrict it to 13 letters (including spaces), otherwise it might be truncated automatically. However, the name will be displayed completely when you hover on it on the website.

# Adding yourselves to student section
Expand All @@ -47,12 +48,13 @@ To add yourself to student section you need to open the file `students.yml` in `
```

**IMPORTANT:**

- All images must be optimized before uploaded to the repo via commit or PR. You may use any image optimizer of your choice.
- The images should be 240 x 240 pixels.
- Adding Facebook, Twitter, Github, etc. is not obliged. But if you do not want to include your social media accounts, please do not provide empty fields like `facebook: `.
- To find your lattitude and longitude go to the official FOSSASIA geolocation website https://fossasia.github.io/geolocation.
- Adding Facebook, Twitter, Github, etc. is not obliged. But if you do not want to include your social media accounts, please do not provide empty fields like `facebook:`.
- To find your lattitude and longitude go to the official FOSSASIA geolocation website <https://fossasia.github.io/geolocation>.
- Avoid changing the whole file just to add yourself. Line endings should not change.
- Avoid using contractions such as _can't, don't,_ etc. If there is no choice (e.g. your name has single quote mark) put double quotes (`"`) around that part.
- Avoid using contractions such as *can't, don't,* etc. If there is no choice (e.g. your name has single quote mark) put double quotes (`"`) around that part.
- Try to use abbreviations in your name wherever possible, i.e. restrict your name in 13 letters (including spaces), otherwise your name might be truncated automatically. However, your name will be displayed completely when you hover on it on the website.

# Blog Post
Expand All @@ -68,6 +70,7 @@ To add your blog post, you need to open the file `blogs.yml` in `_data` folder.
```

**IMPORTANT:**

- The image should be placed inside `images/blogs` folder, and `your_image` should be the file's name, for example `mypost.png`. Make sure that the images are in 16:9 aspect ratio.
- If you do not provide a blog image, a default image will be displayed.
- Adding article and article_link is optional, unless your task requires it.
Expand All @@ -85,6 +88,7 @@ maintain the following format to enter your logo in this website:
and place your logo in `/images/logos` folder and `your_image` should be the name of your file.

**IMPORTANT:**

- Please resize your image to 400px x 400px (w x h) OR in relative proportion before uploading. We don't want logos that have high dimensions or large size.
- The students uploading the images of dimensions below those mentioned above, would not be accepted as they would disturb the UX of the site. Please make the logo in the proportion to the dimensions mentioned above, crop/resize by any softwares or online tools, upload, and create a pull request.

Expand All @@ -101,8 +105,9 @@ The website shows an ism slider which has slides, to input another slide please
```

**IMPORTANT:**

- Put the images in the `/images/` folder. All images must be optimized before uploaded to the repo via commit or PR, you may use any image optimizer of your choice.
- Adding `action` and `actionURL` is not obliged. If you do not add, please do not provide empty fields like `action: `. If you do, please provide both `action` and `actionURL`.
- Adding `action` and `actionURL` is not obliged. If you do not add, please do not provide empty fields like `action:`. If you do, please provide both `action` and `actionURL`.
- Try to equalize the length of `exp-1`, `exp-2`, and `exp-3` in combination with `action`.

# Finding Support
Expand All @@ -112,20 +117,20 @@ Probably the easiest way to seek help is to comment on your Task instance. Pleas
You can instead participate in various chatrooms where you can ask both students and mentors for help. Here are few links to chatrooms that you could join for support:

1. Slack
* Visit [here](http://fossasia-slack.herokuapp.com/) to get invitation to join the chatrooms of FOSSASIA in slack.
* Once you get the invitations in your mail, sign into the [slack](http://fossasia.slack.com)
and join the [#gci](https://fossasia.slack.com/messages/gci/) chatroom.
* And now you can share your queries with all the mentors and students of FOSSASIA
2. Gitter
* Visit [here](https://gitter.im/) and sign in with your GitHub account.
* After thats it simply joining the chatrooms by clicking on **Join Room**
* Here are some links to some of project's chatroom:
* [Open Event](https://gitter.im/fossasia/open-event)
* [Open Event WebApp](https://gitter.im/fossasia/open-event-webapp)
* [Open Event Android](https://gitter.im/fossasia/open-event-android)
* [loklak](https://gitter.im/loklak/loklak)
3. Google Groups
* Visit [here](https://groups.google.com/forum/#!forum/fossasia) and join the
2. Visit [here](http://fossasia-slack.herokuapp.com/) to get invitation to join the chatrooms of FOSSASIA in slack.
3. Once you get the invitations in your mail, sign into the [slack](http://fossasia.slack.com)
and join the [#gci](https://fossasia.slack.com/messages/gci/) chatroom.
4. And now you can share your queries with all the mentors and students of FOSSASIA
5. Gitter
6. Visit [here](https://gitter.im/) and sign in with your GitHub account.
7. After thats it simply joining the chatrooms by clicking on **Join Room**
8. Here are some links to some of project's chatroom:
- [Open Event](https://gitter.im/fossasia/open-event)
- [Open Event WebApp](https://gitter.im/fossasia/open-event-webapp)
- [Open Event Android](https://gitter.im/fossasia/open-event-android)
- [loklak](https://gitter.im/loklak/loklak)
9. Google Groups
10. Visit [here](https://groups.google.com/forum/#!forum/fossasia) and join the
mailing list.

You can find more information about different mailing lists and chatrooms for
Expand Down
22 changes: 8 additions & 14 deletions maintainers.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,36 @@
Maintainers
===========
# Maintainers

You can view a [team of maintainers for repository](https://github.com/orgs/fossasia/teams/gci16-maintainers).

Responsibilities of Maintainers
-------------------------------
## Responsibilities of Maintainers

- Do not frustrate contributors: Find out what they need, help them help themselves.
- Guide new contributors. They usually do not comply to the rules and forcing them onto them can be frustrating.
- Be empathic: Better a bad PR with follow-up PRs than a closed PR and a rejected person.
- Merge pull-requests.
- Make sure people understand that you can not accept their GCI task.

Not a responsibilty of a maintainer
-----------------------------------
## Not a responsibilty of a maintainer

- review pull-requests: Anyone can do this, it does not need a maintainer.
- reject pull-requests:
- Just do not merge them if you do not like them.
- If they get old, they are closed.
- Merge them and revert them to make the requester to a contributor in the future.

Abilities of Maintainers
------------------------
## Abilities of Maintainers

- Close old pull-requests, see [CONTRIBUTING.md](CONTRIBUTING.md)
- Remove merged branches.
- Maintainers can merge their own pull-requests only if they waited for one day.

Notes for Mantainers
--------------------
## Notes for Mantainers

- If a PR edits index.html, it will fail for security. To remove that error, add ```<!-- Safe Edit -->``` somewhere in the PR body. See [#349](https://github.com/fossasia/gci16.fossasia.org/issues/349) for more info.
- If a PR edits index.html, it will fail for security. To remove that error, add `<!-- Safe Edit -->` somewhere in the PR body. See [#349](https://github.com/fossasia/gci16.fossasia.org/issues/349) for more info.
- If you want to merge a PR but the commits aren't squashed, please use Github squash and merge function rather than merging without squashing. Check [#402](https://github.com/fossasia/gci16.fossasia.org/issues/402) for more info.
- If Travis is failing, check **_WHY_** -- if for example jekyll reports a syntax error and won't build, **_do not_** merge it. There are few (if any) circumstances where a failing Travis build should be merged.
- If Travis is failing, check ***WHY*** -- if for example jekyll reports a syntax error and won't build, ***do not*** merge it. There are few (if any) circumstances where a failing Travis build should be merged.
- After the PR is merged, update or close the refered issue.

Further Reading
---------------
## Further Reading

[Optimistic Merging](http://hintjens.com/blog:106)

0 comments on commit e3808de

Please sign in to comment.