Commit Graph

74 Commits

Author SHA1 Message Date
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
vsoch 90f97d7ca1 last change to add example
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 15:35:22 -06:00
vsoch 6795aa743d fix trailing slash
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 15:20:50 -06:00
vsoch 617744b952 fail no matter what
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 14:52:58 -06:00
vsoch 906c9693bf need to parse assignees
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 14:43:26 -06:00
vsoch 37a2b85332 trying again
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 14:38:47 -06:00
vsoch 8638d1b6f1 need to echo response
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 14:35:59 -06:00
vsoch 09f5606222 update to use .number
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 14:30:22 -06:00
vsoch df89c5fb9e update to use .number
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 14:28:35 -06:00
vsoch d0166ffab5 updating pull request to use return code to determine to assign folks
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 14:24:24 -06:00
vsoch c4372cd524 fixing print of return value and syntax error
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-03-18 14:18:42 -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
Vanessasaurus d987bc1511 Merge pull request #22 from vsoch/add/support-null-branch
Add/support null branch
1.0.2
2020-03-17 11:37:29 -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
Srdjan Grubor a3c90d58a7 Fix action branch logic for pull requests
Without this change, `BRANCH` will be `null` for triggers that don't
have an associated branch like `release: [published]`.

Closes #20
2020-03-17 11:27:27 -05:00
vsoch a3ee64d51c Merge branch 'master' of github.com:vsoch/pull-request-action 2020-02-05 10:09:47 -07:00
vsoch a46f168cf9 updating link to example
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-02-05 10:09:33 -07:00
Vanessasaurus 02aa792cc8 Merge pull request #16 from vsoch/add/action.yml
adding action.yml to test
2020-02-05 10:08:38 -07:00
vsoch d7dede2212 adding action.yml to test
Signed-off-by: vsoch <vsochat@stanford.edu>
2020-02-05 10:00:44 -07:00
Carl Sutton b94f438ea0 Use alpine instead of ubuntu so the build is faster (#14) 2019-12-07 12:19:22 -08: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
Godfrey Chan e54bcbb815 Quote JSON Strings (#8)
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.
2019-08-23 11:03:18 -04:00
Vanessasaurus 0b6c3279d5 Adding body 2019-05-21 02:06:27 -07:00