Commit Graph

113 Commits

Author SHA1 Message Date
Varun Sharma
80f7dcfdc2 ci: add GitHub token permissions 2022-05-21 19:23:41 -07:00
Rafael Mendonça França
acf4816994
Stop autoclosing of PRs
While the idea of cleaning up the the PRs list by nudging reviewers
with the stale message and closing PRs that didn't got a review in time
cloud work for the maintainers, in practice it discourages contributors
to submit contributions.

Keeping PRs open and not providing feedback also doesn't help with
contributors motivation, so while I'm disabling this feature of the bot
we still need to come up with a process that will help us to keep
the number of PRs in check, but celebrate the work contributors already
did instead of ignoring it, or dismissing in the form of a "stale"
alerts, and automatically closing PRs.
2022-05-11 16:42:57 +00:00
Jean Boussier
ac8fd700bb
Merge pull request #44985 from jonathanhefner/client9-misspell-immutable-url
Use immutable URL for arbitrary code
2022-05-09 10:01:41 +02:00
Jonathan Hefner
e3e27ebb83 Remove github/codespaces-precache action
This action was deprecated on 2022-04-22.  Its repo has since been
deleted, causing the build to fail:

https://github.com/rails/rails/runs/6162755138?check_suite_focus=true#step:1:31

Note that the current way to configure prebuilds appears to be through
GitHub's web UI:

https://docs.github.com/en/codespaces/prebuilding-your-codespaces/configuring-prebuilds
2022-04-29 15:09:34 -05:00
Jonathan Hefner
4e2df67adc Use immutable URL for arbitrary code
If the `client9/misspell` repo is compromised, an attacker could control
the contents of `install-misspell.sh`.  Since we execute that file
directly, we should use a URL that guarantees its contents will not
change.

Note that, at the time of writing, the last commit to `client9/misspell`
was in March 2018 (client9/misspell@c0b55c8239),
so the code appears to be stable.

Also, although using a tag would be prettier than using a hash, the
repo's last commit is after its most recent tag (`v0.3.4`).
2022-04-29 14:22:01 -05:00
Baoshuo Ren
95253b2582
chore: remove git.io
see: https://github.blog/changelog/2022-04-25-git-io-deprecation/
2022-04-26 21:01:32 +08:00
Kaíque Kandy Koga
3dfe1b8d40 Use actions/checkout@v3 2022-03-30 23:35:04 -03:00
John Bampton
f5117c792f Update codespell Action to Python 3.10 2022-03-29 16:50:43 +10:00
Eugene Kenny
3ccee2c646 Update stale issue comment to mention 7-0-stable
7-0-stable is the release series that currently receives bug fixes.
2022-01-02 00:42:38 +00:00
Erick Sasse
dd6bd200a6 Use built-in bundler-cache from setup-ruby action 2021-12-22 14:23:33 -03:00
Helio Cola
0ad5e11a84
Typo in the Security Policy URL 2021-12-15 23:10:39 -05:00
Xavier Noria
db41e6c1dd
Update .github/pull_request_template.md 2021-09-27 22:08:06 +02:00
Alex Ghiculescu
99977bb7aa
Warning about draft PRs 2021-09-27 15:03:29 -05:00
Rafael Mendonça França
db94a22b08
Fix codespaces precache action 2021-09-22 13:34:27 -04:00
Rafael Mendonça França
0cfee597e4
Setup codespaces prebuild tasks 2021-09-22 13:31:58 -04:00
HParker
0c7a2f93ca [ci skip] Mention executable test cases in issue template
A lot of bug reports have useful reproduction steps that could be a reproduction script, but they seem to have either not found the reproduction script template or didn't read the 'contributing to rails' page at all. This links to the same page at the section that includes the reproduction scripts with a stronger call to action making it clear that they need a reproduction script.
2021-06-01 11:51:31 -07:00
John Bampton
6e85b6b86e Add spell checking with codespell as a GitHub Action
`codespell` works with a small custom dictionary and seems to find perhaps more spelling mistakes than `misspell` which really only fixes commonly misspelled English words.

Not all spell checkers can check all file types and most spell checkers can't find all the errors.

https://github.com/codespell-project/codespell
https://pypi.org/project/codespell/
2021-05-04 14:46:21 +10:00
Rafael França
26150e985a
Merge pull request #41910 from jbampton/add-github-actions
feat(CI): correct commonly misspelled English words with GitHub Actions
2021-04-12 16:30:52 -04:00
John Bampton
6a6a2eb15d docs: fix grammar in security.md [ci-skip] 2021-04-12 12:12:24 +10:00
John Bampton
bf8986783b feat(CI): correct commonly misspelled English words with GitHub Actions
Misspell -> Correct commonly misspelled English words... quickly.  A Golang library that runs without a dictionary.

https://github.com/client9/misspell

Can even autofix with '-w'
2021-04-12 01:01:22 +10:00
Rafael Mendonça França
077c66d5d6
Rename master to main in all code references 2021-01-19 20:46:33 +00:00
Eugene Kenny
b791f7dedc Update stale issue comment to mention 6-1-stable
6-1-stable is the release series that currently receives bug fixes.
2021-01-01 22:33:00 +00:00
Rafael França
f94c23cc2f
Merge pull request #39420 from jonathanhefner/verba-sequentur-config
Add verba-sequentur configuration [ci-skip]
2020-08-26 13:47:22 -04:00
Eugene Kenny
352c0a7e10 Don't mark issues on a milestone as stale
Once an issue has been assigned to a milestone, it shouldn't be closed
unless we decide that the release can ship without it.
2020-05-29 10:54:17 +01:00
Jonathan Hefner
47606b5d39 Add verba-sequentur configuration [ci-skip]
These two scenarios are fairly common.
2020-05-25 01:02:20 -05:00
Eugene Kenny
100f7a7f64 Add rubocop group to Gemfile for use in CI
Since c1e7268c83336777655b20f9e23892d8143c0243 we install the latest
version of RuboCop in our GitHub Actions workflow for speed, but this
sacrifices reproducibility; the results will change whenever RuboCop
publishes a new version. Instead we can add a new group to our Gemfile
that just contains the dependencies necessary to run RuboCop, and skip
installing everything else in CI.

Unfortunately it's not possible to tell Bundler to only install gems
from a single group, so we have to tell it not to install every other
group instead.
2020-03-27 23:55:26 +00:00
Olle Jonsson
c1e7268c83 Simplify GitHub Action RuboCop 2020-03-27 20:04:01 +01:00
Yasuo Honda
3530ad1461 Use ruby/setup-ruby action to use Ruby 2.7
https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

Because Ruby 2.7 already installs bundler by default, no need to install
bundler separately.
2020-02-06 18:02:08 -08:00
Juanito Fatas
403bb8714a Save few seconds on every build
Install bundler takes about 7-8s and without installing documentations
takes about 3-4s
2020-02-02 22:05:43 +09:00
Rodrigo Ramírez Norambuena
2550679621 Use --assume-yes to install the dependencies for Github's workflows:
This could prevent not install if require a confirmation action on
system were is run the workflow.
2020-01-18 22:07:52 -03:00
Rafael Mendonça França
d2e21d07a4
Install bundler instead of trying to upgrade Ruby
Ruby 2.7 is not available yet.
2019-12-27 11:50:47 -03:00
Rafael Mendonça França
ea287ad835
Upgrade Ruby in the github actions 2019-12-27 11:46:57 -03:00
Sean C. Sullivan
0358607d5a github actions checkout v2 2019-12-21 20:47:02 -08:00
Rafael Mendonça França
01957ede09
Also close PRs with no activity over 3 months 2019-12-17 13:40:10 -03:00
Yasuo Honda
2dc2876965
Revert "Workaroud to address apt-get update at GitHub Actions" 2019-12-14 08:20:00 +09:00
Yasuo Honda
2b15fbf5ed Workaroud to address apt-get update at GitHub Actions
https://github.com/rails/rails/pull/37950/checks?check_run_id=346759027

```
Reading package lists...
W: Conflicting distribution: https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic InRelease (expected bionic but got stable)
E: Repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic InRelease' changed its 'Origin' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic InRelease' changed its 'Label' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic InRelease' changed its 'Suite' value from 'bionic' to 'stable'
E: Repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic InRelease' changed its 'Codename' value from 'bionic' to 'stable'
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease (expected xenial but got stable)
E: Repository 'https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease' changed its 'Origin' value from 'microsoft-ubuntu-xenial-prod xenial' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease' changed its 'Label' value from 'microsoft-ubuntu-xenial-prod xenial' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease' changed its 'Suite' value from 'xenial' to 'stable'
E: Repository 'https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease' changed its 'Codename' value from 'xenial' to 'stable'
```

Refer:
https://github.community/t5/GitHub-Actions/ubuntu-latest-Apt-repository-list-issues/td-p/41122/page/2
3842b0b8a1
2019-12-13 18:14:02 +09:00
Rafael Mendonça França
c12814173f
Add myself of codeowner of the rubocop config 2019-12-09 12:42:06 -03:00
Yasuo Honda
4ba2a9b65e Easy to show bundle exec rubocop output at Action
When pull requests have RuboCop offenses they need to click
"Build and run RuboCop" section and scroll about 200 lines
to skip `bundle install` output.

This change splits "Build and run RuboCop" into two parts.
then "Run RuboCop" section only shows `bundle exec rubocop --parallel`
output
2019-11-27 00:17:34 +00:00
yuuji.yaginuma
b120110a52 Update packages before install
Without it, it seems to be an error trying to install an older version.
Ref: ea303d012e/checks (step):4:29
2019-11-21 09:01:29 +09:00
Yasuo Honda
c3b300611f Bump GitHub Action cache version from preview to v1
Refer https://github.com/actions/cache/pull/51/
2019-11-16 10:52:59 +09:00
Yasuo Honda
55f9c8a147 Cache gems for GitHub Actions
Follows up #37582

GitHub Actions cache requires `path:` parameter to configure
which directory to be cached. It looks there is no easy way to retrieve path information
using bundler command then workaround implemented to use `vendor/bundle`.

Thanks to https://github.com/actions/cache/pull/4
2019-10-31 23:43:17 +00:00
Yasuo Honda
ce9a220fdc Enabled GitHub Actions to run the latest RuboCop 0.76.0
Updated the default Ruby workflow:

* Trigger this action for pull request and push
* Install requried OS packages for Active Record connection adapters
* Removing `gem install bundler` because Ruby 2.6 already installs it
* Run RuboCop in parallel by `bundle exec rubocop --parallel`
* Rename `ruby.yml` to `rubocop.yml` to represent the workflow

Bump RuboCop to 0.76.0 and rename `Style/UnneededPercentQ` to `Style/RedundantPercentQ`

```ruby
$ bundle exec rubocop
Error: The `Style/UnneededPercentQ` cop has been renamed to `Style/RedundantPercentQ`.
(obsolete configuration found in .rubocop.yml
```

Removed `.codeclimate.yml`
2019-10-30 23:21:09 +00:00
Grey Baker
b37a2d53e1 Add SECURITY.md file, linking to security policy 2019-10-07 10:32:08 +01:00
Eugene Kenny
165753163c Update stale issue comment to mention 6-0-stable
6-0-stable is the release series that currently receives bug fixes.
2019-08-28 10:56:10 +01:00
Abhay Nikam
476abd403b Updated links from http to https in guides, docs, etc 2019-03-09 16:43:47 +05:30
George Claghorn
76c02013ad Label Action Text PRs [ci skip] 2019-01-04 23:48:30 -05:00
George Claghorn
3ecb754786 Label Action Mailbox PRs 2018-12-28 12:15:42 -05:00
jacobherrington
dc27efccdd Add comments to markdown templates 2018-11-18 14:37:53 -06:00
Esquith Allen
7da3043382 Changed wording for no-response documentation 2018-10-20 00:49:49 -04:00
Gannon McGibbon
b3b0224922 Remove some autolabeling globs
[ci skip]
2018-10-05 14:44:05 -04:00
Rafael França
6b9cc6fee1
Merge pull request #34007 from gmcgibbon/automatic_labeling
Add probot autolabeler config
2018-09-27 20:30:59 -04:00
Rafael França
5098d198de
Add configuration to no-response probot plugin
[ci skip]
2018-09-27 20:22:17 -04:00
Gannon McGibbon
c3f3c39116 Add probot autolabeler config 2018-09-27 18:13:32 -04:00
Eugene Kenny
472f24e22f Update stale issue comment to mention 5-2-stable
5-2-stable is the release series that currently receives bug fixes.
2018-05-24 23:23:30 +01:00
Yoshiyuki Hirano
c2a90a6fa1 Navigate edgeguide from .github template [ci skip]
* Navigate prefer edgeguide over guide
* Because edgeguide is always described latest policy we have
2018-04-20 00:40:04 +09:00
Brandon Keepers
910630a3ee Limit stale checks to issues 2017-04-01 11:27:26 -05:00
Rafael França
e91b17e834 Configure the days until close a stale issue
[ci skip]
2017-03-29 12:21:40 -04:00
Rafael Mendonça França
3c419b9a8e
Use the stale branch
[ci skip]
2017-03-27 15:03:28 -04:00
Rafael Mendonça França
813413e432
Add probot/stale configuration 2017-03-27 13:56:32 -04:00
Prathamesh Sonpatki
df3e26b400
Add a note about adding CHANGELOG entries at the top of the file [ci skip] 2016-07-02 22:31:09 +05:30
yuuji.yaginuma
71686f09df fix typo in pull_request_template [ci skip] 2016-02-26 16:40:42 +09:00
Arthur Nogueira Neves
434c8dc967 💅
[skip ci]
2016-02-25 22:32:57 -05:00
Jon Moss
cd3d89f994 Add issue_template.md and pull_request_template.md
This appears to be a new feature of GitHub.

See these links for more details:
- https://github.com/dear-github/dear-github/issues/125
- https://github.com/owncloud/core/issues/new
- https://github.com/blog/2111-issue-and-pull-request-templates

[ci skip]
2016-02-18 14:04:00 -05:00