{"id":13412438,"url":"https://github.com/24pullrequests/24pullrequests","last_synced_at":"2025-04-10T13:56:31.978Z","repository":{"id":5477065,"uuid":"6673802","full_name":"24pullrequests/24pullrequests","owner":"24pullrequests","description":":christmas_tree: Giving back to open source for the holidays","archived":false,"fork":false,"pushed_at":"2024-10-28T08:44:58.000Z","size":14000,"stargazers_count":1680,"open_issues_count":45,"forks_count":521,"subscribers_count":83,"default_branch":"main","last_synced_at":"2024-10-29T14:15:13.426Z","etag":null,"topics":["community","holidays","open-source","opensource","pull-requests","rails","ruby"],"latest_commit_sha":null,"homepage":"https://24pullrequests.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/24pullrequests.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"24pullrequests","open_collective":"24pullrequests"}},"created_at":"2012-11-13T16:32:05.000Z","updated_at":"2024-10-28T08:44:32.000Z","dependencies_parsed_at":"2024-04-15T15:34:46.653Z","dependency_job_id":"2cb9ec88-67b1-4248-a791-f8433d28811c","html_url":"https://github.com/24pullrequests/24pullrequests","commit_stats":{"total_commits":4477,"total_committers":280,"mean_commits":"15.989285714285714","dds":0.7261559079740898,"last_synced_commit":"f3e93bff3ebea24ba6b431117e2084a12d77fc91"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/24pullrequests%2F24pullrequests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/24pullrequests%2F24pullrequests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/24pullrequests%2F24pullrequests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/24pullrequests%2F24pullrequests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/24pullrequests","download_url":"https://codeload.github.com/24pullrequests/24pullrequests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247424731,"owners_count":20936823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["community","holidays","open-source","opensource","pull-requests","rails","ruby"],"created_at":"2024-07-30T20:01:24.680Z","updated_at":"2025-04-10T13:56:31.957Z","avatar_url":"https://github.com/24pullrequests.png","language":"Ruby","readme":"# 24 Pull Requests\n\n\u003e \u0026#127876; Giving back little gifts of code\n\n24 Pull Requests is a yearly initiative to encourage contributors around the world to send 24 pull requests between December 1st and December 24th.\n\nThis is the site to help promote the project, highlighting why, how and where to send your pull requests.\n\n![Happy Holidays](https://user-images.githubusercontent.com/1060/143905510-a212439c-b452-4eb8-b87a-67adcc3418e2.png)\n\n## Table of Contents\n\n- [24 Pull Requests](#24-pull-requests)\n  - [Table of Contents](#table-of-contents)\n  - [Get started](#get-started)\n  - [Contributors](#contributors)\n  - [Development](#development)\n    - [Getting Started](#getting-started)\n      - [Installing a Local Server](#installing-a-local-server)\n      - [Installing using docker](#installing-using-docker)\n    - [Tests](#tests)\n    - [Contributing](#contributing)\n    - [Translations](#translations)\n    - [Code of Conduct](#code-of-conduct)\n  - [Copyright](#copyright)\n\n## Get started\n\n* [Explore projects to help](https://24pullrequests.com/projects)\n* [Submit your project to get help](https://24pullrequests.com/projects/new)\n\n## Contributors\n\nOver hundreds of different people have contributed to the project, you can see them all here: https://github.com/24pullrequests/24pullrequests/graphs/contributors\n\n## Development\n\nThe source is hosted at [GitHub](https://github.com/24pullrequests/24pullrequests).\n\nYou can report issues/feature requests on [GitHub Issues](https://github.com/24pullrequests/24pullrequests/issues). You can use [GitHub Discussions](https://github.com/24pullrequests/24pullrequests/discussions) to ask questions, follow announcements, and to propose ideas for the 24pullrequests project. Follow the project on Mastodon [@24pullrequests](https://mastodon.social/@24pullrequests).\n\nThese instructions are for working on the the [24pullrequests.com](https://24pullrequests.com) website. If you just want to be a developer who contributes PRs during the holidays, you don't need to follow these instructions! Go to https://24pullrequests.com and get involved there.\n\n### Getting Started\n\nWant to hack on the website? Awesome!\n\nNew to Ruby? No worries! You can follow these instructions to install a local server, or you can use the included Vagrant setup.\n\n#### Installing a Local Server\n\nFirst things first, you'll need to install Ruby 3.3.6. I recommend using the excellent [rbenv](https://github.com/rbenv/rbenv),\nand [ruby-build](https://github.com/rbenv/ruby-build).\n\n```bash\nrbenv install 3.3.6\nrbenv global 3.3.6\n```\n\nNext, you'll need to make sure that you have PostgreSQL installed. This can be done easily on macOS using [Homebrew](https://brew.sh) or by using [https://postgresapp.com](https://postgresapp.com). Please see these [further instructions for installing Postgres via Homebrew](http://www.mikeball.us/blog/setting-up-postgres-with-homebrew/).\n\n```bash\nbrew install postgres\nbrew install chrome-cli\n```\n\nOn Debian-based Linux distributions you can use apt-get to install Postgres:\n\n```bash\nsudo apt-get install postgresql postgresql-contrib libpq-dev\n```\n\nOn Windows, you can use the [Chocolatey package manager](https://chocolatey.org/) to install Postgres:\n\n```bash\nchoco install postgresql\n```\n\nClone this repository:\n\n```bash\ngit clone git@github.com:24pullrequests/24pullrequests.git\n```\n\nNow, let's install the gems from the `Gemfile` (\"Gems\" are synonymous with libraries in other\nlanguages).\n\n```bash\ngem install bundler \u0026\u0026 rbenv rehash\nbundle install\n```\n\nOnce all the gems are installed, we'll need to create the databases and tables. Rails makes this easy through the use of \"Rake\" tasks.\n\n```bash\nbundle exec rake db:create:all\nbundle exec rake db:migrate\n```\n\nAnd we can also add some sample data with the **seed** task.\n\n```bash\nbundle exec rake db:seed\n```\n\nIf you are working on anything related to the email-generation code, you can use [MailCatcher](https://github.com/sj26/mailcatcher).\nSince we use Bundler, please read the [following](https://github.com/sj26/mailcatcher#bundler) before using MailCatcher.\n\nAlmost there! Now all we have to do is start up the Rails server and point our browser to \u003chttp://localhost:3000\u003e\n\n```bash\nbundle exec rails s\n```\n#### Installing using docker\n\nTo streamline the installation process and avoid manual setup, you can use Docker and Docker Compose.\n\nBefore you begin, ensure you have the following installed:\n* [Docker](https://docs.docker.com/get-docker/)\n* [Docker Compose](https://docs.docker.com/compose/install/)\n\nClone this repository:\n\n```bash\ngit clone git@github.com:24pullrequests/24pullrequests.git\ncd 24pullrequests\n```\n\nBuild the docker image using the command below. This will install all the dependencies and create the database.\n\n```bash\n# Build the Docker image and install dependencies\ndocker compose build\n```\n\nOnce the image is built, you can start the server using the command below.\n\n```bash\n# Pulls PostgreSQL, creates/migrates the database, and starts the server\ndocker compose up\n```\nThe server is up and available at: http://localhost:3000\n\n### Tests\n\nStandard RSpec/Capybara tests are used for testing the application. The tests can be run with `bundle exec rake`.\n\nYou can set up the test environment with `bundle exec rake db:test:prepare`, which will create the test DB and populate its schema automatically. You don't need to do this for every test run, but it will let you easily keep up with migrations. If you find a large number of tests are failing you should probably run this.\n\nIf you are using the [omniauth](https://github.com/omniauth/omniauth) environment variables (`GITHUB_KEY`, `GITHUB_SECRET`) for **another** project, you will need to either\n * unset them before running your tests or\n * reset the omniauth environment variables after creating a GitHub (omniauth) application for this project\n\nas it will use it to learn more about the contributors and for pull requests.\n\nIf you are using the Docker setup, you can run the tests:\n\n* Overall tests: `docker compose run app bundle exec rake`\n* Specific tests: `docker compose run app bundle exec rake SPEC=./spec/path/to/test_spec.rb`\n* Specific lines: `docker compose run app bundle exec rake SPEC=./spec/path/to/test_spec.rb:123`\n\n### Contributing\n\nWe are always looking for people to contribute! To find out how to help out, have a look at our [Contributing Guide](CONTRIBUTING.md).\n\n### Translations\n\n24 Pull Requests is available in twenty languages. Translations are [managed on Transifex](https://www.transifex.com/24-pull-requests/24-pull-requests/). Authentication is required to use Transifex. If you prefer to edit the translations directly you can use the [standard Rails i18n framework](https://guides.rubyonrails.org/i18n.html#organization-of-locale-files). To get started:\n\n* Fork the project.\n* Create a copy of `config/locales/en.yml` within the locales folder.\n* Amend the first line with the [correct character set](https://www.w3.org/International/O-charset-lang.html) you'll be translating to.\n* Translate the strings and submit a pull request for the new translation.\n\n### Code of Conduct\n\nPlease note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.\n\n## Copyright\n\nCopyright MIT © 2021 Andrew Nesbitt. See [LICENSE](https://github.com/24pullrequests/24pullrequests/blob/main/LICENSE) for details.\n","funding_links":["https://github.com/sponsors/24pullrequests","https://opencollective.com/24pullrequests"],"categories":["Ruby","Happy Exploring 🤘","open-source"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F24pullrequests%2F24pullrequests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F24pullrequests%2F24pullrequests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F24pullrequests%2F24pullrequests/lists"}