Initial commit: 小南娘 - 面向可爱的蓝孩子的 git 学习实践项目
仿 Dress 的照片投稿仓库, 适配自建 Gitea 平台 git.xhmcl.com: - README / GUIDE (PR 教程) / CONTRIBUTING / Q&A / EXIF / PARTIAL_CLONE (中英双语) - A-Z + # 首字母目录结构 - .gitea: PR 模板、维护者名单、7 个纯 bash + API 的 Actions 工作流 (可选功能) Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
commit
cf17c9ea42
51 files changed
+2450
No files matched your search
@@ -0,0 +1,31 @@
|
||||
## Photo Submission Criteria
|
||||
|
||||
- Stolen pictures and unauthorized photos of other people are not accepted.
|
||||
- Loveliness is righteous.
|
||||
- Gender is unlimited.
|
||||
|
||||
### Privacy Notice
|
||||
|
||||
Please pay attention to preventing the accidental leakage of personal information. Please check carefully whether the EXIF information is properly handled (such as GPS tags) before you push the photo(s). If you want to delete EXIF, you can refer to the means below:
|
||||
|
||||
If the platform has Gitea Actions enabled, the project's automated checks block high-sensitivity metadata such as GPS, address, and contact fields. See the [EXIF field guide](EXIF.md) for the exact scope and sensitivity levels. If Actions is not enabled, no automatic blocking happens — please inspect and clean your images yourself before submitting.
|
||||
|
||||
> 1. Via [GIMP](https://www.gimp.org/downloads/):Open GIMP and import the image you want to edit. Go to "File" > "Export As" and choose a format like JPEG. In the "Export Image" window, click on "Advanced Options". Uncheck the "Save EXIF data" option. Click "Export" to save the image without EXIF data.
|
||||
>
|
||||
> 2. Via Command-Line Tool [ExifTool](https://exiftool.org/):Open the command prompt (Windows) or terminal (Mac/Linux). Use the following command to delete all EXIF information from the picture and save it as a new file:
|
||||
> ```bash
|
||||
> exiftool -all= -o new_image.jpg image.jpg
|
||||
> ```
|
||||
> 3. Via Online Tools:Go to an online EXIF removal tool, upload the image you want to edit. The website will automatically remove the EXIF data, and you can then download the processed image. (If you consider safety issues, please take other methods)
|
||||
>
|
||||
> *(If Actions is enabled, you can also use the `/auto-fix` command in the PR comments to strip EXIF before merging.)*
|
||||
|
||||
### Pay attention to size
|
||||
|
||||
To prevent excessive resource usage on the platform, please check the photo size before uploading. If it exceeds `1MB`, you need to compress the image.
|
||||
|
||||
Compression methods are as follows:
|
||||
|
||||
> **Use an online tool:** Open any online image compression website, upload the image file you want to process, and the site will automatically compress it. Then, simply download the processed image. (If you have security concerns, please use alternative methods.)
|
||||
>
|
||||
> *(If Actions is enabled, you can also use the `/auto-fix` command in the PR comments to compress images automatically.)*
|
||||
@@ -0,0 +1,89 @@
|
||||
# 📋 What is EXIF?
|
||||
|
||||
## Introduction
|
||||
|
||||
**EXIF** (Exchangeable Image File Format) is a "digital dossier" embedded in image files.
|
||||
Every time you take a photo with a phone or camera, the device automatically records information about the shot — including **where you took it**, **what device you used**, and **when you took it**.
|
||||
|
||||
Besides EXIF itself, images may also carry metadata formats such as **IPTC** and **XMP**, which can store location and personal information as well.
|
||||
|
||||
For submission criteria and common metadata cleaning methods, see [Contribution Preparation](CONTRIBUTING.md).
|
||||
|
||||
> ⚠️ If the platform has Gitea Actions enabled, the "highly sensitive" fields below are detected automatically by the repository workflows and must be fixed. **If Actions is not enabled, no automatic blocking happens — please inspect your images yourself before submitting.**
|
||||
|
||||
---
|
||||
|
||||
## 🔴 Highly Sensitive
|
||||
|
||||
**These fields are detected automatically (when Actions is enabled) and must be removed.**
|
||||
|
||||
| Field | Description |
|
||||
|---|---|
|
||||
| `GPS:GPSLatitude` / `GPS:GPSLongitude` | Exact geographic coordinates, locatable to meter level |
|
||||
| `GPS:GPSAltitude` | Altitude |
|
||||
| `GPS:GPSDateStamp` + `GPS:GPSTimeStamp` | Exact capture time (combined with coordinates can reconstruct movements) |
|
||||
| `GPS:GPSSpeed` / `GPS:GPSTrack` / `GPS:GPSImgDirection` | Movement speed and direction |
|
||||
| `IPTC:City` / `IPTC:Country` / `IPTC:Sub-location` / `IPTC:Province-State` | Textual shooting address |
|
||||
| `XMP-photoshop:City` / `XMP-photoshop:Country` / `XMP-photoshop:State` | Address written by Photoshop/Lightroom |
|
||||
| `XMP-iptcCore:CreatorWorkEmail` | Creator's work email |
|
||||
| `XMP-iptcCore:CreatorWorkTelephone` | Creator's phone number |
|
||||
| `XMP-iptcCore:CreatorCity` / `CreatorCountry` / `CreatorPostalCode` | Creator's contact address |
|
||||
|
||||
---
|
||||
|
||||
## 🟠 Somewhat Sensitive
|
||||
|
||||
**These fields won't cause a PR rejection, but please be aware — serial numbers in particular can track the same device across photos.**
|
||||
|
||||
| Field | Description |
|
||||
|---|---|
|
||||
| `EXIF:BodySerialNumber` / `EXIF:CameraSerialNumber` | Device serial number, trackable across images |
|
||||
| `EXIF:LensSerialNumber` | Lens serial number |
|
||||
| `EXIF:Artist` / `XMP-dc:Creator` | Photographer/creator name |
|
||||
| `MakerNotes:FaceName` / `XMP-mwg-rs:PersonInImageName` | Names bound by camera face recognition |
|
||||
|
||||
---
|
||||
|
||||
## 🟡 Low Sensitivity
|
||||
|
||||
**These have little privacy impact and are not blocked; keeping them is acceptable.**
|
||||
|
||||
| Field | Description |
|
||||
|---|---|
|
||||
| `EXIF:DateTimeOriginal` | Capture time (low risk without location) |
|
||||
| `EXIF:Make` / `EXIF:Model` | Camera/phone brand and model |
|
||||
| `EXIF:Software` | Post-processing software |
|
||||
| `EXIF:FNumber` / `EXIF:ExposureTime` / `EXIF:ISO` | Aperture, shutter speed, ISO and other photography parameters |
|
||||
| `EXIF:Copyright` | Copyright notice |
|
||||
|
||||
---
|
||||
|
||||
## 🔍 How to Self-Check
|
||||
|
||||
Use the following commands before submitting to see whether high-sensitivity information remains:
|
||||
|
||||
```bash
|
||||
# Install exiftool
|
||||
# macOS: brew install exiftool
|
||||
# Ubuntu: sudo apt install libimage-exiftool-perl
|
||||
# Windows: https://exiftool.org/
|
||||
|
||||
# Check a single image
|
||||
exiftool -GPS:all -IPTC:City -IPTC:Country-PrimaryLocationName \
|
||||
-XMP-photoshop:City -XMP-iptcCore:CreatorWorkEmail your_photo.jpg
|
||||
|
||||
# If the command above prints nothing, all high-sensitivity fields are cleaned.
|
||||
```
|
||||
|
||||
### Remove All Metadata Completely
|
||||
```bash
|
||||
# Delete all EXIF/XMP/IPTC (the most thorough)
|
||||
exiftool -all= -o cleaned_photo.jpg your_photo.jpg
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📖 Further Reading
|
||||
|
||||
- [ExifTool Official Documentation](https://exiftool.org/)
|
||||
- [EXIF (Wikipedia)](https://en.wikipedia.org/wiki/Exif)
|
||||
+173
@@ -0,0 +1,173 @@
|
||||
# 🌟 Beginner Guide (PR Tutorial)
|
||||
|
||||
Welcome to the XiaoNanNiang project! This guide will walk you through making your first Pull Request (PR).
|
||||
|
||||
> This project is hosted on our self-hosted platform [git.xhmcl.com](https://git.xhmcl.com), which is based on Gitea. The workflow is essentially the same as GitHub's, but button positions and some wording differ slightly; the steps below follow the Gitea UI.
|
||||
>
|
||||
> **Important: the platform only serves HTTP(S) — there is no SSH.** Use `https://` URLs for all clones and pushes; you don't need to configure any SSH keys.
|
||||
|
||||
---
|
||||
|
||||
## 📋 Workflow Overview
|
||||
|
||||
```
|
||||
Fork the repository → Add your photos → Commit → Open a Pull Request (PR) → Wait for review & merge
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 1: Fork the Repository
|
||||
|
||||
> **Fork** = copy someone else's repository to your own account so you can modify it freely without affecting the original project!
|
||||
|
||||
1. Open the [XiaoNanNiang repository page](https://git.xhmcl.com/xhgit/dress-pr)
|
||||
2. Click the **Fork** button in the top-right corner
|
||||
3. This creates a copy under your account, at something like `https://git.xhmcl.com/<your-username>/dress-pr`
|
||||
|
||||
---
|
||||
|
||||
## Step 2: Add Your Photos
|
||||
|
||||
> **Commit** = a "snapshot" of your changes, recording what you modified. Each commit becomes a history entry!
|
||||
|
||||
### Method A: Upload directly on the web (easiest, nothing to install)
|
||||
|
||||
1. Go to your forked repository page (`https://git.xhmcl.com/<your-username>/dress-pr`)
|
||||
2. Pick the first-letter directory matching your planned folder name (e.g. `Yueosa` goes into `Y`; names starting with digits or symbols go into `#`)
|
||||
3. Click the **+** (add file) button in the top-right → **New File**
|
||||
4. In the file name field, enter `your-folder-name/README.md` (e.g. `Yueosa/README.md`) — this creates the folder automatically; the folder name does not have to match your account ID
|
||||
5. Write anything you like in the file (e.g. a self-introduction)
|
||||
6. Click **Commit Changes**
|
||||
7. Click **+** again → **Upload File**, and upload your photos into the folder you just created
|
||||
8. Click **Commit Changes**
|
||||
|
||||
### Method B: Using the Git command line
|
||||
|
||||
> **Clone** = download the remote repository to your computer.
|
||||
> **Push** = upload your local commits to the remote repository (your fork).
|
||||
|
||||
```bash
|
||||
# 1. Clone your fork (the platform only supports HTTP URLs)
|
||||
# Use --depth 1 to fetch only the latest commit, since the repo history is large
|
||||
git clone --depth 1 https://git.xhmcl.com/<your-username>/dress-pr.git
|
||||
cd dress-pr
|
||||
```
|
||||
|
||||
If the repository has too many images and a normal clone is too slow, you can use a partial clone instead to download only your own directory:
|
||||
|
||||
```bash
|
||||
git clone --filter=blob:none --sparse --depth 1 https://git.xhmcl.com/<your-username>/dress-pr.git
|
||||
cd dress-pr
|
||||
git sparse-checkout set '<first-letter>/<your-folder-name>'
|
||||
```
|
||||
|
||||
Partial clone does not affect normal commits and PRs. For directory management, full history and restoring the complete repository, read the [Partial Clone Guide](PARTIAL_CLONE.md).
|
||||
|
||||
After cloning, create your folder and add photos:
|
||||
|
||||
```bash
|
||||
# 2. Create your folder and add photos
|
||||
# <first-letter> should match the first character of <your-folder-name>;
|
||||
# use # for names starting with digits or symbols
|
||||
mkdir -p <first-letter>/<your-folder-name>
|
||||
cp /path/to/your/photos/* <first-letter>/<your-folder-name>/
|
||||
|
||||
# 3. Commit your changes
|
||||
git add .
|
||||
git commit -m "Add photos for <your-folder-name>"
|
||||
|
||||
# 4. Push to your fork
|
||||
git push origin main
|
||||
```
|
||||
|
||||
> 🔑 **Authentication for push**: the platform has no SSH, so Git will ask for a username and password when pushing. The password is **not your login password** — it's an "Access Token":
|
||||
>
|
||||
> 1. Click your avatar in the top-right → **Settings** → **Applications**
|
||||
> 2. Under "Manage Access Tokens", click **Generate Token**
|
||||
> 3. Name it anything; grant repository read-write permissions (check the read/write boxes under `repository` if permissions are granular)
|
||||
> 4. **Copy the token immediately after generation** — it is shown only once
|
||||
> 5. When pushing: username = your account name, password = the token
|
||||
|
||||
---
|
||||
|
||||
## Step 3: Open a Pull Request
|
||||
|
||||
> **Pull Request (PR)** = an application to the maintainers of the original repository: "I made some changes in my fork, please merge them into the original project!"
|
||||
|
||||
1. Go back to your forked repository page
|
||||
2. Click the **Pull Requests** tab → **New Pull Request**
|
||||
- If you just pushed, a banner usually appears on the page — just click its button
|
||||
3. Confirm the merge direction:
|
||||
- **Base**: the `main` branch of `xhgit/dress-pr`
|
||||
- **Head**: the branch you just pushed in your fork
|
||||
4. Fill in the PR description:
|
||||
- The platform auto-fills the repository's **PR template**
|
||||
- **Do not delete the `<!-- pr-type: images -->` marker line at the top**
|
||||
- Check every item in the "Checklist" section (change `[ ]` to `[x]`)
|
||||
- Not submitting photos? Change `pr-type` to `ci_wf` / `docs` / `others` and follow the instructions in the template
|
||||
5. Click **Create Pull Request**
|
||||
|
||||
---
|
||||
|
||||
## Step 4: Wait for Review
|
||||
|
||||
For photo PRs, the following items need to pass:
|
||||
|
||||
- 📋 **PR content**: checklist complete and fully checked, image changes present, files under the matching `A-Z/#/nickname/` directory
|
||||
- 📏 **File size**: images must be ≤ 1 MiB (1 MB)
|
||||
- 🔒 **EXIF data**: images must not contain high-sensitivity metadata (mainly **GPS coordinates** and address fields)
|
||||
|
||||
> If the platform has Gitea Actions enabled, these checks run **automatically**, and results appear in the "Checks" area of the PR page; failures are explained in comments. If Actions is not enabled, maintainers perform these checks manually and will also explain problems in comments.
|
||||
|
||||
If a check fails, fix the problem and **push** again (or re-commit if using the web UI) — the checks re-run automatically.
|
||||
|
||||
If Actions is enabled, you can also comment **`/auto-fix`** to fix issues automatically: it compresses images to under 1 MiB and strips **all** EXIF (more thorough than the check). If you don't want your files modified, fix them yourself and push again.
|
||||
|
||||
Once a maintainer approves, your PR gets merged. Congratulations on your first open-source contribution! 🎉
|
||||
|
||||
---
|
||||
|
||||
## ⚠️ Before You Submit
|
||||
|
||||
1. **Compress images** — make sure each image is under 1 MiB. Online tools like [TinyPNG](https://tinypng.com/) can help.
|
||||
2. **Remove high-sensitivity EXIF** — most importantly **GPS coordinates**, which can pinpoint exactly where the photo was taken. Photos may also carry address and contact information. See the [EXIF field guide](EXIF.md) and the [cleaning methods in Contribution Preparation](CONTRIBUTING.md).
|
||||
3. **Name folders correctly** — use meaningful folder names (they don't have to match your account ID) and place them under the matching `A-Z/#` directory by first character.
|
||||
4. **Original photos only** — submit only your own photos; stolen pictures are not accepted.
|
||||
5. **Only modify your own folder** — don't touch other people's folders or project files.
|
||||
6. **Avoid Chinese characters and spaces in file names** — they can cause display or download problems on some systems. Prefer English letters, digits and hyphens.
|
||||
7. **Use a token for push, not your login password** — see Step 2 Method B above.
|
||||
|
||||
---
|
||||
|
||||
## 🔗 Reference Links
|
||||
|
||||
- [Project README](README.md)
|
||||
- [Contribution Preparation](CONTRIBUTING.md)
|
||||
- [EXIF Guide](EXIF.md)
|
||||
- [Q&A](Q&A.md)
|
||||
- [Partial Clone Guide](PARTIAL_CLONE.md)
|
||||
- [Merged PR examples](https://git.xhmcl.com/xhgit/dress-pr/pulls?state=closed)
|
||||
|
||||
---
|
||||
|
||||
# Repository Workflows (Optional Feature)
|
||||
|
||||
> ⚠️ This section depends on the platform having **Gitea Actions** enabled with at least one Ubuntu runner. When not enabled, the automation below does not run and maintainers check manually. The workflow files live in [.gitea/workflows/](../.gitea/workflows/).
|
||||
|
||||
## Workflow Overview
|
||||
|
||||
| Workflow | File | Trigger | Behavior |
|
||||
| --- | --- | --- | --- |
|
||||
| Greetings | `greetings.yml` | `pull_request_target` | Posts a bilingual welcome comment on a contributor's first PR |
|
||||
| Check PR Content | `check_pr_content.yml` | `pull_request_target` (opened / synchronize / reopened / edited) | All PR types must have a fully checked checklist; `images` must include image changes under the `A-Z/#/nickname/` structure; `ci_wf` changes must stay inside `.gitea/`; unknown `pr-type` fails |
|
||||
| Check File Size | `check_file_size.yml` | `pull_request_target` (opened / synchronize / reopened) | `images` PRs only: all changed images must be ≤ 1 MiB; oversized files are listed in a comment with a `/auto-fix` hint; check fails |
|
||||
| Check Image EXIF Data | `check_exif.yml` | `pull_request_target` (opened / synchronize / reopened; concurrent runs cancelled) | `images` PRs only: downloads changed images and runs `exiftool` to detect GPS / address / contact metadata; regular photography parameters are fine; hits are commented with a `/auto-fix` hint |
|
||||
| Auto-fix Image Files | `auto_fix.yml` | `issue_comment` (comment starting with `/auto-fix`, by a maintainer or the PR author) | Checks out the PR branch → strips all EXIF with `exiftool` → loops compression (`jpegoptim / pngquant / optipng / ImageMagick`, up to 20 attempts) down to ≤ 1 MiB → pushes back to the PR branch to re-trigger checks; on compression failure it reverts everything without pushing and comments the reason |
|
||||
| Fast-forward for PR | `fast-forward.yml` | `issue_comment` / `pull_request_review_comment` (comment containing `/fast-forward`) | Verifies the commenter has `write` access, then merges the PR via the platform API with rebase, preserving original commits and signatures; comments on failure |
|
||||
| Mark Stale PRs | `stale.yml` | `schedule` (cron: `0 11 * * *`) | PRs only: long-inactive PRs are marked with a warning and closed after 7 more days without a response (issues are not touched) |
|
||||
|
||||
> **Notes**:
|
||||
> - The pr-type is read from the `<!-- pr-type: xxx -->` tag in the PR body: `images / ci_wf / docs / others`; when missing it defaults to `images`.
|
||||
> - All workflows are plain shell + platform API — no third-party actions, nothing fetched from GitHub.
|
||||
> - If your Gitea version does not support the `pull_request_target` event, change it to `pull_request` in the workflow files.
|
||||
> - `/auto-fix` needs to push back to the PR branch: configure the `BOT_USER` and `BOT_TOKEN` secrets in the repo's Settings → Actions → Secrets (a bot account token with write access to forks). Without them, `/auto-fix` comments an explanation and exits.
|
||||
@@ -0,0 +1,109 @@
|
||||
# Partial Clone Guide
|
||||
|
||||
[简体中文](../PARTIAL_CLONE.md)
|
||||
|
||||
The XiaoNanNiang repository contains a large number of images. Using only `--depth 1` skips old commits but still downloads all images in the current version. If you only intend to modify your own directory, it's recommended to combine partial clone with sparse checkout: Git first downloads commits and the directory structure, and only fetches files on demand when the selected directory is checked out.
|
||||
|
||||
> Requires Git 2.25 or higher. Run `git --version` to check.
|
||||
> The platform only serves HTTP(S) — use the `https://` URLs below.
|
||||
|
||||
## First Clone
|
||||
|
||||
Fork this repository on the platform first, then clone your own fork. Replace the username and directory with actual values:
|
||||
|
||||
```bash
|
||||
git clone --filter=blob:none --sparse --depth 1 https://git.xhmcl.com/<your-username>/dress-pr.git
|
||||
cd dress-pr
|
||||
|
||||
# Check out only your own directory; you can set it even if it does not exist remotely yet
|
||||
git sparse-checkout set '<first-letter>/<your-folder-name>'
|
||||
```
|
||||
|
||||
For example, to use `Y/Yueosa`:
|
||||
|
||||
```bash
|
||||
git sparse-checkout set 'Y/Yueosa'
|
||||
```
|
||||
|
||||
Now the working tree contains the root documents and `Y/Yueosa`, without other contributors' images. If the folder name starts with a digit or symbol, use the `#` directory and always quote the path:
|
||||
|
||||
```bash
|
||||
git sparse-checkout set '#/233'
|
||||
```
|
||||
|
||||
Next you can create directories, add photos, and use `git add`, `git commit` and `git push` as usual. Continue to the [Beginner Guide](GUIDE.md) for the full contribution workflow.
|
||||
|
||||
## Managing Checked-Out Directories
|
||||
|
||||
View the currently selected directories:
|
||||
|
||||
```bash
|
||||
git sparse-checkout list
|
||||
```
|
||||
|
||||
Add another directory while keeping existing ones:
|
||||
|
||||
```bash
|
||||
git sparse-checkout add 'A/AnotherName'
|
||||
```
|
||||
|
||||
When re-selecting directories, `set` replaces the previous directory list:
|
||||
|
||||
```bash
|
||||
git sparse-checkout set 'F/FirstName' 'S/SecondName'
|
||||
```
|
||||
|
||||
Git downloads files in newly selected directories as needed, so the smaller the directory, the less download and disk usage.
|
||||
|
||||
## Getting More History
|
||||
|
||||
`--depth 1` creates a shallow clone containing only the latest commit. Normal photo submission and PRs are unaffected; if you need the full history, run:
|
||||
|
||||
```bash
|
||||
git fetch --unshallow
|
||||
```
|
||||
|
||||
This fetches the complete commit history, while image contents are still fetched on demand by the partial clone.
|
||||
|
||||
## Restoring the Full Repository
|
||||
|
||||
If you just want all files of the current version in the working tree, disable sparse checkout:
|
||||
|
||||
```bash
|
||||
git sparse-checkout disable
|
||||
```
|
||||
|
||||
This downloads files not yet fetched for the current version and can be large. The repository keeps its partial clone settings, and old-version files continue to be fetched on demand.
|
||||
|
||||
If you really need to convert the repository to a full clone with all history and contents, continue with:
|
||||
|
||||
```bash
|
||||
git fetch --unshallow --no-filter
|
||||
git config --unset remote.origin.partialclonefilter
|
||||
git config --unset remote.origin.promisor
|
||||
```
|
||||
|
||||
If you already ran `git fetch --unshallow`, it will tell you the repository is not shallow; use `git fetch --no-filter` instead.
|
||||
|
||||
## FAQ
|
||||
|
||||
### Why do root documents still appear?
|
||||
|
||||
`git clone --sparse` uses cone mode by default. This mode keeps the repository root files so you can read `README.md`, `GUIDE.md` and other documentation directly.
|
||||
|
||||
### Why can't I see the directory I just selected?
|
||||
|
||||
Run `git sparse-checkout list` first to check the path, case and first-letter directory. New directories that don't exist remotely won't appear automatically; they show up in the working tree only after you create and add files.
|
||||
|
||||
### Does partial clone affect commits or PRs?
|
||||
|
||||
No. Files that are not checked out are still managed by Git and won't be deleted when you `git add` or commit your own directory. Only modify your own directory, and check your changes with `git status` before committing.
|
||||
|
||||
### Push fails with an authentication error?
|
||||
|
||||
The platform has no SSH. Push with the `https://` URL and authenticate with "username + access token". See Step 2 Method B of the [Beginner Guide](GUIDE.md) for how to generate a token.
|
||||
|
||||
## References
|
||||
|
||||
- [Git Documentation: Partial Clone](https://git-scm.com/docs/partial-clone)
|
||||
- [Git Documentation: Sparse Checkout](https://git-scm.com/docs/git-sparse-checkout)
|
||||
@@ -0,0 +1,29 @@
|
||||
WHY???
|
||||
--------------
|
||||
|
||||
In short: We're encouraging more people to learn and understand the core ideas of Git and the Gitea platform without coding.
|
||||
|
||||
There are quasi-programmers and non-programmers who need to participate in collaborative projects. So it's exactly suitable to practice in this project because no coding skills are required here.
|
||||
|
||||
Will this project take up a lot of platform resources?
|
||||
---------------
|
||||
|
||||
No.
|
||||
|
||||
Contributors are required to compress their photos before making pull requests. Photos which are larger than 1MB per file or don't meet our standard will be rejected. It's also considered to be a training course of the Git workflow for them.
|
||||
|
||||
In the future, we might clean orphaned objects regularly to keep the availability of the repo.
|
||||
|
||||
Is this project really helpful?
|
||||
---------------
|
||||
|
||||
Yes, we think so.
|
||||
|
||||
This project has drawn attention to Git collaboration and taught lots of people "the ideas and the workflow of Git" and "how to use Git simply" in an easy-to-understand way.
|
||||
|
||||
This project has also developed users' team cooperation ability: Join the discussion and solve problems such as forking, merging branches, controlling the size of repos, maintaining repos, and so on.
|
||||
|
||||
How to join us?
|
||||
---------------
|
||||
|
||||
Please refer to [README.md](README.md) and the [Beginner Guide](GUIDE.md).
|
||||
@@ -0,0 +1,57 @@
|
||||
## XiaoNanNiang - A Study and Practice Project of Git for Cute Boys (/ω\)
|
||||
|
||||
[简体中文](../README.md)
|
||||
|
||||
> ***If you are feeling puzzled and weird about the project, please read [Q&A](Q&A.md)***
|
||||
|
||||
[](http://creativecommons.org/licenses/by-nc-sa/4.0/)
|
||||
|
||||
Hosted on our self-hosted Git platform (based on Gitea): [git.xhmcl.com/xhgit/dress-pr](https://git.xhmcl.com/xhgit/dress-pr)
|
||||
|
||||
> The platform only serves HTTP(S) — there is no SSH. Use `https://` URLs for all clone/push operations; no SSH key setup is needed. See the [Beginner Guide](GUIDE.md) for the full walkthrough.
|
||||
|
||||
This simple repository requires no contribution of code, so that you can participate in it without having any coding skills. This project helps you to learn the whole process of cloning a repository, creating a branch, pushing and pulling commits, and making a pull request, thus you can have a good knowledge of Git and the Gitea platform.
|
||||
|
||||
**Of course, you need to prepare a photo of you dressed in women's clothing first.**
|
||||
|
||||
### File and Folder Naming Rules and Filetype Standards
|
||||
|
||||
- Stolen pictures and unauthorized photos of other people are not accepted
|
||||
- Please attempt to use meaningful folder names
|
||||
- Use your platform username or roman character social media IDs as folder names
|
||||
- Folders are organized alphabetically
|
||||
- Please try to avoid spaces in folder names
|
||||
- Pull requests with folder names that attempt to influence ordering (ex: ```AAAA.Folder```, ```0.Folder```, ```111Folder```) will be closed
|
||||
- If you need to add a descriptive file in your folder, please compose it using [Markdown](https://en.wikipedia.org/wiki/Markdown).
|
||||
- Please attempt to compress your images (less than 1 MB) and remove high-sensitivity metadata listed in the [EXIF field guide](EXIF.md) using the [removal methods](CONTRIBUTING.md); pull requests with excessively large image files will be closed
|
||||
|
||||
### Automated Checks (Optional)
|
||||
|
||||
If the platform has Gitea Actions enabled with a registered runner, the [workflows](../.gitea/workflows) run automatically:
|
||||
|
||||
- 📋 **PR Content Check** — checklist, pr-type tag, folder placement
|
||||
- 📏 **File Size Check** — images must be ≤ 1 MiB
|
||||
- 🔒 **EXIF Check** — blocks high-sensitivity metadata (GPS / address / contact)
|
||||
- ✨ **`/auto-fix`** — comment command: compress images and strip all EXIF automatically
|
||||
- ⏩ **`/fast-forward`** — comment command: maintainer rebase-merge
|
||||
- 🧹 **Stale PR Cleanup** — warn and close long-inactive PRs
|
||||
|
||||
When Actions is not enabled, maintainers perform these checks manually. See the "Workflows" section of [GUIDE.md](GUIDE.md).
|
||||
|
||||
### Contributors
|
||||
|
||||
Thanks to all contributors! [View the contributor list](https://git.xhmcl.com/xhgit/dress-pr/activity/contributors)
|
||||
|
||||
### License
|
||||
|
||||
This repository is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
|
||||
|
||||
### Contribution Preparation
|
||||
|
||||
Please read [Contribution Preparation](CONTRIBUTING.md) carefully.
|
||||
|
||||
### Beginner Guide
|
||||
|
||||
First time contributing? Read the [Beginner Guide](GUIDE.md) for a step-by-step walkthrough of the Fork → Commit → Pull Request workflow.
|
||||
|
||||
When contributing with the Git CLI, read the [Partial Clone Guide](PARTIAL_CLONE.md) to download only the directory you need and reduce network transfer and disk usage.
|
||||
Reference in new issue
Block a user