Skip to content

Commit 07890e3

Browse files
committed
feat!: align CoCreate repository and package naming
1 parent 205f42e commit 07890e3

5 files changed

Lines changed: 35 additions & 24 deletions

File tree

‎.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 CoCreate-resize
22

3-
This project is work of [many contributors](https://github.com/CoCreateJS/CoCreate-resize/graphs/contributors).
4-
You're encouraged to submit [pull requests](https://github.com/CoCreateJS/CoCreate-resize/pulls),
5-
[propose features and discuss issues](https://github.com/CoCreateJS/CoCreate-resize/issues).
3+
This project is work of [many contributors](https://github.com/CoCreateJS/resize/graphs/contributors).
4+
You're encouraged to submit [pull requests](https://github.com/CoCreateJS/resize/pulls),
5+
[propose features and discuss issues](https://github.com/CoCreateJS/resize/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/CoCreateJS/CoCreate-resize) and check out your copy.
11+
Fork the [project on Github](https://github.com/CoCreateJS/resize) and check out your copy.
1212

1313
```
1414
git clone https://github.com/contributor/CoCreate-resize.git
1515
cd CoCreate-resize
16-
git remote add upstream https://github.com/cocreatejs/CoCreate-resize.git
16+
git remote add upstream https://github.com/CoCreateJS/resize.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/CoCreateJS/CoCreate-resize](https://github.com/CoCreateJS/CoCreate-resize) and select your feature branch.
78+
Go to [https://github.com/CoCreateJS/resize](https://github.com/CoCreateJS/resize) 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

‎README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ A light weight resize handler make any element resizable by adding data attribut
55
![minified](https://img.badgesize.io/https://cdn.CoCreateJS.com/resize/latest/CoCreate-resize.min.js?style=flat-square&label=minified&color=orange)
66
![gzip](https://img.badgesize.io/https://cdn.CoCreateJS.com/resize/latest/CoCreate-resize.min.js?compression=gzip&style=flat-square&label=gzip&color=yellow)
77
![brotli](https://img.badgesize.io/https://cdn.CoCreateJS.com/resize/latest/CoCreate-resize.min.js?compression=brotli&style=flat-square&label=brotli)
8-
![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-resize?style=flat-square)
9-
![License](https://img.shields.io/github/license/CoCreate-app/CoCreate-resize?style=flat-square)
8+
![GitHub latest release](https://img.shields.io/github/v/release/CoCreateJS/resize?style=flat-square)
9+
![License](https://img.shields.io/github/license/CoCreateJS/resize?style=flat-square)
1010
![Hiring](https://img.shields.io/static/v1?style=flat-square&label=&message=Hiring&color=blueviolet)
1111

1212
![CoCreate-resize](https://cdn.CoCreateJS.com/docs/CoCreate-resize.gif)
@@ -50,13 +50,13 @@ $ yarn install @cocreate/resize
5050

5151
# Announcements
5252

53-
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreateJS/CoCreate-resize/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreateJS/CoCreate-resize/releases). You may also subscribe to email for releases and breaking changes.
53+
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreateJS/resize/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreateJS/resize/releases). You may also subscribe to email for releases and breaking changes.
5454

5555
<a name="roadmap"></a>
5656

5757
# Roadmap
5858

59-
If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreateJS/CoCreate-resize/issues) and [pull requests](https://github.com/CoCreateJS/CoCreate-resize/pulls). We would love to hear your feedback.
59+
If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreateJS/resize/issues) and [pull requests](https://github.com/CoCreateJS/resize/pulls). We would love to hear your feedback.
6060

6161
<a name="about"></a>
6262

@@ -72,14 +72,14 @@ CoCreate-resize is maintained and funded by CoCreate. The names and logos for Co
7272

7373
# How to Contribute
7474

75-
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreateJS/CoCreate-resize/blob/master/CONTRIBUTING.md) guide for details.
75+
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreateJS/resize/blob/master/CONTRIBUTING.md) guide for details.
7676

77-
We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreateJS/CoCreate-resize/issues) and [pull requests](https://github.com/CoCreateJS/CoCreate-resize/pulls) or merely upvote or comment on existing issues or pull requests.
77+
We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreateJS/resize/issues) and [pull requests](https://github.com/CoCreateJS/resize/pulls) or merely upvote or comment on existing issues or pull requests.
7878

7979
We appreciate your continued support, thank you!
8080

8181

8282
<a name="license"></a>
8383
# License
8484

85-
[The MIT License (MIT)](https://github.com/CoCreateJS/CoCreate-resize/blob/master/LICENSE)
85+
[The MIT License (MIT)](https://github.com/CoCreateJS/resize/blob/master/LICENSE)

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
},
2323
"repository": {
2424
"type": "git",
25-
"url": "git+https://github.com/cocreatejs/CoCreate-resize.git"
25+
"url": "git+https://github.com/CoCreateJS/resize.git"
2626
},
2727
"author": "CoCreate LLC",
2828
"license": "MIT",
2929
"bugs": {
30-
"url": "https://github.com/CoCreateJS/CoCreate-resize/issues"
30+
"url": "https://github.com/CoCreateJS/resize/issues"
3131
},
3232
"homepage": "https://CoCreateJS.com/docs/resize",
3333
"funding": {
3434
"type": "GitHub Sponsors ❤",
35-
"url": "https://github.com/sponsors/CoCreate-app"
35+
"url": "https://github.com/sponsors/CoCreateJS"
3636
},
3737
"main": "src/index.js",
3838
"devDependencies": {

0 commit comments

Comments
 (0)