opensource-showcase 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -4
- package/images/logo-banner.png +0 -0
- package/images/logo-profile-512x512.png +0 -0
- package/images/logo.svg +64 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# opensource-showcase
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<img width="800" alt="opensource-showcase" src="
|
|
4
|
+
<img width="800" alt="opensource-showcase" src="images/logo-banner.png">
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## Overview
|
|
18
18
|
|
|
19
|
-
opensource-showcase helps developers document their open source work by
|
|
19
|
+
opensource-showcase helps developers document their open source work by curating merged pull requests from GitHub and generating a professional portfolio. The tool creates a dedicated `.opensource` repository with a web portfolio, README, and machine-readable contribution data.
|
|
20
20
|
|
|
21
21
|
## Installation
|
|
22
22
|
|
|
@@ -49,6 +49,20 @@ npm install -g opensource-showcase
|
|
|
49
49
|
- `index.html` - Interactive portfolio page
|
|
50
50
|
- `README.md` - Formatted contribution list
|
|
51
51
|
|
|
52
|
+
5. Optional: install the issue-command workflow so you can add or remove PRs later from a GitHub issue:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
opensource-showcase setup-bot
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The command creates or updates a `Showcase commands` issue in your `.opensource` repo. Comment there with:
|
|
59
|
+
|
|
60
|
+
```txt
|
|
61
|
+
/showcase add https://github.com/org/repo/pull/123
|
|
62
|
+
showcase remove https://github.com/org/repo/pull/123
|
|
63
|
+
/showcase refresh
|
|
64
|
+
```
|
|
65
|
+
|
|
52
66
|
## Features
|
|
53
67
|
|
|
54
68
|
### Automatic Data Collection
|
|
@@ -72,10 +86,18 @@ npm install -g opensource-showcase
|
|
|
72
86
|
|
|
73
87
|
### Professional Output
|
|
74
88
|
|
|
75
|
-
- GitHub Pages-ready HTML portfolio with search
|
|
89
|
+
- GitHub Pages-ready HTML portfolio with search
|
|
76
90
|
- Markdown README with organization logos and detailed PR information
|
|
77
91
|
- JSON export following the .opensource specification
|
|
78
92
|
|
|
93
|
+
### Issue Commands
|
|
94
|
+
|
|
95
|
+
- Add one explicit public merged PR from a comment
|
|
96
|
+
- Remove one PR from the showcase
|
|
97
|
+
- Refresh metadata for already selected PRs
|
|
98
|
+
- GitHub Actions replies with success/failure comments and emoji reactions
|
|
99
|
+
- No server or GitHub App required
|
|
100
|
+
|
|
79
101
|
## Commands
|
|
80
102
|
|
|
81
103
|
```bash
|
|
@@ -85,6 +107,10 @@ opensource-showcase whoami # Show authenticated user
|
|
|
85
107
|
opensource-showcase status # Display current contributions
|
|
86
108
|
opensource-showcase config # View or edit configuration
|
|
87
109
|
opensource-showcase logout # Clear authentication
|
|
110
|
+
opensource-showcase add <pr-url> # Add one PR from a local .opensource checkout
|
|
111
|
+
opensource-showcase remove <pr-url> # Remove one PR from a local .opensource checkout
|
|
112
|
+
opensource-showcase refresh # Refresh already selected PR metadata
|
|
113
|
+
opensource-showcase setup-bot # Install issue-command workflow in .opensource
|
|
88
114
|
opensource-showcase --all # Bypass filtering
|
|
89
115
|
opensource-showcase --fresh # Start from scratch, ignore existing data
|
|
90
116
|
```
|
|
@@ -95,6 +121,23 @@ opensource-showcase --fresh # Start from scratch, ignore existing data
|
|
|
95
121
|
- `--all` - Include all PRs without filtering
|
|
96
122
|
- `--fresh` - Ignore existing contributions and start fresh
|
|
97
123
|
|
|
124
|
+
## Issue Command Workflow
|
|
125
|
+
|
|
126
|
+
`setup-bot` installs a GitHub Actions workflow in your own `.opensource` repository. It also creates or updates an issue titled `Showcase commands`.
|
|
127
|
+
|
|
128
|
+
Use comments on that issue to manage the portfolio:
|
|
129
|
+
|
|
130
|
+
| Command | Action |
|
|
131
|
+
| --------------------------- | -------------------------------------------------------------------------------------------------------- |
|
|
132
|
+
| `/showcase add <pr-url>` | Adds one merged public pull request and regenerates `contributions.json`, `README.md`, and `index.html`. |
|
|
133
|
+
| `showcase add <pr-url>` | Same as above, without the slash. |
|
|
134
|
+
| `/showcase remove <pr-url>` | Removes that pull request from the showcase and regenerates files. |
|
|
135
|
+
| `/showcase refresh` | Re-fetches metadata for PRs already in the showcase. It does not discover or add new PRs. |
|
|
136
|
+
|
|
137
|
+
The workflow only accepts commands from repository owners, members, or collaborators. It uses the built-in GitHub Actions `GITHUB_TOKEN`, so users do not need to create a secret.
|
|
138
|
+
|
|
139
|
+
`refresh` updates metadata such as title, description, stars, language, additions, deletions, changed files, reviewers, and merge data for PRs already stored in `contributions.json`.
|
|
140
|
+
|
|
98
141
|
## Configuration
|
|
99
142
|
|
|
100
143
|
Create a configuration file at `~/.opensourcerc`:
|
|
@@ -135,7 +178,6 @@ Machine-readable JSON following the [.opensource specification](https://github.c
|
|
|
135
178
|
A static HTML portfolio page with:
|
|
136
179
|
|
|
137
180
|
- Search functionality across all contributions
|
|
138
|
-
- Language-based filtering
|
|
139
181
|
- Responsive design
|
|
140
182
|
- Rich markdown rendering for PR descriptions
|
|
141
183
|
- Reviewer information with avatars
|
|
@@ -213,6 +255,24 @@ src/
|
|
|
213
255
|
- Run `opensource-showcase logout` to clear credentials
|
|
214
256
|
- Run `opensource-showcase login` to re-authenticate
|
|
215
257
|
|
|
258
|
+
**setup-bot cannot create workflow file:**
|
|
259
|
+
|
|
260
|
+
- Run `opensource-showcase logout`
|
|
261
|
+
- Run `opensource-showcase login`
|
|
262
|
+
- Run `opensource-showcase setup-bot`
|
|
263
|
+
- The bot setup requires the GitHub OAuth `workflow` scope
|
|
264
|
+
|
|
265
|
+
**Issue command cannot add a PR:**
|
|
266
|
+
|
|
267
|
+
- Verify the PR URL is correct
|
|
268
|
+
- Verify the PR is merged
|
|
269
|
+
- Verify the repository is public
|
|
270
|
+
- Private repositories are not supported by the no-server issue-command workflow
|
|
271
|
+
|
|
272
|
+
## npm README Images
|
|
273
|
+
|
|
274
|
+
The npm registry can be stricter than GitHub about externally hosted images. Avoid relying on GitHub user-attachment screenshots in this README; badges from stable providers such as Shields.io are used because they render reliably on both GitHub and npm.
|
|
275
|
+
|
|
216
276
|
**GitHub Pages not working:**
|
|
217
277
|
|
|
218
278
|
- Verify the repository is public
|
|
Binary file
|
|
Binary file
|
package/images/logo.svg
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<svg width="680" height="400" viewBox="0 0 680 400" role="img" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<title>.opensource logo</title>
|
|
3
|
+
<desc>Logo for the opensource-showcase project featuring a stylized merge symbol and dot notation</desc>
|
|
4
|
+
|
|
5
|
+
<style>
|
|
6
|
+
.bg { fill: #0a0d12; }
|
|
7
|
+
.ring-outer { fill: none; stroke: #1e3a5f; stroke-width: 1; }
|
|
8
|
+
.ring-mid { fill: none; stroke: #1e3a5f; stroke-width: 0.5; stroke-dasharray: 4 6; }
|
|
9
|
+
.node-main { fill: #3b82f6; }
|
|
10
|
+
.node-merged { fill: #22c55e; }
|
|
11
|
+
.node-branch { fill: #a855f7; }
|
|
12
|
+
.node-dot { fill: #06b6d4; }
|
|
13
|
+
.line-main { stroke: #3b82f6; stroke-width: 2.5; fill: none; }
|
|
14
|
+
.line-branch { stroke: #a855f7; stroke-width: 1.5; fill: none; stroke-dasharray: 5 3; }
|
|
15
|
+
.line-merge { stroke: #22c55e; stroke-width: 2; fill: none; }
|
|
16
|
+
.glow-blue { fill: #3b82f6; opacity: 0.08; }
|
|
17
|
+
.glow-green { fill: #22c55e; opacity: 0.08; }
|
|
18
|
+
.dot-text { font-family: 'JetBrains Mono', monospace; font-size: 42px; font-weight: 700; fill: #e2e8f0; letter-spacing: -1px; }
|
|
19
|
+
.dot-accent { fill: #3b82f6; }
|
|
20
|
+
.sub-text { font-family: 'JetBrains Mono', monospace; font-size: 13px; fill: #64748b; letter-spacing: 3px; }
|
|
21
|
+
.tag-text { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; fill: #3b82f6; }
|
|
22
|
+
.tag-bg { fill: #0f1a2e; stroke: #1e3a5f; stroke-width: 1; }
|
|
23
|
+
.spark { fill: #f59e0b; }
|
|
24
|
+
</style>
|
|
25
|
+
|
|
26
|
+
<rect class="bg" width="680" height="400" rx="16"/>
|
|
27
|
+
<circle class="ring-outer" cx="160" cy="200" r="110"/>
|
|
28
|
+
<circle class="ring-mid" cx="160" cy="200" r="78"/>
|
|
29
|
+
<circle cx="160" cy="200" r="48" fill="#0f1a2e"/>
|
|
30
|
+
<circle class="glow-blue" cx="160" cy="130" r="36"/>
|
|
31
|
+
<circle class="glow-green" cx="160" cy="200" r="28"/>
|
|
32
|
+
<line class="line-main" x1="160" y1="110" x2="160" y2="270"/>
|
|
33
|
+
<path class="line-branch" d="M160 145 Q108 165 108 200 Q108 235 160 255"/>
|
|
34
|
+
<path class="line-merge" d="M108 200 Q134 200 160 200"/>
|
|
35
|
+
<circle class="node-branch" cx="160" cy="145" r="8"/>
|
|
36
|
+
<circle cx="160" cy="145" r="4" fill="#0a0d12"/>
|
|
37
|
+
<circle class="node-merged" cx="160" cy="200" r="11"/>
|
|
38
|
+
<circle cx="160" cy="200" r="5" fill="#0a0d12"/>
|
|
39
|
+
<circle class="node-main" cx="160" cy="255" r="8"/>
|
|
40
|
+
<circle cx="160" cy="255" r="4" fill="#0a0d12"/>
|
|
41
|
+
<circle class="node-branch" cx="108" cy="200" r="7"/>
|
|
42
|
+
<circle cx="108" cy="200" r="3" fill="#0a0d12"/>
|
|
43
|
+
<circle class="node-dot" cx="160" cy="110" r="5"/>
|
|
44
|
+
<circle class="node-dot" cx="160" cy="270" r="5"/>
|
|
45
|
+
<circle cx="212" cy="200" r="4" fill="#1e3a5f"/>
|
|
46
|
+
<circle cx="225" cy="175" r="2.5" fill="#1e3a5f"/>
|
|
47
|
+
<circle cx="225" cy="225" r="2.5" fill="#1e3a5f"/>
|
|
48
|
+
<circle cx="200" cy="155" r="2" fill="#1e3a5f"/>
|
|
49
|
+
<circle cx="200" cy="245" r="2" fill="#1e3a5f"/>
|
|
50
|
+
<circle class="spark" cx="128" cy="138" r="2"/>
|
|
51
|
+
<circle class="spark" cx="192" cy="162" r="1.5"/>
|
|
52
|
+
<circle cx="118" cy="230" r="1.5" fill="#a855f7" opacity="0.6"/>
|
|
53
|
+
<circle cx="195" cy="238" r="1.5" fill="#22c55e" opacity="0.6"/>
|
|
54
|
+
<text x="300" y="185" class="dot-text"><tspan class="dot-accent">.</tspan>opensource</text>
|
|
55
|
+
<text x="302" y="218" class="sub-text">SHOWCASE</text>
|
|
56
|
+
<rect x="300" y="238" width="176" height="22" rx="4" class="tag-bg"/>
|
|
57
|
+
<text x="308" y="253" class="tag-text">$ npx opensource-showcase</text>
|
|
58
|
+
<circle cx="634" cy="72" r="18" fill="#0f1a2e" stroke="#1e3a5f" stroke-width="1"/>
|
|
59
|
+
<circle cx="634" cy="72" r="5" fill="#22c55e"/>
|
|
60
|
+
<circle cx="634" cy="72" r="9" fill="none" stroke="#22c55e" stroke-width="1" opacity="0.3"/>
|
|
61
|
+
<circle cx="54" cy="320" r="12" fill="#0f1a2e" stroke="#1e3a5f" stroke-width="0.5"/>
|
|
62
|
+
<circle cx="54" cy="320" r="4" fill="#a855f7" opacity="0.7"/>
|
|
63
|
+
<circle cx="620" cy="330" r="6" fill="#3b82f6" opacity="0.2" stroke="#3b82f6" stroke-width="0.5"/>
|
|
64
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opensource-showcase",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "CLI tool to curate and showcase your open source contributions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cli.js",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
+
"images",
|
|
12
13
|
"README.md"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|