Skip to content

Commit 39ae1f9

Browse files
committed
github: Add prettier lint step.
1 parent 99dc912 commit 39ae1f9

File tree

6 files changed

+43
-14
lines changed

6 files changed

+43
-14
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ switch_case_indent = true
1414

1515
[*.{yaml,yml}]
1616
indent_size = 2
17+
18+
[*.md]
19+
indent_size = 2
20+
max_line_length = 80

.github/workflows/prettier.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Lint markdown files prettier
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
prettier:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v5
15+
- uses: creyD/prettier_action@v4.6
16+
with:
17+
dry: true
18+
prettier_options: "--write **/*.md"
19+
- name: Check for any diff
20+
run: |
21+
if ! git diff --exit-code; then
22+
echo "Changes found!"
23+
git status
24+
git diff
25+
exit 1
26+
fi

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
1616

1717
Examples of unacceptable behavior by participants include:
1818

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
19+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,15 @@ proxies][other-proxy].
217217
[other-proxy]: https://zulip.readthedocs.io/en/latest/production/reverse-proxies.html#other-proxies
218218

219219
**Outgoing proxy**: Zulip uses [Smokescreen][smokescreen] to proxy all
220-
outgoing HTTP connections and prevent SSRF attacks. If you have
220+
outgoing HTTP connections and prevent SSRF attacks. If you have
221221
private IPs (e.g., outgoing webhook hosts on private IPs), you can set
222222
`PROXY_ALLOW_ADDRESSES` or `PROXY_ALLOW_RANGES` to comma-separated
223223
lists of IP addresses or CIDR ranges.
224224

225225
[smokescreen]: https://zulip.readthedocs.io/en/latest/production/deployment.html#customizing-the-outgoing-http-proxy
226226

227227
**Incoming email**: The Docker image exposes port 25, which is already
228-
configured with Zulip's incoming email server. To use it, publish
228+
configured with Zulip's incoming email server. To use it, publish
229229
port 25 of the Docker container, set `SETTING_EMAIL_GATEWAY_PATTERN`,
230230
and add an MX record to your DNS configuration pointing to the Docker
231231
container's public hostname (or wherever you chose to publicly expose

custom_zulip_files/README.custom_zulip_files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The custom_zulip_files mechanism allows you to test edits to Zulip
2-
before making changes in the upstream repo. It works by copying the
2+
before making changes in the upstream repo. It works by copying the
33
contents of this directory on top of the main zulip/zulip checkout as
44
part of the Docker build process.
55

kubernetes/chart/zulip/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@
141141
## [0.3.0] - 2022-04-21
142142

143143
- Update dependencies:
144-
145144
- Helm charts:
146145

147146
| Repository | Name | Version |

0 commit comments

Comments
 (0)