-
-
Notifications
You must be signed in to change notification settings - Fork 0
π€ BlackRoad Enhancement #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,21 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: BlackRoad Operator | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| issues: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| types: [opened, edited] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| issue_comment: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| types: [created] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| blackroad: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if: contains(github.event.comment.body, '@blackroad') || contains(github.event.issue.body, '@blackroad') | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if: contains(github.event.comment.body, '@blackroad') || contains(github.event.issue.body, '@blackroad') | |
| if: > | |
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@blackroad')) || | |
| (github.event_name == 'issues' && contains(github.event.issue.body, '@blackroad')) |
Copilot
AI
Jan 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow lacks error handling and permissions configuration. The workflow should explicitly declare the required permissions (issues: write) for creating comments. Additionally, there's no error handling if the comment creation fails. Consider adding a 'permissions' block at the job level and wrapping the API call in a try-catch block.
| if: contains(github.event.comment.body, '@blackroad') || contains(github.event.issue.body, '@blackroad') | |
| steps: | |
| - uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body: 'π€ **@blackroad activated** - BlackRoad agents analyzing...' | |
| }); | |
| permissions: | |
| issues: write | |
| if: contains(github.event.comment.body, '@blackroad') || contains(github.event.issue.body, '@blackroad') | |
| steps: | |
| - uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| try { | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body: 'π€ **@blackroad activated** - BlackRoad agents analyzing...' | |
| }); | |
| } catch (error) { | |
| console.error('Failed to create issue comment:', error); | |
| core.setFailed(`Failed to create issue comment: ${error.message || error}`); | |
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,48 +1,27 @@ | ||
| BLACKROAD OS, INC. PROPRIETARY SOFTWARE LICENSE | ||
| # BlackRoad OS, Inc. - Proprietary License | ||
|
|
||
| Copyright Β© 2025-2026 BlackRoad OS, Inc. | ||
| All Rights Reserved. | ||
| Copyright Β© 2024-2026 BlackRoad OS, Inc. All Rights Reserved. | ||
|
|
||
| NOTICE: This software and associated documentation files (the "Software") are | ||
| the proprietary and confidential property of BlackRoad OS, Inc. ("Company"). | ||
| ## PROPRIETARY SOFTWARE | ||
|
|
||
| RESTRICTIONS: | ||
| This software and associated documentation files (the "Software") are proprietary | ||
| and confidential to BlackRoad OS, Inc. | ||
|
|
||
| 1. NO OPEN SOURCE: This Software is NOT open source. This is proprietary, | ||
| closed-source software owned exclusively by BlackRoad OS, Inc. | ||
| ## RESTRICTIONS | ||
|
|
||
| 2. NO REDISTRIBUTION: You may NOT copy, modify, merge, publish, distribute, | ||
| sublicense, or sell copies of this Software without explicit written | ||
| permission from BlackRoad OS, Inc. | ||
| 1. **Testing and evaluation purposes only** | ||
| 2. **NO commercial use** without explicit written permission | ||
| 3. **NO redistribution** in any form | ||
| 4. **NO modification** or derivative works without permission | ||
| 5. Software provided "AS IS" without warranty | ||
|
|
||
| 3. NO DERIVATIVE WORKS: You may NOT create derivative works based on this | ||
| Software without explicit written permission from BlackRoad OS, Inc. | ||
| ## PUBLIC VISIBILITY | ||
|
|
||
| 4. NO REVERSE ENGINEERING: You may NOT reverse engineer, decompile, or | ||
| disassemble this Software. | ||
| While publicly visible for transparency: | ||
| - Viewing and learning is permitted | ||
| - Using code requires explicit permission | ||
| - All rights remain with BlackRoad OS, Inc. | ||
|
Comment on lines
+18
to
+23
|
||
|
|
||
| 5. AUTHORIZED USE ONLY: Use of this Software is restricted to authorized | ||
| personnel of BlackRoad OS, Inc. and explicitly licensed partners only. | ||
| **Contact**: blackroad.systems@gmail.com | ||
|
|
||
| 6. CONFIDENTIALITY: This Software contains trade secrets and confidential | ||
| information. Unauthorized disclosure is prohibited. | ||
|
|
||
| 7. NO WARRANTY: This Software is provided "AS IS" without warranty of any | ||
| kind, express or implied. | ||
|
|
||
| 8. TERMINATION: Any violation of these terms results in immediate termination | ||
| of all rights to use this Software. | ||
|
|
||
| OWNERSHIP: | ||
| All intellectual property rights, including but not limited to patents, | ||
| copyrights, trademarks, and trade secrets in the Software are and shall | ||
| remain the exclusive property of BlackRoad OS, Inc. | ||
|
|
||
| CONTACT: | ||
| For licensing inquiries: blackroad.systems@gmail.com | ||
|
|
||
| BY ACCESSING OR USING THIS SOFTWARE, YOU ACKNOWLEDGE THAT YOU HAVE READ THIS | ||
| LICENSE, UNDERSTAND IT, AND AGREE TO BE BOUND BY ITS TERMS AND CONDITIONS. | ||
|
|
||
| BlackRoad OS, Inc. | ||
| https://blackroad.io | ||
| π€π£οΈ BlackRoad OS - The AI Operating System Revolution | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For
issue_commentevents, the job runs when either the new comment contains@blackroador the issue body contains it. That means once an issue is opened/edited with@blackroadin its body, every subsequent comment on that issue (even without@blackroad) will satisfy the condition and post an activation reply. This can cause spammy auto-replies on unrelated comments. To restrict activation to explicit mentions in the new comment, the issue-body check should only apply toissuesevents or be gated on the event type.Useful? React with πΒ / π.