Skip to content

Commit 1ff8fe1

Browse files
Copilotmiaulalala
andauthored
Merge branch 'master' into enh/occ-group-add-and-removeuser-multiple - resolve conflicts
Co-authored-by: miaulalala <7427347+miaulalala@users.noreply.github.com>
2 parents 0552f5e + 7c11813 commit 1ff8fe1

162 files changed

Lines changed: 15514 additions & 2242 deletions

File tree

Some content is hidden

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

.docker/sphinx-latex/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ ENV DEBIAN_FRONTEND=noninteractive
88

99
RUN apt-get update \
1010
&& apt-get install -y --no-install-recommends \
11+
ca-certificates \
12+
curl \
13+
git \
14+
lsb-release \
1115
make \
12-
python3-pip \
1316
latexmk \
1417
tex-gyre \
1518
texlive-fonts-extra \
@@ -21,3 +24,7 @@ RUN apt-get update \
2124
xindy \
2225
&& mktexlsr \
2326
&& rm -rf /var/lib/apt/lists/*
27+
28+
# Allow pip to install packages system-wide inside the container when running
29+
# as root (avoids PEP 668 "externally managed environment" error)
30+
RUN printf '[global]\nbreak-system-packages = true\n' > /etc/pip.conf

.github/labeler.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
"manual: admin":
5+
- changed-files:
6+
- any-glob-to-any-file: "admin_manual/**"
7+
8+
"manual: developer":
9+
- changed-files:
10+
- any-glob-to-any-file: "developer_manual/**"
11+
12+
"manual: user":
13+
- changed-files:
14+
- any-glob-to-any-file: "user_manual/**"
15+
16+
"github_actions":
17+
- changed-files:
18+
- any-glob-to-any-file: ".github/workflows/**"

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ Please add a screenshot of your changed or added page(s).
99
This helps reviewers to quickly see how the resulting
1010
lists, code blocks, headers and links look.
1111
-->
12+
13+
### ✅ Checklist
14+
15+
- [ ] I have built the documentation locally and reviewed the output
16+
- [ ] Screenshots are included for visual changes
17+
- [ ] I have not moved or renamed pages (or added a redirect if I did)
18+
- [ ] I have run `codespell` or similar and addressed any spelling issues

.github/workflows/docker-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ permissions:
1616
packages: write
1717

1818
jobs:
19-
build-and-push:
20-
name: Build and push sphinx-latex image
19+
build-and-publish:
20+
name: Build and publish sphinx-latex Docker image
2121
runs-on: ubuntu-latest
2222

2323
steps:
@@ -44,7 +44,7 @@ jobs:
4444
type=raw,value=latest,enable={{is_default_branch}}
4545
type=sha,prefix=sha-
4646
47-
- name: Build and push Docker image
47+
- name: Build and publish Docker image
4848
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
4949
with:
5050
context: .docker/sphinx-latex

.github/workflows/labeling.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
name: Labeling
5+
6+
on:
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
issues:
10+
types: [opened]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
label-by-files:
17+
if: github.event_name == 'pull_request'
18+
name: Label by changed files
19+
20+
runs-on: ubuntu-latest-low
21+
22+
permissions:
23+
contents: read
24+
pull-requests: write
25+
26+
steps:
27+
- name: Apply labels based on changed files
28+
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
29+
with:
30+
repo-token: ${{ secrets.GITHUB_TOKEN }}
31+
sync-labels: false
32+
33+
triage-pr:
34+
needs: [label-by-files]
35+
if: >
36+
always() &&
37+
github.event_name == 'pull_request' &&
38+
(github.event.action == 'opened' || github.event.action == 'reopened')
39+
name: Apply default PR triage label
40+
41+
runs-on: ubuntu-latest-low
42+
43+
permissions:
44+
pull-requests: write
45+
46+
steps:
47+
- name: Add '3. to review' if no triage label is set
48+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
49+
with:
50+
github-token: ${{ secrets.GITHUB_TOKEN }}
51+
script: |
52+
const triageLabels = ['0. Needs triage', '1. to develop', '2. developing', '3. to review', '4. to release']
53+
const currentLabels = context.payload.pull_request.labels.map(l => l.name)
54+
if (!triageLabels.some(l => currentLabels.includes(l))) {
55+
await github.rest.issues.addLabels({
56+
owner: context.repo.owner,
57+
repo: context.repo.repo,
58+
issue_number: context.payload.pull_request.number,
59+
labels: ['3. to review'],
60+
})
61+
}
62+
63+
triage-issue:
64+
if: github.event_name == 'issues'
65+
name: Apply default issue triage label
66+
67+
runs-on: ubuntu-latest-low
68+
69+
permissions:
70+
issues: write
71+
72+
steps:
73+
- name: Add '0. Needs triage' if no triage label is set
74+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
75+
with:
76+
github-token: ${{ secrets.GITHUB_TOKEN }}
77+
script: |
78+
const triageLabels = ['0. Needs triage', '1. to develop', '2. developing', '3. to review', '4. to release']
79+
const currentLabels = context.payload.issue.labels.map(l => l.name)
80+
if (!triageLabels.some(l => currentLabels.includes(l))) {
81+
await github.rest.issues.addLabels({
82+
owner: context.repo.owner,
83+
repo: context.repo.repo,
84+
issue_number: context.payload.issue.number,
85+
labels: ['0. Needs triage'],
86+
})
87+
}

0 commit comments

Comments
 (0)