feat(actions): support publish_repo: self for single-repo setups#760
Merged
feat(actions): support publish_repo: self for single-repo setups#760
publish_repo: self for single-repo setups#760Conversation
Contributor
|
33b3b0f to
6fec91f
Compare
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.
Problem
The composite action's "Request publish" step always creates a GitHub issue in a dedicated publish repository (defaulting to
{owner}/publish). Personal repos and small orgs don't have this repo, causing the action to fail.See: https://github.com/BYK/opencode-lore/actions/runs/22450348783
Solution
Add support for a
"self"sentinel value on the existingpublish_repoinput. When set, the publish request issue is created in the source repository itself instead of a separate publish repo — where the defaultGITHUB_TOKENalready has issue write access.Changes
action.yml: ResolvePUBLISH_REPO=self→$GITHUB_REPOSITORYin bash before anyghCLI callsdocs/andREADME.md: Document the"self"option forpublish_repoUsage
No changes to
release.yml— it already passespublish_repothrough as-is.