30 Commits

Author SHA1 Message Date
Vanessasaurus
50f22f6d14 Update/set output (#90)
* updating set-output to echo to $GITHUB_OUTPUT instead

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
2022-10-25 21:00:21 -06:00
Felix Breidenstein
e64deeba68 Fix example in README (#85) 2022-03-18 08:44:13 -06:00
Vanessasaurus
d99aa3ed71 Adding quick option to be able to specify a GitHub enterprise url (#80)
* adding quick option to be able to specify a GitHub enterprise url
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
* Use GITHUB_API_URL instead
Co-authored-by: Tobias <github@tobiasgabriel.de>

* Update README.md
* Update pull-request.py

Co-authored-by: vsoch <vsoch@users.noreply.github.com>
Co-authored-by: Tobias <github@tobiasgabriel.de>
2021-10-02 22:40:48 -06:00
Yi Zhang
1cb1956a68 Support to open pull request to another repo (#70)
* support custom token and repo
* print post url if there's error
* update as comments
* Update README.md

Co-authored-by: Vanessasaurus <814322+vsoch@users.noreply.github.com>
2021-04-27 06:04:20 -06:00
Vanessasaurus
2d5c80f215 dont use version for examples, stick to master (#67)
* dont use version for examples, stick to master
* add note about it being important to use stable release in README.md

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
2021-03-27 19:08:35 -06:00
Vanessasaurus
6d137cdd42 adding changes to update a PR (#60)
* adding changes to update a pr
including a second envar to set a state, along with refactor
of main body to be multiple functions, and adding docstrings
* fixing missing variable
* Try removing maintainer can modify
* Update pull-request.py

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
2021-02-12 17:42:23 -07:00
Vanessasaurus
c761be135f replacing set-env with new environment syntax (#48)
* 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>
2020-11-17 08:33:29 -07:00
Vanessasaurus
c39853dfde Add environment variable to pass if PR exists (#53)
* 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>
2020-10-20 12:15:41 -06:00
Vanessasaurus
0d662a3b50 Update/python client (#46)
* 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
2020-09-25 18:31:06 -06:00
Vanessasaurus
727bec37b0 Testing assign request again (#43)
* 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>
2020-09-24 11:58:11 -06:00
Brandon W Maister
1106c316c1 Tell curl to set an exit code if a request fails (#39)
* 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
2020-08-07 13:09:22 -06:00
vsoch
9388624b4c testing fix to assigning reviewers
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-04-21 14:27:05 -06:00
vsoch
443ae6fbfb bumping version in example, setting correct version in example
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-25 10:11:44 -06:00
vsoch
5790dea963 adding outputs example (now tested)
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-25 10:09:34 -06:00
vsoch
aaed200ec8 first test to add outputs
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-25 09:58:27 -06:00
vsoch
1a853b4e3f testing change to add reviewers (team or individual) to a PR
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-23 13:36:27 -06:00
Vanessasaurus
948483f8ff Merge branch 'master' into add/assignees 2020-03-23 11:24:49 -06:00
Franco Riberi
35053dc2fc Fix typo error in README.md file [minor]
Fix typo error in README.md file
2020-03-19 11:39:46 -03:00
vsoch
c3a7ec260e update version of example
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 15:51:49 -06:00
vsoch
125f29f472 adding ability to assign people to PR
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 14:07:00 -06:00
vsoch
e9cc2a3f41 adding maintainer can modify
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 13:47:52 -06:00
vsoch
4ae1c5e25c adding examples for push and release
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-17 11:36:44 -06:00
vsoch
d0c1b9ddb0 adding PR_BRANCH_FROM to support null use case
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-17 10:50:25 -06:00
vsoch
a46f168cf9 updating link to example
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-02-05 10:09:33 -07:00
Vanessasaurus
ca8460101c fixing up GitHub action to work with yaml syntax (#11)
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
2019-10-19 09:36:46 -04:00
Benjamin Cooper
1e2916c992 Add ability to create draft PRs with env var (#5)
* 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
2019-05-17 17:33:39 -07:00
Vanessa Sochat
6251c0a094 adding title and body 2019-03-20 10:05:38 -04:00
Vanessa Sochat
86a6482846 updating README 2019-02-01 16:48:44 -05:00
Vanessa Sochat
a5ea3d441c curl is missing 2019-02-01 11:49:59 -05:00
Vanessa Sochat
230b0cfb1e adding first test 2019-01-31 18:56:56 -05:00