98 Commits

Author SHA1 Message Date
Vanessasaurus
882391869b Merge pull request #102 from vsoch/test-envar-files
Testing to see if envar files environment variables are set (or not)
1.1.1
2024-03-14 11:09:59 -06:00
Vanessasaurus
8f0f9ee92b Update pull-request.py 2024-03-11 17:27:24 -06:00
Vanessasaurus
0969c26295 Merge pull request #100 from vsoch/update-container-base
fix bug with docker build
1.1.0
2023-12-07 19:40:22 -07:00
vsoch
d2ea9c206b fix bug with docker build
the alpine image no longer allows installing to system python
the fix is to target a virtual environment python3.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
2023-12-07 19:35:49 -07:00
Vanessasaurus
81b48d94ab Add LICENSE 2023-09-21 12:20:03 -06:00
Vanessasaurus
f9e7f419d6 Merge pull request #94 from vsoch/check-for-branch
Check for PR branch
1.0.24
2023-01-11 12:39:17 -07:00
Vanessasaurus
dcba08c9c2 Check for PR branch
before using the API so we hopefully save a call.
2023-01-06 20:03:27 -07:00
Yoshihisa Mochihara
c8e84cea4c fix GITHUB_OUTPUT bug (#92)
* fix GITHUB_OUTPUT bug
* Update CHANGELOG.md
1.0.23
2022-11-23 14:02:13 -07:00
Vanessasaurus
50f22f6d14 Update/set output (#90)
* updating set-output to echo to $GITHUB_OUTPUT instead

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
1.0.22
2022-10-25 21:00:21 -06:00
Yunqi(Alice)
d703f40f3a Update the list_pull_request 401 case (#89)
* Update the list_pull_request 401 case
Hi, I find this http request is also missing the 401 case.
* Update CHANGELOG.md
1.0.21
2022-09-28 10:03:05 -06:00
Vanessasaurus
415544869c Merge pull request #88 from ohenak/fix/ghe-get-401-error
[Chore] Provide token when getting 401 error
1.0.20
2022-09-22 03:59:00 -06:00
Kane Ho
667293445b [Chore] Provide token when getting 401 error
Issue #87

In GHE, token is necessary when querying the repo API,
When it fails, it returns 401 error. Will need to specify the token in
this case.
2022-09-21 23:44:03 -07:00
Felix Breidenstein
e64deeba68 Fix example in README (#85) 2022-03-18 08:44:13 -06:00
Vanessasaurus
58a078aed9 Update CHANGELOG.md 1.0.19 2022-02-03 06:00:46 -07:00
Sviatoslav Sydorenko
408336c607 Fix emitting LF-separated GHA environment vars (#84)
Fixes #83 (hopefully)
2022-02-03 05:59:59 -07: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
Vanessasaurus
a48b660567 Merge pull request #81 from vsoch/add/open-source-halloween-2021
adding open source halloween!
2021-10-02 18:26:20 -06:00
vsoch
4b09070b0a adding open source halloween!
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
2021-10-02 18:25:26 -06:00
Vanessasaurus
29dbfc0acd Merge pull request #75 from Kong/feat/discover-default-branch
Use repo's default branch if no branch specified
1.0.18
2021-06-21 10:10:40 -06:00
Danny Sauer
c0bf76830b Use repo's default branch if no branch specified 2021-06-21 11:04:52 -05: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>
1.0.17
2021-04-27 06:04:20 -06:00
vsoch
2ca266185d updating changelog preparing for release
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
1.0.16
2021-04-18 19:54:26 -06:00
Max Anderson
e2a437cdbd Prevent unhandled exception when running via schedule (#69)
* Prevent unhandled exception when running via schedule
2021-04-18 19:53:12 -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
7f0d383d15 adding back assignees variable (#65)
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
1.0.15
2021-02-15 10:51:43 -07: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>
1.0.14
2021-02-12 17:42:23 -07:00
Vanessasaurus
ebce8e4918 making abort_if_fail more verbose (#57)
Signed-off-by: vsoch <vsochat@stanford.edu>
1.0.13
2020-12-18 04:05:17 -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>
1.0.12
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>
1.0.11
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
1.0.10
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
Vanessasaurus
66d0146c3a Test pr wrapper (#42)
* 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>
2020-09-21 11:29:57 -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
790b81a742 adding example to derive a branch name from the environment (from previous step)
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-06-21 13:56:24 -06:00
vsoch
d347e09c29 adding stale bot, will close stale issues
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-04-21 14:55:37 -06:00
Vanessasaurus
7bc520d458 Merge pull request #33 from vsoch/fix/assignee-reviewer-parsing
Fix bug for parsing list of reviewers/assignees with "-"
2020-04-21 14:50:37 -06:00
vsoch
9388624b4c testing fix to assigning reviewers
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-04-21 14:27:05 -06:00
Vanessasaurus
1e9dfb50ae Merge pull request #28 from vsoch/add/outputs
First test to add outputs
2020-03-25 12:58:06 -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
Vanessasaurus
702ab9c078 Merge pull request #26 from vsoch/add/reviewers
Add/reviewers
2020-03-25 09:38:07 -06:00
vsoch
4a1e588164 adding example for reviewers and changelog
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>
2020-03-23 13:43:20 -06:00
vsoch
a61c2bcfb7 syntax error
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-23 13:38:49 -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
9d567ac1d1 Merge pull request #23 from vsoch/add/assignees
Add/assignees
2020-03-23 11:25:34 -06:00
Vanessasaurus
948483f8ff Merge branch 'master' into add/assignees 2020-03-23 11:24:49 -06:00
Vanessasaurus
96906bfdd9 Merge pull request #24 from fgriberi/patch-1
Fix typo error in README.md file  [minor]
2020-03-19 09:29:13 -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