Giter Club home page Giter Club logo

psalm-github-bot's People

Contributors

danog avatar dependabot-preview[bot] avatar dependabot[bot] avatar kkmuffme avatar lesuisse avatar weirdan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

psalm-github-bot's Issues

Link parser includes closing parenthesis in link

See here. The bot seems to have included the closing parenthesis from the markdown link syntax in the link itself. I'm not sure why it does it only when using the php= feature, maybe it's not actually the parser and it's something else?

Make it slower

Very small thing, but would you mind adding a one-or-two second delay? I just had an email arrive out of order in the conversation.

Warn if the issue text does not contain a link to a snippet on psalm.dev

Also could it warn if no psalm.dev link is given on the first issue comment, and psalm.dev is not mentioned (I don't want it complain if someone says "I wasn't able to reproduce on psalm.dev")

Bot should reply to issues missing a link to psalm.dev with something like:

Hey @issueAuthor, can you reproduce the issue on https://psalm.dev ?

Let it be customizable by reading a template from .github/psalm-bot/GREETING.md.

Free Heroku hosting is being phased out

Got this today:

Dear Customer,

Thank you for being a Heroku user. Starting November 28, 2022, free Heroku Dynos, free Heroku Postgres, and free Heroku Data for Redis® will no longer be available. You can learn more about these and other important changes from our GM, Bob Wise, on the Heroku blog.

Existing free dynos and Heroku data add-ons will be impacted, so action by you is required. To prevent any disruption to your apps or data using free plans, you will need to upgrade from a free plan to a paid plan before November 28, 2022.

For instructions on how to upgrade and for other questions, please visit our FAQ.

Thank you,

The Heroku Team

Handle tabs in code better

The editor at psalm.dev uses width 4 for tabs, the comment from the bot should either do the same, or if that's not possible, expand tabs to 4 spaces so the indentation at least looks the same.

suggestion: interactive github issue template

if an issue template features task list checkboxes, psalm-github-bot could respond differently to the tasklist state:

## can you reproduce the issue on psalm.dev?:
- [ ] yes
- [ ] no
- [ ] n/a

where - [x] no suppress the question & just parses for links, and - [x] n/a suppresses the question & also skips link parsing.

Don't add snippet if the link was in a quote

When a user quote a previous reply that contains a psalm.dev link, the bot will reply with links already posted. This should be a matter of checking if there's no ">" character on the beggining of the line

Comment edited to remove links

vimeo/psalm#7424 (comment)
The 3 dot menu on that comment says "Sorry, something went wrong."

I think the comment should be hidden if the referenced comment is edited to remove all of the psalm.dev links, though I'm not sure if it can be hidden so that it doesn't show up at all, and if the comment is edited again to include links it should show up again.

If github doesn't allow hiding and unhiding bot comments the bot should at least handle the case where an edit removes links gracefully and say "No snippets found" or something.

Edit: Looks like it actually does remove the comment, but only after a page refresh. I'm guessing that's a limitation on GitHub's end though, so I guess this is a non-issue. The comment doesn't reappear after editing to include psalm.dev links again, but that's probably not a big deal.

Again

But when I just mention psalm.dev I shouldn't get a greeting

suggestion: accessible twitter image bot

if someone mentions @psalmphp on twitter with a link to psalm.dev in the message body, the github bot's source & result retrieval could be used to generate syntax-highlighted source code snippets, apply appropriate image descriptions, then reply to the tweet, so code could be checked at a glance without needing to leave twitter.

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.