chore: some cleanup

This commit is contained in:
taskylizard 2024-08-26 15:46:12 +00:00
parent 9a01c3885f
commit 3148eabe96
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
6 changed files with 6 additions and 36 deletions

4
.github/CODEOWNERS vendored Normal file
View file

@ -0,0 +1,4 @@
docs/.vitepress/**/* @taskylizard
api/**/* @taskylizard
index.md @taskylizard

111
.github/CONTRIBUTING.md vendored Normal file
View file

@ -0,0 +1,111 @@
# How to Edit FMHY
There are multiple ways you can contribute to this repository:
- [Link submissions](#submitting-a-link)
- [Reporting a site](#reporting-a-site)
- [Changes to the website itself](#making-changes)
- [Finding new sites](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/find-new-sites/)
## Submitting a Link
> [!NOTE]
> If you haven't tested the link you'd like to submit, especially if it's a DDL site, please open an **[Issue](https://github.com/fmhy/FMHYedit/issues)** or reach out to us on **[Discord](https://discord.gg/5W9QJKuPkD)** rather than making a Pull Request.
1. Before submitting a link, please **[search](https://redd.it/105xraz)** to make sure it's not already in the wiki.
2. The order of priority is: **Site > Git Repository > Store Link**
Please only use the store link if there's neither a site nor a Git repository available for the app/extension you'd like to submit.
3. Always check to see if the site you'd like to submit has a Discord / Telegram server you can link with it.
4. Never edit the single-page, it contains all the pages of the wiki and gets updated automatically.
5. Find a suitable category for the link and then submit it by making a **[Pull Request](https://github.com/fmhy/FMHYedit/pulls)**.
#### Don't Submit:
**🕹️ Emulators**
They're already on the **[Game Tech Wiki](https://emulation.gametechwiki.com/index.php/Main_Page)**.
**🔻 Leeches**
They're already on the **[File Hosting Wiki](https://filehostlist.miraheze.org/wiki/Free_Premium_Leeches)**.
**🐧 Distros**
They're already on **[DistroWatch](https://distrowatch.com/)**.
**🎲 Mining / Betting Sites**
Don't post anything related to betting, mining, BINs, CCs, etc.
**🎮 Multiplayer Game Hacks**
Don't post any hacks/exploits that give unfair advantages in multiplayer games.
## Reporting a Site
> [!TIP]
> If you want to make bigger changes to the wiki, such as debloating or restructuring a page/section, please discuss those changes with us via **[Discord](https://discord.gg/5W9QJKuPkD)** before making a **[Pull Request](https://github.com/fmhy/FMHYedit/pulls)**.
You can do one of the following:
- Open an **[Issue](https://github.com/fmhy/FMHYedit/issues)** or a **[Pull Request](https://github.com/fmhy/FMHYedit/pulls)** and don't forget to explain why you think the site(s) in question should be removed, unstarred, and/or changed.
- Alternatively, you can reach out to us on **[Discord](https://discord.gg/5W9QJKuPkD)** if you're unsure whether the site should be reported or if you'd like to discuss your report with more people.
## Making changes
If you want to make changes with instant site feedback, or are simply going to work with the site, you can do so with these 3 ways:
- [Using gitpod.io or GitHub Codespaces (recommended)](#using-gitpod-or-github-codespaces)
- [Using the GitHub editor](#using-the-github-editor)
- [Manually setting up a development environment](#manually-setting-up-a-development-environment)
> [!TIP]
> You can just use our [💬 Discord](https://redd.it/17f8msf) to send us sites or any changes.
### Using Gitpod or GitHub Codespaces
You can use either [gitpod.io](https://gitpod.io/) or [GitHub Codespaces](https://github.com/features/codespaces) to edit the wiki.
Follow these steps:
1. Fork the repository by clicking the "Fork" button in the top right corner.
2. Now, to make changes, you can either use gitpod.io or GitHub Codespaces.
#### Gitpod.io
Login to your GitHub account and click on the "New Workspace" button. Then select your fork and you should be in your gitpod workspace.
To close the workspace, click on the "Gitpod" button at the bottom left corner then type "Stop Workspace" and hit enter.
#### GitHub Codespaces
Click on the "Code" button on the top right corner of the page and select "Codespaces" from the dropdown menu.
To close the workspace, click on the "Code" button at the top right corner then click on "Stop Codespace" and hit enter.
### Using the GitHub editor
1. Fork the repository by clicking the "Fork" button in the top right corner. You can open your repository in a VSCode-like environment by pressing `.` (dot) in your fork's homepage which will take you to `github.dev`.
2. Find the file you want to edit. Find the "Edit" icon (of a pencil) and click on it.
Select edit button and make your changes.
![Select edit button](https://i.imgur.com/lnQfeo3.png)
3. Scroll down and select "Propose changes", and "Create Pull Request" on the next page, and don't forget to explain why you think the site(s) in question should be removed, unstarred, and/or changed.
![propose changes](https://i.imgur.com/IaSJvnO.png)
![create pull request](https://i.imgur.com/z5Za72l.png)
### Manually setting up a development environment
1. Fork the repository by clicking the "Fork" button in the top right corner.
2. Make sure you have [Node.js](https://nodejs.org/en/), [pnpm](https://pnpm.io/), [git](https://git-scm.com/), and [VSCode](https://code.visualstudio.com/) or any other editor installed.
3. Clone your forked repository to your local machine.
4. Open the cloned repository in your editor of choice. Find the file you want to work on, make changes.
5. Add your changes with git (`git add <file>`) and commit (`git commit -m "commit message"`), then push them (`git push`).
6. Create a pull request by clicking the "New Pull Request" button in your forked repository, and don't forget to explain why you think the site(s) in question should be removed, unstarred, and/or changed.

2
.github/README.md vendored
View file

@ -31,5 +31,5 @@ Here are a few ways you can get involved:
## 🔔 Follow
<p>
<a href="https://discord.gg/Stz6y6NgNg"><img width="30px" src="./discord.svg" alt="Discord"></a>&nbsp;&nbsp;<a href="https://github.com/fmhy"><img width="30px" src="./github.svg" alt="GitHub"></a>&nbsp;&nbsp;<a href="https://bsky.app/profile/fmhy.bsky.social"><img width="30px" src="./bluesky.svg" alt="Bluesky"></a>
<a href="https://discord.gg/Stz6y6NgNg"><img width="30px" src="./assets/discord.svg" alt="Discord"></a>&nbsp;&nbsp;<a href="https://github.com/fmhy"><img width="30px" src="./assets/github.svg" alt="GitHub"></a>&nbsp;&nbsp;<a href="https://bsky.app/profile/fmhy.bsky.social"><img width="30px" src="./assets/bluesky.svg" alt="Bluesky"></a>
</p>

6
.github/labeler.yml vendored
View file

@ -1,7 +1,9 @@
# See https://github.com/actions/labeler
docs:
- '**/*.md'
- 'docs/**/*.md'
core:
- '.vitepress/**'
- 'api/**'
- '.github/**'
- 'docs/.vitepress/**'

View file

@ -15,35 +15,3 @@ jobs:
uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
auto-assign:
runs-on: ubuntu-latest
needs: triage
steps:
- name: Check if PR has 'core' label
id: check_label
uses: actions/github-script@v6
with:
script: |
const prNumber = context.payload.pull_request.number;
const { data: labels } = await github.rest.issues.listLabelsOnIssue({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
});
const hasCoreLabel = labels.some(label => label.name === 'core');
return hasCoreLabel;
- name: Auto-assign to PR
if: steps.check_label.outputs.result == 'true'
uses: actions/github-script@v6
with:
script: |
const prNumber = context.payload.pull_request.number;
await github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
assignees: ['taskylizard'],
});