Rewrite lock-issue script to export main and call via require()#7437
Merged
Rewrite lock-issue script to export main and call via require()#7437
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Updated lock-issue.cjs to export main function instead of calling it directly - Updated compiler_activation_jobs.go to call main via require() like unlock-issue - Updated actions-build to sync the updated lock-issue.cjs file - Fixed lock_for_agent_test.go to check for require() pattern instead of inline JS - All lock_for_agent tests now passing Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Rewrite lock issue script to export main function
Rewrite lock-issue script to export main and call via require()
Dec 23, 2025
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.
The
lock-issue.cjsscript was callingmain()directly instead of exporting it, causing inconsistency withunlock-issue.cjsand preventing proper invocation viarequire().Changes
pkg/workflow/js/lock-issue.cjs: Exportmainfunction instead of calling directlypkg/workflow/compiler_activation_jobs.go: Callmainvia require() patternpkg/workflow/lock_for_agent_test.go: Update tests to verify require() pattern instead of inline JavaScriptBoth lock and unlock scripts now use consistent invocation patterns in compiled workflows.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/user/usr/bin/gh gh api user --jq .login 5/interpolate_prompt.js --jq /usr/lib/git-core/git-remote-https l GOWORK 64/pkg/tool/linu--show-toplevel /usr/lib/git-core/git-remote-https orig�� ithub/workflows 64/pkg/tool/linuGO111MODULE e/git-remote-https by/9c1531151d72bgh git 64/bin/go e/git-remote-htt--json(http block)/usr/bin/gh gh api user --jq .login tags/v6 --jq /usr/bin/git pment dependencigit gh 64/bin/go git rev-�� ithub/workflows 1; \ fi /usr/bin/git rite '../../**/*infocmp infocmp 64/bin/go git(http block)/usr/bin/gh gh api user --jq .login k/gh-aw/gh-aw/.github/workflows git e/git l Rewrite lock-iss-1 64/bin/go e/git auth�� om/actions/ai-inference.git om/actions/ai-inference.git "CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt", "REQUESTS_CA_B--no-pager t ./...)" ]; thegh infocmp 64/bin/go git(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 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.