Skip to content

Commit be47d1e

Browse files
committed
Merge branch 'develop'
2 parents 0e612f0 + 2f2e002 commit be47d1e

File tree

152 files changed

+8033
-4471
lines changed

Some content is hidden

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

152 files changed

+8033
-4471
lines changed

.all-contributorsrc

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,70 @@
312312
"contributions": [
313313
"code"
314314
]
315+
},
316+
{
317+
"login": "NuroDev",
318+
"name": "nuro",
319+
"avatar_url": "https://avatars.githubusercontent.com/u/4991309?v=4",
320+
"profile": "https://nuro.dev",
321+
"contributions": [
322+
"doc"
323+
]
324+
},
325+
{
326+
"login": "onedr0p",
327+
"name": "ᗪєνιη ᗷυнʟ",
328+
"avatar_url": "https://avatars.githubusercontent.com/u/213795?v=4",
329+
"profile": "https://github.com/onedr0p",
330+
"contributions": [
331+
"infra"
332+
]
333+
},
334+
{
335+
"login": "JonnyWong16",
336+
"name": "JonnyWong16",
337+
"avatar_url": "https://avatars.githubusercontent.com/u/9099342?v=4",
338+
"profile": "https://github.com/JonnyWong16",
339+
"contributions": [
340+
"doc"
341+
]
342+
},
343+
{
344+
"login": "Roxedus",
345+
"name": "Roxedus",
346+
"avatar_url": "https://avatars.githubusercontent.com/u/7110194?v=4",
347+
"profile": "https://github.com/Roxedus",
348+
"contributions": [
349+
"doc"
350+
]
351+
},
352+
{
353+
"login": "WoisWoi",
354+
"name": "WoisWoi",
355+
"avatar_url": "https://avatars.githubusercontent.com/u/75491231?v=4",
356+
"profile": "https://github.com/WoisWoi",
357+
"contributions": [
358+
"translation"
359+
]
360+
},
361+
{
362+
"login": "HubDuck",
363+
"name": "HubDuck",
364+
"avatar_url": "https://avatars.githubusercontent.com/u/77843475?v=4",
365+
"profile": "https://github.com/HubDuck",
366+
"contributions": [
367+
"translation"
368+
]
369+
},
370+
{
371+
"login": "costaht",
372+
"name": "costaht",
373+
"avatar_url": "https://avatars.githubusercontent.com/u/50637431?v=4",
374+
"profile": "https://github.com/costaht",
375+
"contributions": [
376+
"doc",
377+
"translation"
378+
]
315379
}
316380
],
317381
"badgeTemplate": "<a href=\"#contributors-\"><img alt=\"All Contributors\" src=\"https://img.shields.io/badge/all_contributors-<%= contributors.length %>-orange.svg\"/></a>",

.github/workflows/ci.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
test:
1313
name: Lint & Test Build
1414
runs-on: ubuntu-20.04
15-
container: node:12.18-alpine
15+
container: node:14.16-alpine
1616
steps:
1717
- name: checkout
1818
uses: actions/checkout@v2
@@ -24,6 +24,7 @@ jobs:
2424
run: yarn lint
2525
- name: build
2626
run: yarn build
27+
2728
build_and_push:
2829
name: Build & Publish to Docker Hub
2930
needs: test
@@ -59,6 +60,7 @@ jobs:
5960
with:
6061
context: .
6162
file: ./Dockerfile
63+
platforms: linux/amd64,linux/arm64,linux/arm/v7
6264
push: true
6365
build-args: |
6466
COMMIT_TAG=${{ github.sha }}
@@ -68,16 +70,23 @@ jobs:
6870
ghcr.io/sct/overseerr:develop
6971
ghcr.io/sct/overseerr:${{ github.sha }}
7072
cache-from: type=local,src=/tmp/.buildx-cache
71-
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
73+
cache-to: type=local,dest=/tmp/.buildx-cache-new
74+
- # Temporary fix
75+
# https://github.com/docker/build-push-action/issues/252
76+
# https://github.com/moby/buildkit/issues/1896
77+
name: Move cache
78+
run: |
79+
rm -rf /tmp/.buildx-cache
80+
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
81+
7282
discord:
7383
name: Send Discord Notification
7484
needs: build_and_push
7585
if: always() && github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[skip ci]')
7686
runs-on: ubuntu-20.04
7787
steps:
7888
- name: Get Build Job Status
79-
uses: technote-space/[email protected]
80-
89+
uses: technote-space/[email protected]
8190
- name: Combine Job Status
8291
id: status
8392
run: |
@@ -87,7 +96,6 @@ jobs:
8796
else
8897
echo ::set-output name=status::$WORKFLOW_CONCLUSION
8998
fi
90-
9199
- name: Post Status to Discord
92100
uses: sarisia/actions-status-discord@v1
93101
with:

.github/workflows/release.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
test:
1010
name: Lint & Test Build
1111
runs-on: ubuntu-20.04
12-
container: node:12.18-alpine
12+
container: node:14.16-alpine
1313
steps:
1414
- name: checkout
1515
uses: actions/checkout@v2
@@ -31,9 +31,24 @@ jobs:
3131
with:
3232
fetch-depth: 0
3333
- name: Setup Node.js
34-
uses: actions/setup-node@v1
34+
uses: actions/setup-node@v2
3535
with:
36-
node-version: 12
36+
node-version: 14
37+
- name: Set up QEMU
38+
uses: docker/setup-qemu-action@v1
39+
- name: Set up Docker Buildx
40+
uses: docker/setup-buildx-action@v1
41+
- name: Login to DockerHub
42+
uses: docker/login-action@v1
43+
with:
44+
username: ${{ secrets.DOCKER_USERNAME }}
45+
password: ${{ secrets.DOCKER_TOKEN }}
46+
- name: Login to GitHub Container Registry
47+
uses: docker/login-action@v1
48+
with:
49+
registry: ghcr.io
50+
username: ${{ github.repository_owner }}
51+
password: ${{ secrets.CR_PAT }}
3752
- name: Install dependencies
3853
run: yarn
3954
- name: Release
@@ -108,7 +123,7 @@ jobs:
108123
runs-on: ubuntu-20.04
109124
steps:
110125
- name: Get Build Job Status
111-
uses: technote-space/[email protected].2
126+
uses: technote-space/[email protected].5
112127

113128
- name: Combine Job Status
114129
id: status

.github/workflows/snap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
runs-on: ubuntu-20.04
9191
steps:
9292
- name: Get Build Job Status
93-
uses: technote-space/[email protected].2
93+
uses: technote-space/[email protected].5
9494

9595
- name: Combine Job Status
9696
id: status

CONTRIBUTING.md

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,87 @@
11
# Contributing to Overseerr
22

3-
All help is welcome and greatly appreciated. If you would like to contribute to the project, the instructions below can get you started...
3+
All help is welcome and greatly appreciated! If you would like to contribute to the project, the following instructions should get you started...
44

55
## Development
66

77
### Tools Required
88

9-
- HTML/Typescript/Javascript editor of choice. ([VSCode](https://code.visualstudio.com/) is recommended. Upon opening the project, a few extensions will be automatically recommended for install.)
10-
- [NodeJS](https://nodejs.org/en/download/) (Node 12.x.x or higher)
9+
- HTML/Typescript/Javascript editor
10+
- [VSCode](https://code.visualstudio.com/) is recommended. Upon opening the project, a few extensions will be automatically recommended for install.
11+
- [NodeJS](https://nodejs.org/en/download/) (Node 14.x or higher)
1112
- [Yarn](https://yarnpkg.com/)
1213
- [Git](https://git-scm.com/downloads)
1314

1415
### Getting Started
1516

16-
1. [Fork](https://help.github.com/articles/fork-a-repo/) the repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device.
17+
1. [Fork](https://help.github.com/articles/fork-a-repo/) the repository to your own GitHub account and [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device:
1718

1819
```bash
1920
git clone https://github.com/YOUR_USERNAME/overseerr.git
2021
cd overseerr/
2122
```
2223

23-
2. Add the remote upstream.
24+
2. Add the remote `upstream`:
2425

2526
```bash
2627
git remote add upstream https://github.com/sct/overseerr.git
2728
```
2829

29-
3. Create a new branch
30+
3. Create a new branch:
3031

3132
```bash
3233
git checkout -b BRANCH_NAME develop
3334
```
3435

35-
- It is recommended to name the branch something relevant to the feature or fix you are working on.
36-
- An example of this would be `fix-title-cards` or `feature-new-system`.
37-
- Bad examples would be `patch` or `bug`.
36+
- It is recommended to give your branch a meaningful name, relevant to the feature or fix you are working on.
37+
- Good examples:
38+
- `docs-docker`
39+
- `feature-new-system`
40+
- `fix-title-cards`
41+
- Bad examples:
42+
- `bug`
43+
- `docs`
44+
- `feature`
45+
- `fix`
46+
- `patch`
3847

39-
4. Run development environment
48+
4. Run the development environment:
4049

4150
```bash
4251
yarn
4352
yarn dev
4453
```
4554

46-
- Alternatively you can run using [Docker](https://www.docker.com/) with `docker-compose up -d`. This method does not require installing NodeJS or Yarn on your machine directly.
55+
- Alternatively, you can use [Docker](https://www.docker.com/) with `docker-compose up -d`. This method does not require installing NodeJS or Yarn on your machine directly.
4756

48-
5. Create your patch and run appropriate tests.
57+
5. Create your patch and test your changes.
4958

50-
6. Follow the [guidelines](#contributing-code).
51-
52-
7. Should you need to update your fork, you can do so by rebasing from `upstream`:
53-
54-
```bash
55-
git fetch upstream
56-
git rebase upstream/develop
57-
git push origin BRANCH_NAME -f
58-
```
59+
- Be sure to follow both the [code](#contributing-code) and [UI text](#ui-text-style) guidelines.
60+
- Should you need to update your fork, you can do so by rebasing from `upstream`:
61+
```bash
62+
git fetch upstream
63+
git rebase upstream/develop
64+
git push origin BRANCH_NAME -f
65+
```
5966

6067
### Contributing Code
6168

62-
- If you are taking on an existing bug or feature ticket, please comment on the [GitHub Issue](https://github.com/sct/overseerr/issues) to avoid multiple people working on the same thing.
69+
- If you are taking on an existing bug or feature ticket, please comment on the [issue](https://github.com/sct/overseerr/issues) to avoid multiple people working on the same thing.
6370
- All commits **must** follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
64-
- It is okay if you squash your PR down to be a single commit that fits this standard.
65-
- PRs with commits not following this standard will not be merged.
71+
- It is okay to squash your pull request down into a single commit that fits this standard.
72+
- Pull requests with commits not following this standard will **not** be merged.
6673
- Please make meaningful commits, or squash them.
67-
- Always rebase your commit to the latest `develop` branch. Do not merge `develop` into your branch.
68-
- It is your responsibility to keep your branch up to date. It will not be merged unless its rebased off the latest `develop` branch.
74+
- Always rebase your commit to the latest `develop` branch. Do **not** merge `develop` into your branch.
75+
- It is your responsibility to keep your branch up-to-date. Your work will **not** be merged unless it is rebased off the latest `develop` branch.
6976
- You can create a "draft" pull request early to get feedback on your work.
70-
- Your code must be formatted correctly or the tests will fail.
71-
- We use Prettier to format our codebase. It should automatically run with a `git` hook, but it is recommended to have the Prettier extension installed in your editor and format on save.
72-
- If you have questions or need help, you can reach out in [GitHub Discussions](https://github.com/sct/overseerr/discussions) or in our [Discord](https://discord.gg/PkCWJSeCk7).
73-
- Only open pull requests to `develop`. Never `master`. Any PRs opened to `master` will be closed.
77+
- Your code **must** be formatted correctly, or the tests will fail.
78+
- We use Prettier to format our code base. It should automatically run with a Git hook, but it is recommended to have the Prettier extension installed in your editor and format on save.
79+
- If you have questions or need help, you can reach out via [Discussions](https://github.com/sct/overseerr/discussions) or our [Discord server](https://discord.gg/PkCWJSeCk7).
80+
- Only open pull requests to `develop`, never `master`! Any pull requests opened to `master` will be closed.
7481

7582
### UI Text Style
7683

77-
When adding new UI text, please be sure to adhere to the following guidelines:
84+
When adding new UI text, please try to adhere to the following guidelines:
7885

7986
1. Be concise and clear, and use as few words as possible to make your point.
8087
2. Use the Oxford comma where appropriate.
@@ -90,7 +97,7 @@ When adding new UI text, please be sure to adhere to the following guidelines:
9097

9198
## Translation
9299

93-
We use [Weblate](https://hosted.weblate.org/engage/overseerr/) for our translations, and your help with localizing Overseerr would be greatly appreciated! If your language is not listed below, please [open a feature request on GitHub](https://github.com/sct/overseerr/issues/new/choose).
100+
We use [Weblate](https://hosted.weblate.org/engage/overseerr/) for our translations, and your help with localizing Overseerr would be greatly appreciated! If your language is not listed below, please [open a feature request](https://github.com/sct/overseerr/issues/new/choose).
94101

95102
<a href="https://hosted.weblate.org/engage/overseerr/"><img src="https://hosted.weblate.org/widgets/overseerr/-/overseerr-frontend/multi-auto.svg" alt="Translation status" /></a>
96103

Dockerfile

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
FROM node:14.15-alpine AS BUILD_IMAGE
1+
FROM node:14.16-alpine AS BUILD_IMAGE
2+
3+
ARG TARGETPLATFORM
4+
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
25

36
ARG COMMIT_TAG
47
ENV COMMIT_TAG=${COMMIT_TAG}
58

69
COPY . /app
710
WORKDIR /app
811

9-
RUN yarn --frozen-lockfile && \
12+
RUN \
13+
case "${TARGETPLATFORM}" in \
14+
'linux/arm64') apk add --no-cache python make g++ ;; \
15+
'linux/arm/v7') apk add --no-cache python make g++ ;; \
16+
esac
17+
18+
RUN yarn --frozen-lockfile --network-timeout 1000000 && \
1019
yarn build
1120

1221
# remove development dependencies
@@ -20,14 +29,15 @@ RUN touch config/DOCKER
2029
RUN echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json
2130

2231

23-
FROM node:14.15-alpine
32+
FROM node:14.16-alpine
2433

25-
RUN apk add --no-cache tzdata
34+
RUN apk add --no-cache tzdata tini
2635

2736
# copy from build image
2837
COPY --from=BUILD_IMAGE /app /app
2938
WORKDIR /app
3039

31-
CMD yarn start
40+
ENTRYPOINT [ "/sbin/tini", "--" ]
41+
CMD [ "yarn", "start" ]
3242

3343
EXPOSE 5055

Dockerfile.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12.18-alpine
1+
FROM node:14.16-alpine
22

33
COPY . /app
44
WORKDIR /app

0 commit comments

Comments
 (0)