Commit Graph

73 Commits

Author SHA1 Message Date
Sasha Stadnik
29a2a684c5 fix typo in pull request template [ci-skip] 2022-10-25 21:34:03 +03:00
Alex Ghiculescu
cccbc092ae
PR template: note about auto-closing issue
I've noticed a few PRs made since the latest template update, that have said things like "this PR was created because of #ISSUE" or things along those lines. It seems like people are reading the template and following its advice! But Github requires a specific syntax to auto-close an issue, so we may as well encourage people to use that to save everyone a bit of time. So in this PR I've added a comment to the template explaining that.
2022-10-22 09:23:29 -05:00
eileencodes
bb31faba60
Make PR template less onerous
I think no one is reading this because I've seen an increase in draft
PRs. To fix that I've moved the draft statement to the top. I also think
the number of check boxes is a lot and isn't resulting in better PRs
because the length means they are not being read. I removed ones that I
think are repetitive or unhelpful. I wish I could A/B test this...
2022-10-19 10:25:25 -04:00
Rafael Mendonça França
d7c937b7ff
Ignore qunit for spelling check
Only use one tool to check spelling.
2022-09-20 21:13:39 +00:00
Eileen M. Uchitelle
f9030fe0c6
Merge pull request #45495 from okuramasafumi/rewrite-pull-request-template
Update Pull Request Template [ci-skip]
2022-09-08 10:35:38 -04:00
Hartley McGuire
dea0ad3473
Update changelog linter
Two things were changed:
- line number are added to errors so its easier to find them
- blank lines with trailing whitespace now correctly show 1 error
  (trailing whitespace) instead of 2 (trailing whitespace + wrong
  indentation)
2022-08-30 19:30:46 -04:00
John Hawthorn
60c0a3de29 Install specific version of codespell
As the codespell dictionary changes between versions, we should declare
explicitly the version we are ready for so that this CI doesn't break
every time there is a new version.

Ideally this would be upgraded periodically to catch new errors, but I
don't think the need is urgent enough for us to fail CI on PRs.
2022-08-18 12:58:50 -07:00
Hartley McGuire
a4770968ef
Add linter for CHANGELOG formatting
There have been a number of recent commits introducing incorrectly
formatted CHANGELOG entries:
- 9f0b8eb was missing an author
- 936a862 had trailing whitespace
- 238432d had wrong number of leading whitespace
- 51852d2 had wrong number of leading whitespace in the header

To prevent these inconsistencies from happening in the future, I wrote a
small linter for CHANGELOG files that catches all of the above errors.
2022-07-27 19:59:56 -04:00
OKURA Masafumi
69d68a371f Update Pull Request Template
The major change is to add checklist so that it's easier to be read
than comments.
Also, `Summary` is not clear about what should be written, so here
it's changed to `Motivation` and `Detail`.
Finally, it clearly says they can discard this template if they need to.
2022-07-14 22:44:24 +09:00
eileencodes
591c8842cc
Bump ruby version for Rubocop
We should run rubocop using the latest Ruby version.
2022-06-23 08:25:43 -04:00
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