Skip to content

Commit 90dcfff

Browse files
committed
Merge branch 'dev'
# Conflicts: # CHANGELOG.md # CoCreate.config.js # README.md # package.json
2 parents a62736e + 118fa1d commit 90dcfff

15 files changed

Lines changed: 207 additions & 346 deletions

‎.github/FUNDING.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These are supported funding model platforms
22

3-
github: CoCreate-app
3+
github: CoCreateJS

‎.github/workflows/automated.yml‎

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,27 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v7
1414

15-
- name: Sync package.json description to GitHub About
15+
- name: Sync package.json description and keywords to GitHub repository
1616
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB }}
17+
GH_TOKEN: ${{ secrets.GITHUB }}
1818
run: |
19-
DESC=$(jq -r '.description // empty' package.json)
20-
if [ -n "$DESC" ]; then
21-
echo "Updating repository description to: $DESC"
22-
gh api -X PATCH repos/${{ github.repository }} -f description="$DESC"
19+
if [ ! -f package.json ]; then
20+
echo "No package.json found; skipping repository metadata sync."
21+
exit 0
22+
fi
23+
24+
DESCRIPTION=$(jq -r '.description // empty' package.json)
25+
if [ -n "$DESCRIPTION" ]; then
26+
gh api --method PATCH "repos/${GITHUB_REPOSITORY}" -f description="$DESCRIPTION"
27+
else
28+
echo "No package description found; leaving GitHub description unchanged."
29+
fi
30+
31+
if jq -e '.keywords | type == "array"' package.json >/dev/null; then
32+
TOPICS=$(jq -c '.keywords | map(ascii_downcase | gsub("[^a-z0-9-]+"; "-") | gsub("(^-+|-+$)"; "") | .[0:50]) | map(select(length > 0)) | unique | .[0:20]' package.json)
33+
printf '{"names":%s}' "$TOPICS" | gh api --method PUT -H "Accept: application/vnd.github+json" "repos/${GITHUB_REPOSITORY}/topics" --input -
2334
else
24-
echo "No description found in package.json."
35+
echo "No package keywords found; leaving GitHub topics unchanged."
2536
fi
2637
2738
release:

‎CONTRIBUTING.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Contributing to CoCreateJS
22

3-
This project is work of [many contributors](https://github.com/CoCreate-app/CoCreateJS/graphs/contributors).
4-
You're encouraged to submit [pull requests](https://github.com/CoCreate-app/CoCreateJS/pulls),
5-
[propose features and discuss issues](https://github.com/CoCreate-app/CoCreateJS/issues).
3+
This project is work of [many contributors](https://github.com/CoCreateJS/CoCreateJS/graphs/contributors).
4+
You're encouraged to submit [pull requests](https://github.com/CoCreateJS/CoCreateJS/pulls),
5+
[propose features and discuss issues](https://github.com/CoCreateJS/CoCreateJS/issues).
66

77
In the examples below, substitute your Github username for `contributor` in URLs.
88

99
## Fork the Project
1010

11-
Fork the [project on Github](https://github.com/CoCreate-app/CoCreateJS) and check out your copy.
11+
Fork the [project on Github](https://github.com/CoCreateJS/CoCreateJS) and check out your copy.
1212

1313
```
1414
git CoCreateJS https://github.com/contributor/CoCreateJS.git
1515
cd CoCreateJS
16-
git remote add upstream https://github.com/CoCreate-app/CoCreateJS.git
16+
git remote add upstream https://github.com/CoCreateJS/CoCreateJS.git
1717
```
1818

1919
## Create a Topic Branch
@@ -75,7 +75,7 @@ git push origin my-feature-branch
7575

7676
## Make a Pull Request
7777

78-
Go to [https://github.com/CoCreate-app/CoCreateJS](https://github.com/CoCreate-app/CoCreateJS) and select your feature branch.
78+
Go to [https://github.com/CoCreateJS/CoCreateJS](https://github.com/CoCreateJS/CoCreateJS) and select your feature branch.
7979
Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
8080

8181
## Rebase

0 commit comments

Comments
 (0)