chore: Automatically readme update deep link on first release

This commit is contained in:
LisoUseInAIKyrios committed 2026-06-29 13:22:08 +03:00
1 parent e21c61d4b0
commit 7b31620f3b
3 files changed
+8 -39

No files matched your search

@@ -212,6 +212,11 @@ expanded = (
)
generated = build_content(expanded=expanded)
# Replace template links if present
readme = readme.replace("https://morphe.software/add-source?github=xyz-user/xyz-patches", f"https://morphe.software/add-source?github={repo_full}")
readme = readme.replace("https://github.com/xyz-user/xyz-patches", f"https://github.com/{repo_full}")
new_readme = re.sub(
rf"{START_PATTERN}.*?{re.escape(END_MARKER)}",
f"{actual_start}\n{generated}\n{END_MARKER}",
-30
View File
@@ -1,30 +0,0 @@
# 👋 Contribution guidelines
This document describes how to contribute to Morphe Patches template.
## 📖 Resources to help you get started
* [Issues](https://github.com/Morpheapp/morphe-patches-template/issues) are where we keep track of bugs and feature requests
## 🙏 Submitting a feature request
Features can be requested by opening an issue using the
[Feature request issue template](https://github.com/MorpheApp/morphe-patches-template/issues/new?labels=Feature+request&template=feature_request.yml&title=feat%3A+).
## 🐞 Submitting a bug report
If you encounter a bug while using Morphe Patches template, open an issue using the
[Bug report issue template](https://github.com/MorpheApp/morphe-patches-template/issues/new?labels=Bug+report&template=bug_report.yml&title=bug%3A+).
## 📝 How to contribute
1. Before contributing, it is recommended to open an issue to discuss your change
with the maintainers of Morphe Patches template
2. Development happens on the `dev` branch. Fork the repository and create your branch from `dev`
3. Commit your changes
4. Submit a pull request to the `dev` branch of the repository and reference issues
that your pull request closes in the description of your pull request
5. Our team will review your pull request and provide feedback. Once your pull request is approved,
it will be merged into the `dev` branch and will be included in the next release of Morphe Patches template
❤️ Thank you for considering contributing to Morphe Patches template
+3 -9
View File
@@ -30,11 +30,10 @@ To start using this template, follow these steps:
2. [Create a new repository using this template](https://github.com/new?template_name=morphe-patches-template&template_owner=MorpheApp)
3. Set up the [build.gradle.kts](patches/build.gradle.kts) file (Specifically, the
[group of the project](patches/build.gradle.kts#L1), and the [About](patches/build.gradle.kts#L5-L11))
4. Set up the [README.md](README.md) file[^1] (e.g, title, description, license,
summary of the patches that are included in the repository), the [issue templates](.github/ISSUE_TEMPLATE)[^2]
and the [contribution guidelines](CONTRIBUTING.md)[^3].
4. Set up the [README.md](README.md) file (e.g, title, description, license,
summary of the patches that are included in the repository), the [issue templates](.github/ISSUE_TEMPLATE).
5. Choose a name for your patches project. Keep in mind you must use a unique name that does not
imply or suggest authorship by the Morphe open source project. If unsure, then simply name these
imply authorship by the Morphe open source project. If unsure, then simply name these
patches after yourself ("UserXYZ Morphe patches"). See the [NOTICE](NOTICE) for details.
6. (Optional): Add `patches-bundle.png` to the project if you want a custom icon to show in
Morphe Manager instead of your GitHub profile avatar.
@@ -84,11 +83,6 @@ Click here to add these patches to Morphe: https://morphe.software/add-source?gi
Or manually add this repository url as a patch source in Morphe: https://github.com/xyz-user/xyz-patches
### 📙 Contributing
Thank you for considering contributing to UserXYZ Morphe Patches.
You can find the contribution guidelines [here](CONTRIBUTING.md).
### 🛠️ Building
To build UserXYZ Morphe Patches,