Commit graph

135 commits

Author SHA1 Message Date
Johannes Nicolai 05bc46786e Support GitHub Server API URL
* pass GitHub Server API in Octokkit constructor
2021-01-25 19:16:19 +01:00
Johannes Nicolai adc6552966 Support GitHub Enterprise Server
* parse GITHUB_SERVER_URL if present
* accept proper server remotes as well
2021-01-25 18:25:20 +01:00
Peter Evans 249b80db6b perf: git reset instead of fetch 2020-12-23 14:10:40 +09:00
Peter Evans d01e0807ef fix: change or->and to catch all errors 2020-12-09 09:38:10 +09:00
Peter Evans 9984f611a7 fix: prune stale remote ref for self-hosted runners 2020-11-24 12:34:57 +09:00
Peter Evans ddeca94037 perf: set diff quiet and switch isdirty command order 2020-11-17 11:42:31 +09:00
Peter Evans 2465e435b9 feat: output the pull request url 2020-09-17 10:41:26 +09:00
Peter Evans e17bb55cb7
Merge pull request #547 from peter-evans/delete-branch
feat: add input for branch delete
2020-09-07 09:14:08 +09:00
Peter Evans a49ee3308e feat: add input for branch delete 2020-09-06 10:21:35 +09:00
Peter Evans 16fa12ee5f fix: reset branches to handle squash merge 2020-09-06 08:55:33 +09:00
Peter Evans 095c53659b feat: support checkout on a commit in addition to a ref 2020-08-29 17:28:46 +09:00
Peter Evans 8bdec9b230 Fix pr create/update for already up to date branches 2020-08-19 17:08:59 +09:00
Peter Evans 1c466bedd5 Fix branch naming check for push-to-fork 2020-08-19 12:22:50 +09:00
Josh Soref 5f45e30ff9 spelling: uncommitted
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-08-18 12:51:12 -04:00
Peter Evans ba8309ff9c Refactor setting commit params 2020-07-31 16:57:16 +09:00
Peter Evans ee482f51bd Move input next to commit related inputs for context 2020-07-31 16:56:10 +09:00
pvogt09 7ad9f6e012 try -s instead of --signoff
Signed-off-by: pvogt09 <50047961+pvogt09@users.noreply.github.com>
2020-07-30 16:23:22 +02:00
pvogt09 ddd52205b6 adds signoff option to sign off commits
Signed-off-by: pvogt09 <50047961+pvogt09@users.noreply.github.com>
2020-07-30 15:57:37 +02:00
Peter Evans 8c01dce3ac Restore the branch-suffix input 2020-07-20 19:15:11 +09:00
Peter Evans 76c09b178c Default author and committer to actions.yml defaults 2020-07-19 20:23:36 +09:00
Peter Evans 6fa44e144d Set defaults in action.yml 2020-07-19 15:09:44 +09:00
Peter Evans b5b1bc17a4 Remove branch-suffix input 2020-07-19 13:58:50 +09:00
Peter Evans 794518a553 Move fileExistsSync to utils 2020-07-18 17:55:42 +09:00
Peter Evans f4ee4a8333 Unshallow on fetch 2020-07-18 16:04:36 +09:00
Peter Evans 053b501145 Redesign from request-to-parent to push-to-fork 2020-07-18 15:35:30 +09:00
Peter Evans 1a182d0679 Fix function name 2020-07-17 21:06:16 +09:00
Peter Evans 24012f5c84 Refactor extraheader auth handling 2020-07-17 20:54:39 +09:00
Peter Evans a6a1a418bf Use force-with-lease to push the pr branch 2020-07-17 10:37:09 +09:00
Peter Evans 5429e57002 Keep env var output for backwards compat 2020-07-16 19:42:19 +09:00
Peter Evans 3c32fac1fe Tidy log output into groups 2020-07-16 19:13:28 +09:00
Peter Evans 803cc5ea8a Remove python related code and artifacts 2020-07-16 18:18:58 +09:00
Peter Evans 4ba9ca3d10 Convert action to typescript 2020-07-16 17:57:42 +09:00
Peter Evans 14ee9d1df2 Parse repo urls with credentials 2020-06-27 16:45:24 +09:00
Peter Evans 86ccd8cdef Add missing types 2020-06-03 16:47:02 +09:00
Renovate Bot 44a7f59b6f
Update dependency setuptools to v46.4.0 2020-05-23 06:24:24 +00:00
Peter Evans f8274253bd Convert to typescript 2020-05-17 18:02:41 +09:00
Renovate Bot 14836c6ff3
Update dependency setuptools to v46.2.0 2020-05-11 05:04:42 +00:00
Peter Evans ded05960f3 Deprecate pr_number output 2020-05-10 18:06:32 +09:00
Peter Evans eb605db8a3 Fix casing 2020-05-10 17:58:21 +09:00
Renovate Bot 7bb7d96c96
Update dependency GitPython to v3.1.2 2020-05-06 01:49:21 +00:00
Renovate Bot 16e35685ce
Update dependency PyGithub to v1.51 2020-05-03 02:36:00 +00:00
Renovate Bot e2bf7f9b75 Update dependency PyGithub to v1.50 2020-04-27 11:47:17 +09:00
Peter Evans c9f22f86fb Vendor wheel 2020-04-14 11:48:20 +09:00
Peter Evans 35d5f3c8ae Vendor setuptools 2020-04-14 11:43:07 +09:00
Renovate Bot 2a59f517a7 Update dependency GitPython to v3.1.1 2020-04-13 17:51:52 +09:00
Peter Evans abc19caa82 Add input for draft pull requests 2020-04-04 09:47:58 +09:00
Jérémy Derussé 5bd05538d0
Update src/cpr/create_or_update_pull_request.py
Co-Authored-By: Peter Evans <peter-evans@users.noreply.github.com>
2020-03-29 13:36:48 +02:00
Jérémy Derussé e48dab0c1c
Add PR creation from Fork 2020-03-28 13:10:12 +01:00
Renovate Bot ae4278bf24 Update dependency PyGithub to v1.47 2020-03-21 11:23:42 +09:00
Renovate Bot 52ada17960 Update dependency GitPython to v3.1.0 2020-02-25 13:12:00 +09:00
Peter Evans 0d42c285a3 Unset and restore authorization extraheader only 2020-02-22 16:56:42 +09:00
Peter Evans d5c5ea3e20 Unset and restore extraheader config option 2020-02-22 14:08:54 +09:00
Peter Evans 289fda9fea Authenticate with git extraheader 2020-02-18 19:35:15 +09:00
Renovate Bot c26314237b Update dependency GitPython to v3.0.8 2020-02-18 15:57:13 +09:00
Renovate Bot 72b5f45bb4 Update dependency PyGithub to v1.46 2020-02-11 13:49:50 +09:00
Peter Evans 7b5ff6b642 Add support for ssh protocol 2020-02-10 22:52:00 +09:00
Renovate Bot e59d6c7fff Update dependency GitPython to v3.0.7 2020-02-08 16:09:50 +09:00
Peter Evans d8700620d6 Determine target github repository from git config 2020-02-07 11:05:01 +09:00
Peter Evans d29f1e9296 Update title and body when pr exists 2020-01-23 09:47:35 +09:00
Peter Evans 1e09ec2f22 Add path input 2020-01-10 00:11:42 +09:00
Peter Evans cff82c7ec9 Update fixture paths 2019-12-31 12:57:14 +09:00
Peter Evans c388aba95a Add env override for repo path 2019-12-31 12:33:03 +09:00
Peter Evans 02f0ffd558 Update test fixture 2019-12-31 12:02:17 +09:00
Peter Evans fb48683668 Fix bug when symbolic ref fails 2019-12-29 16:41:59 +09:00
Peter Evans b11cb71e96 Update input defaults 2019-12-29 15:14:33 +09:00
Peter Evans bdadb3b4a0 Update PyGithub to v1.45 2019-12-29 14:40:49 +09:00
Peter Evans c208033c6a Remove v1 action code 2019-12-29 14:22:23 +09:00
Peter Evans 01aec28fd9 Remove todo comment 2019-12-28 19:05:35 +09:00
Peter Evans 484de7fc89 Delete the branch if there is no diff with the base 2019-12-28 18:34:32 +09:00
Peter Evans 71f4fe31a8 Update integration tests 2019-12-28 17:31:19 +09:00
Peter Evans 883f800b96 Change missing project and column to an error 2019-12-28 17:10:28 +09:00
Peter Evans b3805d65e3 Update string formatting 2019-12-28 17:09:58 +09:00
Peter Evans 4f8d5b9d3e Add a check for user config set in the workflow 2019-12-27 18:29:37 +09:00
Peter Evans efbd4fa1ef Fix setting author and committer 2019-12-27 15:32:37 +09:00
Peter Evans b7565b81a7 Add v2 alpha 2019-12-27 14:40:11 +09:00
Peter Evans baf52378ae Minor refactor to set url via git params 2019-12-08 15:02:54 +09:00
Peter Evans d3dc225920 Add inputs for committer-name and committer-email 2019-12-06 17:06:49 +09:00
Peter Evans 1d1fedd99c Add feature to create project card for pull request 2019-11-24 08:48:32 +09:00
Peter Evans d968e8b11b Add warning and fail gracefully when ref is invalid for base 2019-11-16 09:24:46 +09:00
Renovate Bot d5f4e48a66
Update dependency GitPython to v3.0.5 2019-11-14 01:46:43 +00:00
Peter Evans b6a98c049d Add logging and handling for pr events from forks 2019-11-13 19:10:38 +09:00
Peter Evans 731211fd81 Fix bug with filtering pull requests 2019-11-10 18:14:10 +09:00
Peter Evans 006313b45a Fix bug when updating a pull request 2019-11-10 16:56:55 +09:00
Peter Evans 5692e041c6 Set a step output 2019-11-09 17:42:11 +09:00
Peter Evans 55e7b1ec28 Update action to hybrid multi platform 2019-11-09 17:24:47 +09:00