From 675664f1c38e48573011de96d7ed805c947849f8 Mon Sep 17 00:00:00 2001 From: Larry Reid Date: Sat, 17 Apr 2021 10:22:45 -0700 Subject: [PATCH 1/2] Change default branch to `main` --- .github/workflows/ruby.yml | 4 ++-- CONTRIBUTING.md | 2 +- README.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index ffa9fc3ef..341cff1ee 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -2,9 +2,9 @@ name: Ruby on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: Lint: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dea9253bf..43d6f3ec9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -63,7 +63,7 @@ You may find the demo application useful for development and debugging. ### 7. Done! Somebody will shortly review your pull request and if everything is good, it will be -merged into the master branch. Eventually the gem will be published with your changes. +merged into the main branch. Eventually the gem will be published with your changes. ### Coding guidelines diff --git a/README.md b/README.md index dec13828d..c7eaaad70 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This is a new take on the `bootstrap_form` README. Please leave comments at: #52 # bootstrap_form -[![Build Status](https://travis-ci.org/bootstrap-ruby/bootstrap_form.svg?branch=master)](https://travis-ci.org/bootstrap-ruby/bootstrap_form) +[![Build Status](https://travis-ci.org/bootstrap-ruby/bootstrap_form.svg?branch=main)](https://travis-ci.org/bootstrap-ruby/bootstrap_form) [![Gem Version](https://badge.fury.io/rb/bootstrap_form.svg)](https://rubygems.org/gems/bootstrap_form) `bootstrap_form` is a Rails form builder that makes it super easy to integrate Bootstrap v4-style forms into your Rails application. It provides form helpers that augment the Rails form helpers. `bootstrap_forms`'s form helpers generate the form field and its label and all the Bootstrap mark-up required for proper Bootstrap display. `bootstrap_form` also provides: @@ -159,7 +159,7 @@ The current configuration options are: | Option | Default value | Description | |---------------------------|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `default_form_attributes` | `{role: "form"}` | version [2.2.0](https://github.com/bootstrap-ruby/bootstrap_form/blob/master/CHANGELOG.md#220-2014-09-16) added a role="form" attribute to all forms. The W3C validator will raise a **warning** on forms with a role="form" attribute. Set this option to `{}` to make forms be W3C compliant. | +| `default_form_attributes` | `{role: "form"}` | version [2.2.0](https://github.com/bootstrap-ruby/bootstrap_form/blob/main/CHANGELOG.md#220-2014-09-16) added a role="form" attribute to all forms. The W3C validator will raise a **warning** on forms with a role="form" attribute. Set this option to `{}` to make forms be W3C compliant. | Example: From 2273adbb8075a1d67657215c1610c807dc6a2e6c Mon Sep 17 00:00:00 2001 From: Larry Reid Date: Sat, 17 Apr 2021 11:02:12 -0700 Subject: [PATCH 2/2] Add GitHub token for Danger --- .github/workflows/ruby.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 341cff1ee..7cc801f7c 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -19,6 +19,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} run: | gem install danger + export DANGER_GITHUB_API_TOKEN=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 danger - name: Rubocop run: bundle exec rubocop --auto-correct