* replacing set-env with new environment syntax
* using direct append to file for set_env instead of os.system
Signed-off-by: vsoch <vsochat@stanford.edu>
* adding PASS_IF_EXISTS
Signed-off-by: vsoch <vsochat@stanford.edu>
* PASS_IF_EXISTS option, to not error out when a matching PR already is open (#52)
* Pass filters to request for PRs, and move PASS_IF_EXISTS exit in different spot
* Changed a printout to say the params used for a req
* break when looping through branches and find the matching one
Co-authored-by: Vanessasaurus <vsochat@gmail.com>
Co-authored-by: tscizzlebg <54290732+tscizzlebg@users.noreply.github.com>
* testing fixes for original query for pr
* bugfix
* need to loop through
* Adding more verbosity
* adding is_open
* Adding GET request with headers if needed
* Update pull-request.py
* Update pull-request.sh
* making reviewer failure more verbose
* More debugging
* updating pull request script to be more verbose
* need to pipe curl_wrapper into stderr so it doesnt return
* final tweaks to remove extra printing
* Testing assign request again
* updating to be more verbose
* testing with python entrypoint
Signed-off-by: vsoch <vsochat@stanford.edu>
* Update pull-request.sh
* making reviewer failure more verbose
* updating pull request script to be more verbose
* final tweaks to remove extra printing
Signed-off-by: vsoch <vsochat@stanford.edu>
* Tell curl to set an exit code if the request fails
* Remove the `--user GITHUB_ACTOR` from curl calls
* fixup! Tell curl to set an exit code if the request fails
This PR will add the ability to specify one or more individual users
or team names to the environment to request for review.
Signed-off-by: vsoch <vsochat@stanford.edu>
The previous approach causes problems when there are e.g. newlines in the pull
request body. Also, the `draft` parameter was previously passed as a JSON
string (`"draft": "true"` and `"draft": "false"`, as opposed to `"draft": true`
and `"draft": false`), which I suspect is just a bug.
* initial effort to add draft PRs
Document how to use draft PR feature
* make PRs draft anytime env var is explicitly declared
* change draft PR env var name
Signed-off-by: Ben Cooper <bencooper222@gmail.com>
* document new draft env var name
* consolidate draft PR logging block
* actually remove draft pr logging