-
Notifications
You must be signed in to change notification settings - Fork 0
π€ BlackRoad Enhancement #1
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') && | |
| contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) | |
| || | |
| (github.event_name == 'issues' && | |
| contains(github.event.issue.body, '@blackroad') && | |
| contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.issue.author_association)) |
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.
Gate issue-body check to issues events to avoid spam
Because the job-level if always checks contains(github.event.issue.body, '@blackroad'), any issue whose body includes @blackroad will cause the workflow to run on every issue_comment event, even when the new comment doesnβt mention @blackroad. This results in repeated bot comments for unrelated replies (e.g., an issue opened with @blackroad, then any later βthanksβ comment triggers another activation). Consider limiting the issue-body check to issues events (or gating on github.event_name) so comment-triggered runs only react to the comment body.
Useful? React with πΒ / π.
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.
The workflow attempts to use context.issue.number for both issue and issue_comment events. However, when triggered by an issue_comment event on a pull request, this field may not be available or may reference the wrong entity. The workflow should properly handle both issues and pull requests by checking the event type and using the appropriate context fields.
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| const issueNumber = | |
| (context.payload.issue && context.payload.issue.number) || | |
| (context.payload.pull_request && context.payload.pull_request.number) || | |
| context.issue.number; | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: issueNumber, |
| 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. | ||
|
|
||
| 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.
The condition checks both
github.event.comment.bodyandgithub.event.issue.body, but when the workflow is triggered by theissuesevent (opened or edited), there is nogithub.event.commentobject. This will cause an error when the workflow is triggered by issue events. The condition should be structured to check the appropriate object based on the triggering event, or use separate jobs for issue and comment events.