Git Product home page Git Product logo

Comments (6)

spenserblack avatar spenserblack commented on August 25, 2024 1

I was thinking about granularly saying what was the issue, but, yeah, one single catchall error message like "please enable the repo and make an initial page" would probably be good enough.

Nitpick: we might try checking if the repo exists in a separate step.

This is because I just generally prefer a doThing if valid else fail pattern to try doThing catch fail. Though I'll admit this is more nitpicky, and not that related to performance, when bash scripting.

from actions-wiki.

jcbhmr avatar jcbhmr commented on August 25, 2024 1

Doesn't really matter 🤷‍♂️

I notice a lot of code issue things are piling up, so I guess it's time to actually do #23 and get on it 👨‍💻👨‍💻

from actions-wiki.

spenserblack avatar spenserblack commented on August 25, 2024 1

I think this is overdue:

@all-contributors add @jcbhmr for ideas

from actions-wiki.

spenserblack avatar spenserblack commented on August 25, 2024

Just double-checked since I thought it was pretty weird that the repository doesn't even exist until the initial page is created.

https://docs.github.com/en/communities/documenting-your-project-with-wikis/adding-or-editing-wiki-pages#cloning-wikis-to-your-computer

Once you've created an initial page on GitHub, you can clone the repository

We can at least use a GraphQL query to detect if the wiki is enabled (it can probably be gotten from the REST API, too).

I was hoping to be able to automatically create the initial page 😞
Apparently there aren't any API endpoints, either, from my quick search, to create an initial page.

from actions-wiki.

jcbhmr avatar jcbhmr commented on August 25, 2024

I don't even think you need to do that! You can just git <whatever> | grep -i 'remote: repository not found' and if it matches, you know that the repo wasn't found, therefore, show a more informative error message.

from actions-wiki.

allcontributors avatar allcontributors commented on August 25, 2024

@spenserblack

I've put up a pull request to add @jcbhmr! 🎉

from actions-wiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.