behaviorbot / request-info Goto Github PK
View Code? Open in Web Editor NEWRequests more info from PRs/Issues with either the default title or a blank body
Home Page: https://github.com/apps/request-info
License: MIT License
Requests more info from PRs/Issues with either the default title or a blank body
Home Page: https://github.com/apps/request-info
License: MIT License
change in config.yml
Hi there ๐
We have the request-info bot
configuration file in the organization wide .gihub
repo (see https://github.com/jupyterhub/.github/blob/master/.github/config.yml) and the bot is installed for the entire organization.
The bot works perfectly for the .github
repository (where the config file exists), but not for any other repo.
Does the request-info
bot support reading the configuration from the organization wide .github
repo?
In that way is not required to create a config file only for the message itself
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.
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:
Would you be interested ?
hi, I use this in my github repo. follow this way:
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
So what should I do to fix this ? Thakn you.
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
}
๐ 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:
Line 24 in c245141
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
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
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?
NO Code just testing
See https://github.com/probot/metrics/pull/14#issuecomment-348615845 for an example of this - it's just a typo fix so I didn't provide a body.
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. :)
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?
This app looks awesome!
Currently, it only checks if the body is empty:
Line 21 in 68e08a8
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.
The procedure for doing this is laid out more thoroughly here: behaviorbot/sentiment-bot#13.
Let me know if you have any questions!
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 ?
RT. allow user to config some regex to check body
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.