opensource-showcase 0.1.10 → 0.1.12
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/dist/commands/showcase.d.ts.map +1 -1
- package/dist/commands/showcase.js +59 -14
- package/dist/commands/showcase.js.map +1 -1
- package/dist/repo/generate-command-workflow.d.ts.map +1 -1
- package/dist/repo/generate-command-workflow.js +73 -2
- package/dist/repo/generate-command-workflow.js.map +1 -1
- 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="https://
|
|
4
|
+
<img width="800" alt="opensource-showcase" src="https://raw.githubusercontent.com/opensource-showcase/opensource-showcase/main/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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showcase.d.ts","sourceRoot":"","sources":["../../src/commands/showcase.ts"],"names":[],"mappings":"AAAA;;GAEG;AA6BH,KAAK,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEnD,UAAU,aAAa;IACrB,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;
|
|
1
|
+
{"version":3,"file":"showcase.d.ts","sourceRoot":"","sources":["../../src/commands/showcase.ts"],"names":[],"mappings":"AAAA;;GAEG;AA6BH,KAAK,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEnD,UAAU,aAAa;IACrB,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA0HD,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBzE;AAED,wBAAsB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgB5E;AAED,wBAAsB,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC,CAmBjE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAuBhE;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAc9D;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CA0CrD"}
|
|
@@ -59,18 +59,29 @@ async function writeLocalShowcase(data) {
|
|
|
59
59
|
await writeFile(INDEX_FILE, generateSite(updated), 'utf-8');
|
|
60
60
|
}
|
|
61
61
|
async function fetchContribution(octokit, prRef) {
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
let pr;
|
|
63
|
+
try {
|
|
64
|
+
const { data } = await octokit.rest.pulls.get({
|
|
64
65
|
owner: prRef.owner,
|
|
65
66
|
repo: prRef.repo,
|
|
66
67
|
pull_number: prRef.number,
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
});
|
|
69
|
+
pr = data;
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
const err = error;
|
|
73
|
+
if (err.status === 404) {
|
|
74
|
+
throw new ValidationError(`Could not access ${prRef.url}. Check that the PR URL is correct and the repository is public. Private repositories are not supported by the .opensource issue-command workflow.`);
|
|
75
|
+
}
|
|
76
|
+
throw error;
|
|
77
|
+
}
|
|
71
78
|
if (!pr.merged_at) {
|
|
72
79
|
throw new ValidationError(`PR is not merged: ${prRef.url}`);
|
|
73
80
|
}
|
|
81
|
+
const [repository, prDetails] = await Promise.all([
|
|
82
|
+
fetchRepository(octokit, prRef.owner, prRef.repo),
|
|
83
|
+
fetchPRDetails(octokit, prRef.owner, prRef.repo, prRef.number),
|
|
84
|
+
]);
|
|
74
85
|
return {
|
|
75
86
|
repo: `${prRef.owner}/${prRef.repo}`,
|
|
76
87
|
pr_number: prRef.number,
|
|
@@ -154,7 +165,7 @@ export function parseShowcaseCommand(body) {
|
|
|
154
165
|
.map((line) => line.trim())
|
|
155
166
|
.filter(Boolean);
|
|
156
167
|
for (const line of lines) {
|
|
157
|
-
const match = line.match(
|
|
168
|
+
const match = line.match(/^(?:\/|@)?showcase\s+(add|remove|refresh)(?:\s+(\S+))?/i);
|
|
158
169
|
if (!match || !match[1])
|
|
159
170
|
continue;
|
|
160
171
|
const action = match[1].toLowerCase();
|
|
@@ -164,7 +175,7 @@ export function parseShowcaseCommand(body) {
|
|
|
164
175
|
}
|
|
165
176
|
return { action, prUrl };
|
|
166
177
|
}
|
|
167
|
-
throw new ValidationError('No showcase command found. Use /showcase add <pr-url>, /showcase remove <pr-url>, or /showcase refresh.');
|
|
178
|
+
throw new ValidationError('No showcase command found. Use /showcase add <pr-url>, showcase add <pr-url>, /showcase remove <pr-url>, or /showcase refresh.');
|
|
168
179
|
}
|
|
169
180
|
export async function issueCommand(body) {
|
|
170
181
|
const command = parseShowcaseCommand(body);
|
|
@@ -209,7 +220,7 @@ export async function setupBotCommand() {
|
|
|
209
220
|
const commandIssueUrl = await ensureCommandIssue(octokit, user.login);
|
|
210
221
|
logger.success(`Issue-command bot workflow installed in ${user.login}/${OPENSOURCE_REPO_NAME}`);
|
|
211
222
|
logger.info(`Command issue: ${commandIssueUrl}`);
|
|
212
|
-
logger.info('Comment there with /showcase add <pr-url>');
|
|
223
|
+
logger.info('Comment there with /showcase add <pr-url> or showcase add <pr-url>');
|
|
213
224
|
}
|
|
214
225
|
async function getWorkflowFileSha(octokit, username) {
|
|
215
226
|
try {
|
|
@@ -238,6 +249,7 @@ async function upsertWorkflowFile(octokit, username, content, sha) {
|
|
|
238
249
|
});
|
|
239
250
|
}
|
|
240
251
|
async function ensureCommandIssue(octokit, username) {
|
|
252
|
+
const body = generateCommandIssueBody();
|
|
241
253
|
const { data: existingIssues } = await octokit.rest.issues.listForRepo({
|
|
242
254
|
owner: username,
|
|
243
255
|
repo: OPENSOURCE_REPO_NAME,
|
|
@@ -246,24 +258,57 @@ async function ensureCommandIssue(octokit, username) {
|
|
|
246
258
|
});
|
|
247
259
|
const existing = existingIssues.find((issue) => issue.title === COMMAND_ISSUE_TITLE);
|
|
248
260
|
if (existing) {
|
|
261
|
+
if (existing.body !== body) {
|
|
262
|
+
await octokit.rest.issues.update({
|
|
263
|
+
owner: username,
|
|
264
|
+
repo: OPENSOURCE_REPO_NAME,
|
|
265
|
+
issue_number: existing.number,
|
|
266
|
+
body,
|
|
267
|
+
});
|
|
268
|
+
}
|
|
249
269
|
return existing.html_url;
|
|
250
270
|
}
|
|
251
271
|
const { data: issue } = await octokit.rest.issues.create({
|
|
252
272
|
owner: username,
|
|
253
273
|
repo: OPENSOURCE_REPO_NAME,
|
|
254
274
|
title: COMMAND_ISSUE_TITLE,
|
|
255
|
-
body
|
|
275
|
+
body,
|
|
276
|
+
});
|
|
277
|
+
return issue.html_url;
|
|
278
|
+
}
|
|
279
|
+
function generateCommandIssueBody() {
|
|
280
|
+
return `# Showcase command center
|
|
281
|
+
|
|
282
|
+
Use comments on this issue to update your open source showcase.
|
|
256
283
|
|
|
257
|
-
|
|
284
|
+
<p align="center">
|
|
285
|
+
<img src="https://img.shields.io/badge/showcase-commands-0969da?style=for-the-badge" alt="Showcase commands">
|
|
286
|
+
</p>
|
|
287
|
+
|
|
288
|
+
## Commands
|
|
289
|
+
|
|
290
|
+
| Command | What it does |
|
|
291
|
+
| --- | --- |
|
|
292
|
+
| \`/showcase add <pr-url>\` | Adds one merged public pull request to \`contributions.json\`, then regenerates \`README.md\` and \`index.html\`. |
|
|
293
|
+
| \`showcase add <pr-url>\` | Same as above, without the slash. |
|
|
294
|
+
| \`/showcase remove <pr-url>\` | Removes that pull request from your showcase and regenerates the files. |
|
|
295
|
+
| \`/showcase refresh\` | Re-fetches metadata for pull requests already in your showcase: title, description, stars, language, additions, deletions, files changed, reviewers, and merge data. It does not discover or add new PRs. |
|
|
296
|
+
|
|
297
|
+
## Examples
|
|
258
298
|
|
|
259
299
|
\`\`\`txt
|
|
260
300
|
/showcase add https://github.com/org/repo/pull/123
|
|
301
|
+
showcase add https://github.com/org/repo/pull/123
|
|
261
302
|
/showcase remove https://github.com/org/repo/pull/123
|
|
262
303
|
/showcase refresh
|
|
263
304
|
\`\`\`
|
|
264
305
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
306
|
+
## Notes
|
|
307
|
+
|
|
308
|
+
- Only explicitly provided pull requests are added.
|
|
309
|
+
- Private repositories are not supported by this no-server workflow.
|
|
310
|
+
- Prefer \`/showcase\` or plain \`showcase\`. Avoid \`@showcase\` because it can mention a GitHub user.
|
|
311
|
+
- Commands are ignored unless they come from repository owners, members, or collaborators.
|
|
312
|
+
- The workflow reacts with 🚀 on success and 😕 on failure, then comments with the result.`;
|
|
268
313
|
}
|
|
269
314
|
//# sourceMappingURL=showcase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showcase.js","sourceRoot":"","sources":["../../src/commands/showcase.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAiB5C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AAC,MAAM,CAAC,MAAM,CAAC;gBAC/B,KAAK,EAAE,QAAQ;gBACf,IAAI,EAAE,oBAAoB;gBAC1B,YAAY,EAAE,QAAQ,CAAC,MAAM;gBAC7B,IAAI;aACL,CAAC,CAAC;QACL,CAAC;QAED,OAAO,QAAQ,CAAC,QAAQ,CAAC;IAC3B,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QACvD,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,mBAAmB;QAC1B,IAAI;KACL,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC,QAAQ,CAAC;AACxB,CAAC;AAED,SAAS,wBAAwB;IAC/B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2FAgCkF,CAAC;AAC5F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-command-workflow.d.ts","sourceRoot":"","sources":["../../src/repo/generate-command-workflow.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,uBAAuB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"generate-command-workflow.d.ts","sourceRoot":"","sources":["../../src/repo/generate-command-workflow.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,uBAAuB,IAAI,MAAM,CAuHhD"}
|
|
@@ -23,7 +23,7 @@ permissions:
|
|
|
23
23
|
jobs:
|
|
24
24
|
showcase-command:
|
|
25
25
|
runs-on: ubuntu-latest
|
|
26
|
-
if: github.event_name == 'workflow_dispatch' || ((github.event.issue.author_association == 'OWNER' || github.event.issue.author_association == 'MEMBER' || github.event.issue.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'COLLABORATOR') && (contains(github.event.issue.title, 'showcase') || contains(github.event.issue.body, '/showcase') || contains(github.event.comment.body, '/showcase')))
|
|
26
|
+
if: github.event_name == 'workflow_dispatch' || ((github.event.issue.author_association == 'OWNER' || github.event.issue.author_association == 'MEMBER' || github.event.issue.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'COLLABORATOR') && (contains(github.event.issue.title, 'showcase') || contains(github.event.issue.body, '/showcase') || contains(github.event.issue.body, 'showcase add') || contains(github.event.issue.body, 'showcase remove') || contains(github.event.issue.body, 'showcase refresh') || contains(github.event.comment.body, '/showcase') || contains(github.event.comment.body, 'showcase add') || contains(github.event.comment.body, 'showcase remove') || contains(github.event.comment.body, 'showcase refresh')))
|
|
27
27
|
steps:
|
|
28
28
|
- uses: actions/checkout@v4
|
|
29
29
|
|
|
@@ -32,10 +32,22 @@ jobs:
|
|
|
32
32
|
node-version: 20
|
|
33
33
|
|
|
34
34
|
- name: Run showcase command
|
|
35
|
+
id: run_command
|
|
35
36
|
env:
|
|
36
37
|
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }}
|
|
37
38
|
SHOWCASE_COMMAND: \${{ github.event.comment.body || github.event.issue.body || inputs.command }}
|
|
38
|
-
run:
|
|
39
|
+
run: |
|
|
40
|
+
set +e
|
|
41
|
+
npx --yes opensource-showcase@latest command -- "$SHOWCASE_COMMAND" > showcase-command.log 2>&1
|
|
42
|
+
status=$?
|
|
43
|
+
cat showcase-command.log
|
|
44
|
+
{
|
|
45
|
+
echo "status=$status"
|
|
46
|
+
echo "output<<EOF"
|
|
47
|
+
tail -c 4000 showcase-command.log
|
|
48
|
+
echo "EOF"
|
|
49
|
+
} >> "$GITHUB_OUTPUT"
|
|
50
|
+
exit "$status"
|
|
39
51
|
|
|
40
52
|
- name: Commit showcase updates
|
|
41
53
|
run: |
|
|
@@ -48,6 +60,65 @@ jobs:
|
|
|
48
60
|
fi
|
|
49
61
|
git commit -m "Update showcase from issue command"
|
|
50
62
|
git push
|
|
63
|
+
|
|
64
|
+
- name: Add success reaction
|
|
65
|
+
if: success() && github.event.issue.number
|
|
66
|
+
env:
|
|
67
|
+
GH_TOKEN: \${{ secrets.GITHUB_TOKEN }}
|
|
68
|
+
run: |
|
|
69
|
+
if [ -n "\${{ github.event.comment.id }}" ]; then
|
|
70
|
+
gh api \
|
|
71
|
+
--method POST \
|
|
72
|
+
-H "Accept: application/vnd.github+json" \
|
|
73
|
+
"/repos/\${{ github.repository }}/issues/comments/\${{ github.event.comment.id }}/reactions" \
|
|
74
|
+
-f content="rocket"
|
|
75
|
+
else
|
|
76
|
+
gh api \
|
|
77
|
+
--method POST \
|
|
78
|
+
-H "Accept: application/vnd.github+json" \
|
|
79
|
+
"/repos/\${{ github.repository }}/issues/\${{ github.event.issue.number }}/reactions" \
|
|
80
|
+
-f content="rocket"
|
|
81
|
+
fi
|
|
82
|
+
|
|
83
|
+
- name: Comment success
|
|
84
|
+
if: success() && github.event.issue.number
|
|
85
|
+
env:
|
|
86
|
+
GH_TOKEN: \${{ secrets.GITHUB_TOKEN }}
|
|
87
|
+
run: gh issue comment "\${{ github.event.issue.number }}" --body "✅ Showcase updated."
|
|
88
|
+
|
|
89
|
+
- name: Add failure reaction
|
|
90
|
+
if: failure() && github.event.issue.number
|
|
91
|
+
env:
|
|
92
|
+
GH_TOKEN: \${{ secrets.GITHUB_TOKEN }}
|
|
93
|
+
run: |
|
|
94
|
+
if [ -n "\${{ github.event.comment.id }}" ]; then
|
|
95
|
+
gh api \
|
|
96
|
+
--method POST \
|
|
97
|
+
-H "Accept: application/vnd.github+json" \
|
|
98
|
+
"/repos/\${{ github.repository }}/issues/comments/\${{ github.event.comment.id }}/reactions" \
|
|
99
|
+
-f content="confused"
|
|
100
|
+
else
|
|
101
|
+
gh api \
|
|
102
|
+
--method POST \
|
|
103
|
+
-H "Accept: application/vnd.github+json" \
|
|
104
|
+
"/repos/\${{ github.repository }}/issues/\${{ github.event.issue.number }}/reactions" \
|
|
105
|
+
-f content="confused"
|
|
106
|
+
fi
|
|
107
|
+
|
|
108
|
+
- name: Comment failure
|
|
109
|
+
if: failure() && github.event.issue.number
|
|
110
|
+
env:
|
|
111
|
+
GH_TOKEN: \${{ secrets.GITHUB_TOKEN }}
|
|
112
|
+
COMMAND_OUTPUT: \${{ steps.run_command.outputs.output }}
|
|
113
|
+
run: |
|
|
114
|
+
{
|
|
115
|
+
echo "❌ Could not update showcase."
|
|
116
|
+
echo
|
|
117
|
+
echo "\`\`\`txt"
|
|
118
|
+
printf '%s\\n' "$COMMAND_OUTPUT"
|
|
119
|
+
echo "\`\`\`"
|
|
120
|
+
} > failure-comment.md
|
|
121
|
+
gh issue comment "\${{ github.event.issue.number }}" --body-file failure-comment.md
|
|
51
122
|
`;
|
|
52
123
|
}
|
|
53
124
|
//# sourceMappingURL=generate-command-workflow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-command-workflow.js","sourceRoot":"","sources":["../../src/repo/generate-command-workflow.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,UAAU,uBAAuB;IACrC,OAAO
|
|
1
|
+
{"version":3,"file":"generate-command-workflow.js","sourceRoot":"","sources":["../../src/repo/generate-command-workflow.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,UAAU,uBAAuB;IACrC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHR,CAAC;AACF,CAAC"}
|
|
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.12",
|
|
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": {
|