Git Product home page Git Product logo

request-info's People

Contributors

aryannarora avatar brechtbonte avatar codebytere avatar hiimbex avatar j-f1 avatar jasonetco avatar knrt10 avatar nmustaki avatar shermanhui avatar shiftkey avatar tcbyrd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

request-info's Issues

Default config causes an error

I'm seeing a lot of errors show up in probot apps that use config.yml, It looks like it is caused by people copying the default config from the README of this app:

YAMLException: duplicated mapping key at line 10, column -230:
    requestInfoReplyComment:
    ^

Thoughts on commenting out the second example?

Add a default text

In that way is not required to create a config file only for the message itself

Resource not accessible by integration

I have a stand alone deployment for Github Enterprise. I tested the bot for my account and also under organization which i am a maintainer in it. The bot worked as expected for public repos but for private repos i got this error

13:22:45.823Z ERROR event: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/enterprise/2.13/v3/repos/contents/#get-contents"} (id=77827960-9ca0-11e8-8fc7-3a145c78ba63)
  HttpError: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/enterprise/2.13/v3/repos/contents/#get-contents"}
      at response.text.then.message (/request-info/node_modules/@octokit/rest/lib/request/request.js:78:19)
      at <anonymous>
      at process._tickDomainCallback (internal/process/next_tick.js:228:7)
  --
  event: {
    "id": "77827960-9ca0-11e8-8fc7-3a145c78ba63",
    "event": "pull_request.opened",
    "repository": "xxxxxxxxxxxxxx/yyyyy",
    "installation": 9
  }
13:15:45.518Z ERROR event: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/enterprise/2.13/v3/repos/contents/#get-contents"} (id=7d350540-9c9f-11e8-8a1a-488875117f96)
  HttpError: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/enterprise/2.13/v3/repos/contents/#get-contents"}
      at response.text.then.message (/request-info/node_modules/@octokit/rest/lib/request/request.js:78:19)
      at <anonymous>
      at process._tickDomainCallback (internal/process/next_tick.js:228:7)
  --
  event: {
    "id": "7d350540-9c9f-11e8-8a1a-488875117f96",
    "event": "issues.opened",
    "repository": "xxxxxxxxxxxxxx/yyyyy",
    "installation": 9
  }


Doesn't work

hi, I use this in my github repo. follow this way:

  1. install request-info and Permissions and Events

  2. add ./github/config.yml and input content like this:

# Configuration for request-info - https://github.com/behaviorbot/request-info

# *OPTIONAL* Comment to reply with
# Can be either a string :
requestInfoReplyComment: >
  We would appreciate it if you could provide us with more info about this issue!


checkIssueTemplate: true
  1. I create a issues in my repo: https://github.com/521xueweihan/test_git/issues . but the bot don't work.

So what should I do to fix this ? Thakn you.

Pull Request Template Not Getting Checked

Hi there ๐Ÿ‘‹

I Have integrated the request-info bot in the following test repository to try out some ideas I have. My aim is to enforce PR templates are followed and filled up. My existing config.yml has checkPullRequestTemplate: true and my PR template is present at ./github/PULL_REQUEST_TEMPLATE.md.

When I create a new PR in which the PR template is left as is, I don't get any message triggered by the request-info bot. Any chance I missed something?

Add users to exclude from prompting

For example, I file a lot of issues in my own repo, and often times they don't need a description (because they are tracking a simple thing). It would be rad if you could either a) provide a list of users to exclude, or b) have a flag to exclude repo owner(s) from the prompt?

config file conflict

Hi there !

Just stumbled upon your request info bot and I love it, i was about to install it and saw that it requires a config file named config.yml in the .github folder

The thing is, I'm affraid that, with more apps like these appearing, others will use a file named like so, and it might conflict then

Anything you could do ?

Making the bot reply with the request info comment after manually adding a label manually

Hi...
First of all, thanks for this awesome bot.

I was wondering if you could add an option to make the bot reply with the request info comment after one adds a label manually.

Similar to what the support bot does after one adds the "support" (or a custom) label.

I think it would be useful as some people sometimes put some content in the issue but it isn't still enough and more info should be added, or when people does not fill an issue template properly.

Thanks in advance. :)

Ability to forbid generated title for edits done on github

When someone edits a file directly on github and does not fill a commit message, Github will fill it as Update <filename>, which then becomes the default PR title too.

It would be great to have an option to request more info for such title, without having to list all possible file names in the config.

Check if the issue body is the same as the issue template

This app looks awesome!

Currently, it only checks if the body is empty:

if (!body || badTitle) {

However, some repositories have a .github/ISSUE_TEMPLATE.md (example), which GitHub automatically puts in the issue entry box. Could this app check if the issue contents are the same as the template?

An even more awesome feature would be to check if there are any fields in the template that need to be filled out, then ask the user to fill them out.

Silently fails without a .github/config.yml file

๐Ÿ‘‹ I've noticed that this silently fails (doesn't post a comment) if the repository doesn't have a .github/config.yml file.

I'm not sure how probot-config works, but looking at it I'd guess that it returns that defaultConfig if both the file and the file in a .github repository don't exist:

const config = await getConfig(context, 'config.yml', defaultConfig)

Instead its returning null, which results in an error log:

TypeError: Cannot read property 'requestInfoOn' of null
    at receive (/app/index.js:26:19)
    at process._tickCallback (internal/process/next_tick.js:68:7)
event: {
--
  "id": "123",
  "event": "issues.opened",
  "repository": "JasonEtco/tests",
  "installation": 123
}

cc @hollenberry

[Question] What's the correct format I should use for the label?

So I have a needs info label. Exactly like that, with a blank space. No dashes or anything.

I am wondering what's the correct format to put in the config.yml file ...

Can I put it like:

requestInfoLabelToAdd: needs info

Or should I do it like:

requestInfoLabelToAdd: "needs info"

Thanks

Multiple random messages

Hello,

this time I won't forget opening an issue before submitting a pr ;-)
I'd like the comment to be picked randomly from a list, in the hope variety would keep the bot both effective and fun.

I would either:

  • create a new configuration array 'requestInfoReplyComments', exclusive with 'requestInfoReplyComment'
  • parse 'requestInfoReplyComment' to check if it a string or an array

Would you be interested ?

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.