Cannot publish using `ray publish`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.8k
- Forks
- 6.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 442
Description
Description
First issue [Resolved]
Trying to contribute to the Port Manager extension, the ray publish command is still looking at an old extension of mine I haven't touched in over a year.
fork extensions repo: could not get the latest changes. Head to https://github.com/Sheraff/extensions-urban-dictionary, select the Sync fork dropdown menu above the list of files, and then click Update branch. Once you've done that, try running this command again
Error: Error Body: {"message":"There are merge conflicts","documentation_url":"https://docs.github.com/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository"}
Thankfully this was fixable by going syncing my repo (thank you for a very explicit error message that includes a solution!). However it would be nice if it only looked at the extension I'm actually trying to publish when running ray publish from a specific extension folder.
Second issue
Since my first commit was made through the VSCode UI, i was able to add " characters without worrying about escaping them, though it looks like whatever the ray publish command is doing, it's not handling them well. I tried adding a second commit without " but it's still reading both, and so the command fails.
failed running git command 'git add "/Users/pellet/.config/raycast/public-extensions-fork/extensions/port-manager" && git commit -m "Update port-manager extension
- Add known-ports, making it easier to find commonly used processes
- Add "known ports", making it easier to find commonly used processes"', exit status 1
error: pathspec 'ports, making it easier to find commonly used processes' did not match any file(s) known to git
Thankfully this too is fixable, and there is documentation on how to rename a commit here https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message#amending-older-or-multiple-commit-messages. However it would be nice if the ray publish command did not fail when there is a " character in a commit message.
Steps To Reproduce
Not sure how to reproduce Issue 1. Probably
- create extension using a repo outside of
github.com/raycast - have other people contribute to the extension on
github.com/raycast - create a 2nd extension repo (using the "Fork Extension" raycast command)
- run
ray publishfrom the 2nd extension folder
For issue 2
- create an extension repo (using the "Fork Extension" raycast command)
- commit to it with a message that includes at least 1
"character - run
ray publishfrom that extension's folder
Current Behaviour
No response
Expected Behaviour
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ray publish command and reproduce the quoted-commit-message case described in the issue, then inspect how it selects the extension repository and invokes Git. Done means publishing from a specific extension uses that extension and commit messages containing quotation marks no longer cause the command to fail.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, github, typescript
- Domain
- cli, developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100