Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 34218f0

Browse files
Josh Mooreamo13mawisemnieheactions-user
authored
Squash commits hopefully (#518)
Co-authored-by: amo13 <amaury@mailbox.org> Co-authored-by: Matthew Wise <matthew.rs.wise@gmail.com> Co-authored-by: Mark Niehe <mark.niehe@segment.com> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Degoogle Bot <dg-bot-push@tycrek.com>
1 parent f36d837 commit 34218f0

27 files changed

+205
-138
lines changed

.github/CODEOWNERS

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Protect build scripts
2+
*.js @tycrek
3+
4+
# Protect NPM files
5+
*.json @tycrek
6+
7+
# Protect MIRRORS.md
8+
/MIRRORS.md @tycrek
9+
10+
# Protect .github & others
11+
/.github/ @tycrek
12+
/.gitattributes @tycrek
13+
14+
# Protect README.md (restricted to degoogle-bot)
15+
/README.md @degoogle-bot

.github/ISSUE_TEMPLATE/1-new-alternative.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ body:
1919
options:
2020
- label: "**I have read the guidelines in [CONTRIBUTING.md](../blob/master/CONTRIBUTING.md)**"
2121
required: true
22-
- label: Include my name in [CONTRIBUTORS.md](../blob/master/CONTRIBUTORS.md)
2322
- label: I am affiliated with this alternative
2423
- type: input
2524
id: name
@@ -32,7 +31,7 @@ body:
3231
id: section
3332
attributes:
3433
label: Section
35-
description: Please also include the section you feel it belongs best in
34+
description: Also include the section you feel it belongs best in
3635
multiple: true
3736
options:
3837
- Browser extensions
@@ -46,7 +45,7 @@ body:
4645
attributes:
4746
label: Description
4847
description: |
49-
Please provide a brief description of the alternative,
48+
Provide a brief description of the alternative,
5049
one to 5 sentences which will be displayed along with the name.
5150
validations:
5251
required: true
@@ -86,7 +85,7 @@ body:
8685
attributes:
8786
label: Is this alternative hosted in a country that performs surveillance?
8887
description: |
89-
For more info on 5/9/14 eyes, please check here: https://restoreprivacy.com/5-eyes-9-eyes-14-eyes/
88+
For more info on 5/9/14 eyes, visit: https://restoreprivacy.com/5-eyes-9-eyes-14-eyes/
9089
Usually only one applies, but you may select more than one.
9190
options:
9291
- label: 5 Eyes
@@ -103,7 +102,7 @@ body:
103102
- type: dropdown
104103
id: self-hosting
105104
attributes:
106-
label: Please indicate if self-hosting is possible, not possible, or the only option
105+
label: Indicate if self-hosting is possible, not possible, or the only option
107106
options:
108107
- Possible
109108
- Not possible

.github/ISSUE_TEMPLATE/2-fix-update-alternative.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ body:
1919
options:
2020
- label: "**I have read the guidelines in [CONTRIBUTING.md](../blob/master/CONTRIBUTING.md)**"
2121
required: true
22-
- label: Include my name in [CONTRIBUTORS.md](../blob/master/CONTRIBUTORS.md)
2322
- label: I am affiliated with this alternative
2423
- type: input
2524
id: alternative_name

.github/ISSUE_TEMPLATE/3-remove-alternative.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ body:
1818
options:
1919
- label: "**I have read the guidelines in [CONTRIBUTING.md](../blob/master/CONTRIBUTING.md)**"
2020
required: true
21-
- label: Include my name in [CONTRIBUTORS.md](../blob/master/CONTRIBUTORS.md)
2221
- label: I am affiliated with this alternative
2322
- type: input
2423
id: alternative_name

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<!-- If your Pull Request is related to an alternative, make sure there is a corresponding Issue for discussion. -->
22

3-
| Checklist | |
4-
| --------- | - |
5-
| **I have read the guidelines in [CONTRIBUTING.md]** | yes/no |
6-
| Include my name in [CONTRIBUTORS.md] | yes/no |
7-
| I am affiliated with this alternative (if applicable) | yes/no |
3+
### Checklist
84

5+
- __I have read the guidelines in [CONTRIBUTING.md]__: yes/no
6+
- __I am affiliated with this alternative (if applicable)__: yes/no
97

108
### Details
119
<!-- Optional if details exist in a linked Issue. If that is the case, link to the Issue here. -->
1210

1311

12+
1413
[CONTRIBUTING.md]: ../blob/master/CONTRIBUTING.md
15-
[CONTRIBUTORS.md]: ../blob/master/CONTRIBUTORS.md

.github/workflows/build.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,34 @@ on:
33
push:
44
branches:
55
- master
6-
paths:
7-
- yaml/*.yml
8-
- md/*.md
9-
- _build.js
10-
- _wiki.js
6+
paths: # Only build if these files were modified
7+
- src/yaml/*.yml
8+
- src/md/*.md
9+
- src/_build.js
10+
- src/_wiki.js
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v1
15+
- uses: actions/checkout@v4
1716
with:
18-
node-version: 13.x
19-
- name: Install dependencies
20-
run: npm i
21-
- name: Build
22-
run: node _build.js
23-
- name: Commit
17+
# GH_PAT must be a PAT for repo owner
18+
token: ${{ secrets.GH_PAT }}
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 20.x
22+
- name: Build README
23+
run: npm i && node src/_build.js
24+
- name: Commit & Push
25+
# GH_NAME/GH_EMAIL can be any collaborator account with Force Push access
2426
run: |
2527
git add README.md
26-
git config --local user.email "action@github.com"
27-
git config --local user.name "GitHub Action"
28+
git config --local user.name "${{ vars.GH_NAME }}"
29+
git config --local user.email "${{ vars.GH_EMAIL }}"
2830
git commit --allow-empty -m "Generated README.md"
29-
- name: Push
30-
uses: ad-m/github-push-action@master
31-
with:
32-
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
branch: master
34-
- name: Wiki
35-
run: node _wiki.js
31+
git push --force-with-lease
32+
- name: Publish Reddit Wiki
33+
run: node src/_wiki.js
3634
env:
3735
REDDIT_USER: ${{ secrets.REDDIT_USER}}
3836
REDDIT_PASS: ${{ secrets.REDDIT_PASS}}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: README Edit Protection
2+
3+
on:
4+
pull_request_target:
5+
6+
jobs:
7+
check:
8+
name: 'File check'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 2
15+
- name: Get changed files
16+
id: changed-files
17+
uses: tj-actions/changed-files@v39
18+
- name: Check if README included
19+
run: |
20+
for file in ${{ steps.changed-files.outputs. modified_files }}; do
21+
if [[ $file == 'README.md' ]]; then
22+
echo "[!] README.md was edited, blocking!"
23+
exit 1
24+
fi
25+
done

CONTRIBUTING.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,26 @@
11
# Contributing
22

3-
###### Last revised: August 9th, 2021
4-
5-
###### Templates revised: August 9th, 2021
6-
73
## General rules
84

95
1. **English only** for issues & pull requests.
10-
2. **Do not edit `README.md`!** This file is automatically generated.
11-
3. Personal opinions will **not** be considered when adding or removing an alternative. Instead, provide links to articles with details.
6+
2. **Do not edit README.md!** This file is automatically generated. Instead, use:
7+
- [`src/yaml/`](https://github.com/tycrek/degoogle/tree/master/src/yaml) for structured data
8+
- [`src/md/`](https://github.com/tycrek/degoogle/tree/master/src/md) for regular text
9+
3. Personal opinions will **not** be considered. Instead, provide detailed links as supporting evidence.
1210
4. **Use the templates** when submitting an Issue or Pull Request. Blank Issues/PRs are not allowed.
1311

1412
## How to submit a change
1513

1614
### A: I am not familiar with GitHub or Pull Requests
1715

18-
1. Open a [new Issue].
16+
1. Open a [new Issue](https://github.com/tycrek/degoogle/issues/new/choose).
1917
2. Select a template to use. If in doubt, use **Other**.
2018
3. Fill out the information to the best of your ability.
2119
4. When you are finished, click **Submit new issue**.
2220

2321
### B: I have used GitHub Pull Requests
2422

2523
1. Create your Pull Request with your changes.
26-
- Remember to **not** edit `README.md`!
24+
- Remember to **not** edit README.md!
2725
- As with Issues, fill out the template as best you can.
28-
2. For PR's relating to alternatives, please follow the steps above to also create an Issue for discussion. Simple PR's that are unrelated to a specific alternative may not require an Issue. If in doubt, create an **Other** Issue.
29-
30-
## I contributed but I am not in the list (or) I do not want to be in the list anymore
31-
32-
If you submitted a change that made it into the guide but don't have your Reddit or GitHub username in the [CONTRIBUTORS.md] list, open an issue or pull request so I can fix it. Alternatively, if your username is on the list and you do *not* want it there, feel free to request this as well.
33-
34-
[new Issue]: https://github.com/tycrek/degoogle/issues/new/choose
35-
[CONTRIBUTORS.md]: https://github.com/tycrek/degoogle/blob/master/CONTRIBUTORS.md
26+
2. For PR's relating to alternatives, you must also follow the steps above to create an Issue for discussion. Simple PR's that are unrelated to a specific alternative may not require an Issue. If in doubt, create an **Other** Issue.

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Thanks to everyone here for contributing in some way! (usernames are in no parti
8686
- [@julianfairfax](https://github.com/julianfairfax)
8787
- [@ACK-J](https://github.com/ACK-J)
8888
- [@joebudi](https://github.com/joebudi)
89+
- [@mniehe](https://github.com/mniehe)
8990

9091
### Reddit:
9192

MIRRORS.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Degoogle Mirrors
22

3-
If you host a mirror, let me know through an Issue or PR so it can be added to the community mirrors list. It would be prefered if your mirror is auto-updating.
4-
5-
Official mirrors are the main sources and are maintained by me (@tycrek). Community mirrors are other Git instances run by other users that I can't control.
3+
Official mirrors are managed by me ([@tycrek](https://github.com/tycrek)). Community mirrors are Git instances run by other users that I can't control (they may be out of date as well).
64

75
## Official mirrors
86

@@ -13,7 +11,7 @@ Official mirrors are the main sources and are maintained by me (@tycrek). Commun
1311

1412
- [Gitea mirror](https://git.mirkodi.eu/mirk0dex/degoogle) from [@mirk0dex (Gitea)](https://git.mirkodi.eu/mirk0dex)
1513

16-
## Non-english mirrors
14+
### Non-english mirrors
1715

1816
- [Turkish/Türk](https://github.com/melikechan/degoogle-turkish) from [@melikechan](https://github.com/melikechan)
1917
- [Italian/Italiano](https://gitea.it/devol/degooglizzazione) from [@devol (Gitea)](https://gitea.it/devol)

0 commit comments

Comments
 (0)