13 Commits
Author SHA1 Message Date
Michael Stapelberg 578e4e6bb6 re-add forgotten addLabel() call
This got lost in commit d4c9f46d71
2022-03-17 18:02:26 +01:00
Anup ChenthamarakshanandGitHub 07c566db5a Set minimal git config to allow git commit to succeed (#2)
Ran into an issue in
https://github.com/anupcshan/gokrazy-odroidxu4-kernel/runs/5341641350?check_suite_focus=true

```
2022/02/26 02:10:15 amend.go:83: git [add .]
2022/02/26 02:10:15 amend.go:83: git [commit -a --amend --no-edit]
Committer identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <runner@fv-az91-455.1u4dveb1r3ruphbftqvtwhitpc.gx.internal.cloudapp.net>) not allowed
2022/02/26 02:10:15 amend.go:174: [git clone --branch=pull-c6ae38b38967a5c33d729c20e508a03ba3e0e3f6 --depth=2
```
2022-02-26 10:19:26 +01:00
Michael Stapelberg d4c9f46d71 re-implement gokr-amend using git(1) and rsync(1)
This makes updating lib/ directory recursively much easier than using the GitHub
API directly.

related to https://github.com/gokrazy/gokrazy/issues/13
2022-02-25 09:50:26 +01:00
Michael Stapelberg eeb2cc550c update to latest go-github version 2021-06-24 14:57:18 +02:00
Michael Stapelberg 4950605b19 gokr-amend: switch to cienv, too 2020-05-24 21:15:23 +02:00
Michael Stapelberg 7fdf995844 switch to go modules 2020-02-29 10:35:51 +01:00
Michael Stapelberg 024391c897 amend: only add label if it wasn’t already present 2017-03-28 09:51:05 +02:00
Michael Stapelberg af94a9205e amend: set label even when files don’t differ 2017-03-28 09:01:00 +02:00
Michael Stapelberg 7ece6fea4e amend: add now-required context to GitHub Go API calls 2017-03-17 09:50:56 +01:00
Michael Stapelberg 461bca04c0 implement setting a label 2017-02-12 17:06:03 +01:00
Michael Stapelberg be75492e01 create base64-encoded blobs instead of including raw content
I’m not entirely sure why, but it seems like some part of the stack
cannot deal with the raw binary content.
2017-02-12 16:26:44 +01:00
Michael Stapelberg 4d1701578c Don’t update the PR when the files are already equal 2017-02-12 15:37:23 +01:00
Michael Stapelberg 8d012216dd Initial commit 2017-02-12 14:43:36 +01:00