Oliver Davies
66e1869c72
git: Ensure that everything is clean
2020-06-01 19:54:57 +01:00
Oliver Davies
964472bbf5
git: Add option to force merge and skip CI check
2020-05-30 03:46:54 +01:00
Oliver Davies
171f251d89
git: Add methods for writing messages
...
Refactor CI status output.
2020-05-27 18:44:13 +01:00
Oliver Davies
e8ff1fcc82
git: Don't push if the merge failed
...
Add support for two different run types:
- Command: executes the command silently and returns whether or not
there was an error. This is used to check if the merge was
successful.
- Query: executes the command and returns the output. This is used for
retrieving the tip commits of the branch.
2020-05-27 17:56:15 +01:00
Oliver Davies
e82e134e51
git: Refactor, use getopt() for parsing args
2020-05-27 16:11:38 +01:00
Oliver Davies
01a30f5168
git: Specify target branch using -t or --target
...
Rather than using an environment variable, use -t or --target to specify
the target branch to merge into (e.g. master, develop, next).
2020-05-27 11:26:18 +01:00
Oliver Davies
54b762b734
git: Ensure branches are in sync with upstream
2020-05-27 10:55:46 +01:00
Oliver Davies
35834bef8f
git: Ensure methods have visibility set
2020-05-27 10:54:00 +01:00
Oliver Davies
a1c3231a48
git: Allow for setting the target branch
2020-05-27 10:53:33 +01:00
Oliver Davies
979aa4a1fc
git: Re-order methods, move invoke to near the top
2020-05-27 09:48:14 +01:00
Oliver Davies
af429a74a4
git: Add check for CI error
2020-05-23 00:12:21 +01:00
Oliver Davies
87d5b689b2
git: Refactor to a lookup table
2020-05-23 00:05:24 +01:00
Oliver Davies
89ef98a15b
git: Update abort message, remove break
2020-05-23 00:02:05 +01:00
Oliver Davies
f98ebdba1e
git: Check for CI status before closing the PR
2020-05-22 23:11:37 +01:00
Oliver Davies
16dd74bfe7
git: Add close-pull-request script
2020-05-22 22:52:12 +01:00