chore: install GitHub-reward from idea2app/GitHub-reward#1
Draft
chore: install GitHub-reward from idea2app/GitHub-reward#1
Conversation
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [GOOD-4] Install GitHub-reward using npx command
chore: install GitHub-reward from idea2app/GitHub-reward
Mar 18, 2026
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com> Agent-Logs-Url: https://github.com/Open-Source-Bazaar/skillhub/sessions/b8bddc83-02e9-42d1-8fa5-b27b4719ff0b
Author
Fixed in commit Critical (addressed):
Important (addressed): Minor (addressed):
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/by copying its.github/directory contents verbatim.Files added:
.github/ISSUE_TEMPLATE/reward-task.yml— structured issue form (currency, amount, optional payer).github/scripts/type.ts— sharedRewardTypeScript interface.github/scripts/deno.json— Deno runtime config (nodeModulesDir: none).github/scripts/share-reward.ts— on issue close: finds merged PR via GraphQL variables (injection-safe), splits reward equally among author + assignees (bots excluded), creates areward-<issue>git tag, posts comment.github/scripts/count-reward.ts— monthly: aggregates last month'sreward-*tags per payee, createsstatistic-YYYY-MMtag + GitHub release.github/workflows/claim-issue-reward.yml— triggers onissues: closed(label-filtered toreward), validates amount, runsshare-reward.ts.github/workflows/statistic-member-reward.yml— runs0 0 1 * *, runscount-reward.ts(skips if no new commits since last statistic tag)Security fixes applied:
${{ ... }}expressions in workflowrun:blocks are now quoted to prevent shell command injectionshare-reward.tsrewritten with named variables ($owner,$name,$number) passed via separate-f/-Fflags — no user-controlled values interpolated into the query stringdeno --allow-allreplaced with--allow-run --allow-env --allow-read --allow-net=api.github.comin both workflowsactions/checkout@de0fac2e(v6.0.2),denoland/setup-deno@667a34cd(v2.0.4),stefanbuck/github-issue-parser@10dcc541(v3.2.3)GH_TOKENmoved from workflow-levelenvto step-levelenvonly on the step that requires itif: contains(github.event.issue.labels.*.name, 'reward')job filter — workflow only runs on reward-labeled issues^[0-9]+(\.[0-9]+)?$before the Deno script executesconcurrencygroup per issue number to prevent duplicate tags/comments on rapid re-close$(git rev-parse HEAD)incount-reward.tsreplaced with a captured variable passed as a proper zx argumentValidation
Commands run:
# No build/test steps required — pure GitHub Actions / Deno scripting additionRisk
contents: writeandissues: writepermissions (already granted viagithub.token). Workflow only fires when areward-labeled issue is closed.Notes
rewardlabel to the repository labels so the issue template's auto-label and the job-level label filter both work correctly.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.