Skip to content

Commit e686c8b

Browse files
committed
Merge with main branch
1 parent 049f1b5 commit e686c8b

File tree

122 files changed

+1743
-1715
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+1743
-1715
lines changed

.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ ALGOLIA_PREFIX=devsite-dev-
99
GOOGLE_ANALYTICS=
1010
GOOGLE_API=
1111
ROLLBAR_CLIENT_TOKEN=
12-
RACK_ENV=development
12+
JEKYLL_ENV=development
1313
SKIP_DOCS=false

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build static site
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-24.04
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
bundler-cache: true
19+
20+
- name: Build site
21+
run: bundle exec jekyll build
22+
env:
23+
URL: http://developer.rebble.io
24+
HTTPS_URL: https://developer.rebble.io
25+
JEKYLL_ENV: production
26+
SKIP_DOCS: true # TODO: setup docs generation
27+
28+
- name: Upload artifact
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: site-build
32+
path: __public__

.github/workflows/gitlint.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Lint Git Commits
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-24.04
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
with:
13+
ref: ${{ github.event.pull_request.head.sha }}
14+
fetch-depth: 0
15+
16+
- name: Run GitLint
17+
run: pipx run -- gitlint --commits "${{ github.event.pull_request.base.sha }}..HEAD"

.github/workflows/test.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-24.04
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
bundler-cache: true
19+
20+
- name: Run tests
21+
run: bundle exec rspec -f json -o /tmp/rspec_report.json -f progress
22+
env:
23+
SKIP_DOCS: true # TODO: remove once we can get docs artifacts in here easily
24+
25+
- name: Upload report artifact
26+
uses: actions/upload-artifact@v4
27+
if: always()
28+
with:
29+
name: test-report
30+
path: /tmp/rspec_report.json
31+
if-no-files-found: error
32+
33+
report:
34+
runs-on: ubuntu-24.04
35+
needs: test
36+
if: always()
37+
38+
permissions:
39+
contents: read
40+
pull-requests: write
41+
42+
steps:
43+
- name: Download report artifact
44+
uses: actions/download-artifact@v4
45+
with:
46+
name: test-report
47+
48+
- name: Report results
49+
uses: SonicGarden/rspec-report-action@v6
50+
with:
51+
json-path: rspec_report.json

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ log/
88
coverage/
99
node_modules/
1010
vendor/
11-
.ruby-version
1211
.jekyll-metadata
1312
.envrc
1413
.direnv/

.gitlint

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[general]
2+
contrib=contrib-body-requires-signed-off-by,contrib-disallow-cleanup-commits
3+
ignore-merge-commits=false
4+
ignore-fixup-commits=false
5+
ignore-fixup-amend-commits=false
6+
ignore-squash-commits=false
7+
regex-style-search=true
8+
9+
[ignore-body-lines]
10+
regex=^\[\d\]: https:\/\/

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.3.8

CONTRIBUTING.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Contribution Guidelines
2+
3+
## Developer Certification of Origin (DCO)
4+
5+
To make a good faith effort to ensure licensing criteria are met, this
6+
project requires the Developer Certificate of Origin (DCO) process to be
7+
followed.
8+
9+
The DCO is an attestation attached to every contribution made by every
10+
developer. In the commit message of the contribution, (described more fully
11+
later in this document), the developer simply adds a `Signed-off-by`
12+
statement and thereby agrees to the DCO.
13+
14+
When a developer submits a patch, it is a commitment that the contributor has
15+
the right to submit the patch per the license. The DCO agreement is shown
16+
below and at http://developercertificate.org/.
17+
18+
```
19+
Developer's Certificate of Origin 1.1
20+
21+
By making a contribution to this project, I certify that:
22+
23+
(a) The contribution was created in whole or in part by me and I
24+
have the right to submit it under the open source license
25+
indicated in the file; or
26+
27+
(b) The contribution is based upon previous work that, to the best
28+
of my knowledge, is covered under an appropriate open source
29+
license and I have the right under that license to submit that
30+
work with modifications, whether created in whole or in part
31+
by me, under the same open source license (unless I am
32+
permitted to submit under a different license), as indicated
33+
in the file; or
34+
35+
(c) The contribution was provided directly to me by some other
36+
person who certified (a), (b) or (c) and I have not modified
37+
it.
38+
39+
(d) I understand and agree that this project and the contribution
40+
are public and that a record of the contribution (including all
41+
personal information I submit with it, including my sign-off) is
42+
maintained indefinitely and may be redistributed consistent with
43+
this project or the open source license(s) involved.
44+
```
45+
46+
### DCO Sign-Off
47+
48+
The "sign-off" in the DCO is a "Signed-off-by:" line in each commit's log
49+
message. The Signed-off-by: line must be in the following format:
50+
51+
```
52+
Signed-off-by: Your Name <[email protected]>
53+
```
54+
55+
For your commits, replace:
56+
57+
- `Your Name` with your real name (pseudonyms, hacker handles, and the
58+
names of groups are not allowed)
59+
60+
- `[email protected]` with the same email address you are using to
61+
author the commit (CI will fail if there is no match)
62+
63+
You can automatically add the Signed-off-by: line to your commit body using
64+
`git commit -s`. Use other commits in the repository as examples.
65+
66+
Additional requirements:
67+
68+
- If you are altering an existing commit created by someone else, you must add
69+
your Signed-off-by: line without removing the existing one.

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
FROM ruby:2.2.9
1+
FROM ruby:3.3.8
22

3-
COPY docker/sources.list /etc/apt/sources.list
43
RUN apt-get update && \
5-
apt-get install -y --force-yes python2.7 nodejs zlib1g && \
4+
apt-get install -y --force-yes python3 nodejs zlib1g && \
65
apt-get clean && \
76
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
87

@@ -21,7 +20,7 @@ ENV URL=http://developer.rebble.io
2120
ENV HTTPS_URL=https://developer.rebble.io
2221
ENV EXTERNAL_SERVER=https://example.com
2322
ENV SKIP_DOCS=true
24-
ENV RACK_ENV=production
23+
ENV JEKYLL_ENV=production
2524

2625
EXPOSE 4000
2726

0 commit comments

Comments
 (0)