Skip to content

Commit

Permalink
chore(ci): copy updated changeset config and format.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW committed Dec 11, 2024
1 parent 6084720 commit c5aab6d
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "refinedev/refine" }],
"changelog": ["./format.js", { "repo": "refinedev/refine" }],
"commit": false,
"fixed": [],
"linked": [],
Expand Down
40 changes: 40 additions & 0 deletions _changeset/format.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
const clgh = require("@changesets/changelog-github");

const changelogFunctions = {
getDependencyReleaseLine: clgh.default.getDependencyReleaseLine,
getReleaseLine: async (changeset, tag, options) => {
const defaultChangeset = await clgh.default.getReleaseLine(
changeset,
tag,
options,
);

const isValid = ["community", "enterprise"].includes(
process.env.REFINE_RELEASE_TYPE,
);

if (!isValid) {
console.error(
"❌ REFINE_RELEASE_TYPE must be either community or enterprise",
);

process.exit(1);
}

let title = "";

if (process.env.REFINE_RELEASE_TYPE === "community") {
title = "\n\n📢 **Refine Community Release** 📢";
}

if (process.env.REFINE_RELEASE_TYPE === "enterprise") {
title = "\n\n⚡ **Refine Enterprise Release** ⚡";
}

const result = title + defaultChangeset;

return result;
},
};

exports.default = changelogFunctions;
8 changes: 4 additions & 4 deletions packages/appwrite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<div align="center">
<a href="https://refine.dev">Home Page</a> |
<a href="https://discord.gg/refine">Discord</a> |
<a href="https://refine.dev/examples/">Examples</a> |
<a href="https://refine.dev/blog/">Blog</a> |
<a href="https://refine.dev/examples/">Examples</a> |
<a href="https://refine.dev/blog/">Blog</a> |
<a href="https://refine.dev/docs/">Documentation</a>

<br/>
<br/>
<br/>

[![Discord](https://img.shields.io/discord/837692625737613362.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/refine)
Expand Down Expand Up @@ -79,6 +79,6 @@ const App = () => {
## Documentation

- For more detailed information on data provider usage, refer to the [refine data provider documentation](https://refine.dev/docs/core/providers/data-provider).
- [Refer to refine Appwrite docs](https://refine.dev/docs/packages/documentation/data-providers/appwrite/).
- [Refer to Refine Appwrite docs](https://refine.dev/docs/packages/documentation/data-providers/appwrite/).
- [Refer to documentation for more info about refine](https://refine.dev/docs/).
- [Step up to refine tutorials](https://refine.dev/docs/tutorial/introduction/index/).

0 comments on commit c5aab6d

Please sign in to comment.