Skip to content

Commit 8b62b54

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into workflow-check-add-status-condition
2 parents 7c34c85 + bbf6336 commit 8b62b54

File tree

275 files changed

+9289
-2542
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+9289
-2542
lines changed

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,54 @@ if:
268268
paths:
269269
- "^config/.*$"
270270
271+
# "file_added" is satisfied if any file matching any regular expression in the "paths"
272+
# list has been added in the pull request, allowing enforcement of rules when
273+
# specific types of files are added. If no matching files are added, the predicate
274+
# fails.
275+
#
276+
# Note: Double-quote strings must escape backslashes while single/plain do not.
277+
# See the Notes on YAML Syntax section of this README for more information.
278+
file_added:
279+
paths:
280+
- "^config/.*\\.yaml$"
281+
- "^server/.*\\.go$"
282+
283+
# "file_not_added" is the negation of "file_added". This predicate is
284+
# satisfied if none of the files matching any regular expression
285+
# in the "paths" list have been added in the pull request. If any matching file
286+
# was added, the predicate fails, allowing rules to be skipped that depend on
287+
# files not being added.
288+
#
289+
# Note: Double-quote strings must escape backslashes while single/plain do not.
290+
# See the Notes on YAML Syntax section of this README for more information.
291+
file_not_added:
292+
paths:
293+
- "^deprecated/.*$"
294+
295+
# "file_deleted" is satisfied if any file matching any regular expression in the "paths"
296+
# list has been deleted in the pull request, allowing enforcement of rules when
297+
# specific types of files are deleted. If no matching files are deleted, the
298+
# predicate fails.
299+
#
300+
# Note: Double-quote strings must escape backslashes while single/plain do not.
301+
# See the Notes on YAML Syntax section of this README for more information.
302+
file_deleted:
303+
paths:
304+
- "^legacy/.*\\.js$"
305+
- "^deprecated/.*\\.go$"
306+
307+
# "file_not_deleted" is the negation of "file_deleted". This predicate is
308+
# satisfied if none of the files matching any regular expression
309+
# in the "paths" list have been deleted in the pull request. If any matching file
310+
# was deleted, the predicate fails, allowing rules that depend on the file's existence
311+
# to be skipped.
312+
#
313+
# Note: Double-quote strings must escape backslashes while single/plain do not.
314+
# See the Notes on YAML Syntax section of this README for more information.
315+
file_not_deleted:
316+
paths:
317+
- "^\\.github/workflows/.*\\.ya?ml$"
318+
271319
# "has_author_in" is satisfied if the user who opened the pull request is in
272320
# the users list or belongs to any of the listed organizations or teams. The
273321
# `users` field can contain a GitHub App by appending `[bot]` to the end of

go.mod

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/palantir/policy-bot
22

3-
go 1.23.0
3+
go 1.24.0
44

55
require (
66
github.com/alexedwards/scs v1.4.1
@@ -9,14 +9,15 @@ require (
99
github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae
1010
github.com/die-net/lrucache v0.0.0-20181227122439-19a39ef22a11
1111
github.com/google/go-github/v69 v69.2.0
12+
github.com/google/go-github/v70 v70.0.0
1213
github.com/google/go-querystring v1.1.0
1314
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
1415
github.com/hashicorp/golang-lru v1.0.2
1516
github.com/palantir/go-baseapp v0.5.2
16-
github.com/palantir/go-githubapp v0.33.0
17+
github.com/palantir/go-githubapp v0.34.0
1718
github.com/pkg/errors v0.9.1
18-
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475
19-
github.com/rs/zerolog v1.33.0
19+
github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9
20+
github.com/rs/zerolog v1.34.0
2021
github.com/shurcooL/githubv4 v0.0.0-20240727222349-48295856cce7
2122
github.com/spf13/cobra v1.9.1
2223
github.com/stretchr/testify v1.10.0
@@ -29,12 +30,11 @@ require (
2930
github.com/DataDog/datadog-go/v5 v5.0.2 // indirect
3031
github.com/Microsoft/go-winio v0.5.0 // indirect
3132
github.com/beorn7/perks v1.0.1 // indirect
32-
github.com/bradleyfalzon/ghinstallation/v2 v2.13.0 // indirect
33+
github.com/bradleyfalzon/ghinstallation/v2 v2.14.0 // indirect
3334
github.com/cespare/xxhash/v2 v2.2.0 // indirect
3435
github.com/davecgh/go-spew v1.1.1 // indirect
35-
github.com/golang-jwt/jwt/v4 v4.5.1 // indirect
36+
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
3637
github.com/golang/protobuf v1.5.3 // indirect
37-
github.com/google/go-github/v68 v68.0.0 // indirect
3838
github.com/inconshreveable/mousetrap v1.1.0 // indirect
3939
github.com/kr/text v0.2.0 // indirect
4040
github.com/mattn/go-colorable v0.1.13 // indirect
@@ -50,10 +50,10 @@ require (
5050
github.com/sergi/go-diff v1.1.0 // indirect
5151
github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f // indirect
5252
github.com/spf13/pflag v1.0.6 // indirect
53-
golang.org/x/crypto v0.33.0 // indirect
54-
golang.org/x/net v0.35.0 // indirect
55-
golang.org/x/oauth2 v0.26.0 // indirect
56-
golang.org/x/sys v0.30.0 // indirect
53+
golang.org/x/crypto v0.37.0 // indirect
54+
golang.org/x/net v0.39.0 // indirect
55+
golang.org/x/oauth2 v0.29.0 // indirect
56+
golang.org/x/sys v0.32.0 // indirect
5757
google.golang.org/protobuf v1.33.0 // indirect
5858
gopkg.in/yaml.v3 v3.0.1 // indirect
5959
)

go.sum

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ github.com/bluekeyes/hatpear v0.1.2 h1:D5dz9W/W5YxKlmqn7hRJi218+yVkXylhs/R6Ns/jj
1313
github.com/bluekeyes/hatpear v0.1.2/go.mod h1:2bh+rl4wLhqzzL0hT7Q4SVGXIivrE8oKgH2WYM3ubt0=
1414
github.com/bluekeyes/templatetree v0.5.0 h1:bJ5W/D/SzB9GWzUG0G+Js8duOAwasE1vEWndxxQRoO0=
1515
github.com/bluekeyes/templatetree v0.5.0/go.mod h1:doLcw8f06r6e1+9R30QkqYeq6/dDwxeQAF0FHjiOrIs=
16-
github.com/bradleyfalzon/ghinstallation/v2 v2.13.0 h1:5FhjW93/YLQJDmPdeyMPw7IjAPzqsr+0jHPfrPz0sZI=
17-
github.com/bradleyfalzon/ghinstallation/v2 v2.13.0/go.mod h1:EJ6fgedVEHa2kUyBTTvslJCXJafS/mhJNNKEOCspZXQ=
16+
github.com/bradleyfalzon/ghinstallation/v2 v2.14.0 h1:0D4vKCHOvYrDU8u61TnE2JfNT4VRrBLphmxtqazTO+M=
17+
github.com/bradleyfalzon/ghinstallation/v2 v2.14.0/go.mod h1:LOVmdZYVZ8jqdr4n9wWm1ocDiMz9IfMGfRkaYC1a52A=
1818
github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae h1:2Zmk+8cNvAGuY8AyvZuWpUdpQUAXwfom4ReVMe/CTIo=
1919
github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae/go.mod h1:S/7n9copUssQ56c7aAgHqftWO4LTf4xY6CGWt8Bc+3M=
2020
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
@@ -28,21 +28,21 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
2828
github.com/die-net/lrucache v0.0.0-20181227122439-19a39ef22a11 h1:tFq0KToN9jzAQI8o1eIgIv+wDK6p2v+OD3yuQrAbwmA=
2929
github.com/die-net/lrucache v0.0.0-20181227122439-19a39ef22a11/go.mod h1:ew0MSjCVDdtGMjF3kzLK9hwdgF5mOE8SbYVF3Rc7mkU=
3030
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
31-
github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo=
32-
github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
31+
github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI=
32+
github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
3333
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
3434
github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
3535
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
3636
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
3737
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
3838
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
3939
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
40-
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
41-
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
42-
github.com/google/go-github/v68 v68.0.0 h1:ZW57zeNZiXTdQ16qrDiZ0k6XucrxZ2CGmoTvcCyQG6s=
43-
github.com/google/go-github/v68 v68.0.0/go.mod h1:K9HAUBovM2sLwM408A18h+wd9vqdLOEqTUCbnRIcx68=
40+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
41+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
4442
github.com/google/go-github/v69 v69.2.0 h1:wR+Wi/fN2zdUx9YxSmYE0ktiX9IAR/BeePzeaUUbEHE=
4543
github.com/google/go-github/v69 v69.2.0/go.mod h1:xne4jymxLR6Uj9b7J7PyTpkMYstEMMwGZa0Aehh1azM=
44+
github.com/google/go-github/v70 v70.0.0 h1:/tqCp5KPrcvqCc7vIvYyFYTiCGrYvaWoYMGHSQbo55o=
45+
github.com/google/go-github/v70 v70.0.0/go.mod h1:xBUZgo8MI3lUL/hwxl3hlceJW1U8MVnXP3zUyI+rhQY=
4646
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
4747
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
4848
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA=
@@ -67,8 +67,8 @@ github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zk
6767
github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4=
6868
github.com/palantir/go-baseapp v0.5.2 h1:b1ukx7AXo2/E4NkUvTFlW+185uwCcifzd2XzLrG4oS8=
6969
github.com/palantir/go-baseapp v0.5.2/go.mod h1:uijQMPfmgV69oiMu2jkskum/4HiYuEP/gzrnphD+/Co=
70-
github.com/palantir/go-githubapp v0.33.0 h1:4oH4WZI2wWjJDbaIqwn8SeXa8sEvOfsKcnRwF1lSkAk=
71-
github.com/palantir/go-githubapp v0.33.0/go.mod h1:q7mdUDC9ErLob//RLcjo1KGYaePVBRpN/5iwCD8PeR8=
70+
github.com/palantir/go-githubapp v0.34.0 h1:NyZ1l0akCclLXGNsZ9DHUyfENGorF9XrGn5fksgbizE=
71+
github.com/palantir/go-githubapp v0.34.0/go.mod h1:qYCM6XQBdcSO2C2Rnwl6MpuXbhh89yXImN2RUQKkrNQ=
7272
github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc=
7373
github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ=
7474
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
@@ -83,15 +83,14 @@ github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI
8383
github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc=
8484
github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg=
8585
github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM=
86-
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM=
87-
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
86+
github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9 h1:bsUq1dX0N8AOIL7EB/X911+m4EHsnWEHeJ0c+3TTBrg=
87+
github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
8888
github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8=
8989
github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE=
90-
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
9190
github.com/rs/xid v1.6.0 h1:fV591PaemRlL6JfRxGDEPl69wICngIQ3shQtzfy2gxU=
9291
github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0=
93-
github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8=
94-
github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss=
92+
github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY=
93+
github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ=
9594
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
9695
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
9796
github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
@@ -118,20 +117,20 @@ github.com/vektah/gqlparser v1.3.1 h1:8b0IcD3qZKWJQHSzynbDlrtP3IxVydZ2DZepCGofqf
118117
github.com/vektah/gqlparser v1.3.1/go.mod h1:bkVf0FX+Stjg/MHnm8mEyubuaArhNEqfQhF+OTiAL74=
119118
goji.io v2.0.2+incompatible h1:uIssv/elbKRLznFUy3Xj4+2Mz/qKhek/9aZQDUMae7c=
120119
goji.io v2.0.2+incompatible/go.mod h1:sbqFwrtqZACxLBTQcdgVjFh54yGVCvwq8+w49MVMMIk=
121-
golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus=
122-
golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M=
123-
golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=
124-
golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk=
125-
golang.org/x/oauth2 v0.26.0 h1:afQXWNNaeC4nvZ0Ed9XvCCzXM6UHJG7iCg0W4fPqSBE=
126-
golang.org/x/oauth2 v0.26.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
120+
golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE=
121+
golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc=
122+
golang.org/x/net v0.39.0 h1:ZCu7HMWDxpXpaiKdhzIfaltL9Lp31x/3fCP11bc6/fY=
123+
golang.org/x/net v0.39.0/go.mod h1:X7NRbYVEA+ewNkCNyJ513WmMdQ3BineSwVtN2zD/d+E=
124+
golang.org/x/oauth2 v0.29.0 h1:WdYw2tdTK1S8olAzWHdgeqfy+Mtm9XNhv/xJsY65d98=
125+
golang.org/x/oauth2 v0.29.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
127126
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
128127
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
129128
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
130129
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
131130
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
132131
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
133-
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
134-
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
132+
golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20=
133+
golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
135134
golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
136135
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
137136
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=

godel/config/godel.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
distributionURL=https://github.com/palantir/godel/releases/download/v2.125.0/godel-2.125.0.tgz
2-
distributionSHA256=1e2e7a763a8af8ba9e3a4b9bcc39d9575ffa991b6edd9c5b68fdac766b385f59
1+
distributionURL=https://github.com/palantir/godel/releases/download/v2.127.0/godel-2.127.0.tgz
2+
distributionSHA256=122c8fb55cdaedbbf283fb50ddf9f11a183514238781e7be340c515d3ae5e3c9

godel/config/godel.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ plugins:
33
- https://github.com/{{index GroupParts 1}}/{{index GroupParts 2}}/releases/download/v{{Version}}/{{Product}}-{{Version}}-{{OS}}-{{Arch}}.tgz
44
plugins:
55
- locator:
6-
id: com.palantir.godel-mod-plugin:mod-plugin:1.46.0
6+
id: com.palantir.godel-mod-plugin:mod-plugin:1.48.0
77
checksums:
8-
darwin-amd64: 66c0d7942a73e3fc48cbf192a2e09b78c218f22daa712141fe4408ffb930c377
9-
linux-amd64: 242803426b46260202c6a5341ff4b01a8b82a067c8a6f803ea6c94fe4b1ea13e
8+
darwin-amd64: 09d0982bdde58525971c776454d89c667db17aeae9182f36d50c3d7ca0c765b4
9+
darwin-arm64: 0c0933e0f089a8ee9d901053617ce4a519a544a71e14b133fdd32cea73247ad7
10+
linux-amd64: 0d3f159370688ba18a4744606c00740a01465b9fcc55c19e9d86fe4d75036ac9
11+
linux-arm64: 5369af8f919550b1a8ffea4962e4109c695d5b3ac688e9ec8084753039dcb456
1012
environment:
1113
GO111MODULE: "on"
1214
GOFLAGS: "-mod=vendor"

godelw

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
set -euo pipefail
44

55
# Version and checksums for godel. Values are populated by the godel "dist" task.
6-
VERSION=2.125.0
7-
DARWIN_AMD64_CHECKSUM=b59ed2830dcf67b5b86cdb21018d61426448905405b35c5688f41f0689acea14
8-
DARWIN_ARM64_CHECKSUM=27da208108c5de3652478f3df89883b0f76b603cadec0d375009ffa331926a0b
9-
LINUX_AMD64_CHECKSUM=3cc3596b42dd6fdceca419eae167a3bf513a63b57fe302d434e0fc9378d21392
10-
LINUX_ARM64_CHECKSUM=293b8b4cb93471582d2210cdbfff4121680b2342796797e53f0fdb1a1d2c3337
6+
VERSION=2.127.0
7+
DARWIN_AMD64_CHECKSUM=3e82d02d9e415c76992a2d9793e765172c180dc3570bd3a3becef903d37d88df
8+
DARWIN_ARM64_CHECKSUM=bc715f6ea47ce0815e78890a1b85971ede98cd654533ff1e90e458fe09eedaa0
9+
LINUX_AMD64_CHECKSUM=1b7e8561d1f3cd98bbea098a06be096aed886a832a525cd993faade33411e736
10+
LINUX_ARM64_CHECKSUM=83d2bfab3f39d6795bfa9ed0d336552ec3f0ae321acdc35e3f9dd72a96a8c919
1111

1212
# Downloads file at URL to destination path using wget or curl. Prints an error and exits if wget or curl is not present.
1313
function download {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
},
1111
"devDependencies": {
1212
"@fullhuman/postcss-purgecss": "^7.0",
13-
"autoprefixer": "^10.4.20",
13+
"autoprefixer": "^10.4.21",
1414
"css-loader": "^7.1.2",
1515
"cssnano": "^7.0",
1616
"mini-css-extract-plugin": "^2.9.2",
1717
"postcss": "^8.5",
1818
"postcss-loader": "^8.1.1",
1919
"tailwindcss": "^1.0",
20-
"webpack": "^5.97.1",
20+
"webpack": "^5.98.0",
2121
"webpack-cli": "^6.0.1",
22-
"webpack-manifest-plugin": "^5.0.0"
22+
"webpack-manifest-plugin": "^5.0.1"
2323
},
2424
"dependencies": {
2525
"htmx.org": "^1.9.12"

policy/approval/approve.go

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,32 @@ import (
2929
)
3030

3131
type Rule struct {
32-
Name string `yaml:"name"`
33-
Description string `yaml:"description"`
34-
Predicates predicate.Predicates `yaml:"if"`
35-
Options Options `yaml:"options"`
36-
Requires Requires `yaml:"requires"`
32+
Name string `yaml:"name,omitempty"`
33+
Description string `yaml:"description,omitempty"`
34+
Predicates predicate.Predicates `yaml:"if,omitempty"`
35+
Options Options `yaml:"options,omitempty"`
36+
Requires Requires `yaml:"requires,omitempty"`
3737
}
3838

3939
type Options struct {
40-
AllowAuthor bool `yaml:"allow_author"`
41-
AllowContributor bool `yaml:"allow_contributor"`
42-
AllowNonAuthorContributor bool `yaml:"allow_non_author_contributor"`
43-
InvalidateOnPush bool `yaml:"invalidate_on_push"`
40+
AllowAuthor bool `yaml:"allow_author,omitempty"`
41+
AllowContributor bool `yaml:"allow_contributor,omitempty"`
42+
AllowNonAuthorContributor bool `yaml:"allow_non_author_contributor,omitempty"`
43+
InvalidateOnPush bool `yaml:"invalidate_on_push,omitempty"`
4444

45-
IgnoreEditedComments bool `yaml:"ignore_edited_comments"`
46-
IgnoreUpdateMerges bool `yaml:"ignore_update_merges"`
47-
IgnoreCommitsBy common.Actors `yaml:"ignore_commits_by"`
45+
IgnoreEditedComments bool `yaml:"ignore_edited_comments,omitempty"`
46+
IgnoreUpdateMerges bool `yaml:"ignore_update_merges,omitempty"`
47+
IgnoreCommitsBy common.Actors `yaml:"ignore_commits_by,omitempty"`
4848

49-
RequestReview RequestReview `yaml:"request_review"`
49+
RequestReview RequestReview `yaml:"request_review,omitempty"`
5050

51-
Methods *common.Methods `yaml:"methods"`
51+
Methods *common.Methods `yaml:"methods,omitempty"`
5252
}
5353

5454
type RequestReview struct {
55-
Enabled bool `yaml:"enabled"`
56-
Mode common.RequestMode `yaml:"mode"`
57-
Count int `yaml:"count"`
55+
Enabled bool `yaml:"enabled,omitempty"`
56+
Mode common.RequestMode `yaml:"mode,omitempty"`
57+
Count int `yaml:"count,omitempty"`
5858
}
5959

6060
func (opts *Options) GetMethods() *common.Methods {
@@ -78,9 +78,9 @@ func (opts *Options) GetMethods() *common.Methods {
7878
}
7979

8080
type Requires struct {
81-
Count int `yaml:"count"`
81+
Count int `yaml:"count,omitempty"`
8282
Actors common.Actors `yaml:",inline"`
83-
Conditions predicate.Predicates `yaml:"conditions"`
83+
Conditions predicate.Predicates `yaml:"conditions,omitempty"`
8484
}
8585

8686
func (r *Rule) Trigger() common.Trigger {
@@ -411,7 +411,7 @@ func (r *Rule) filteredCommits(ctx context.Context, prctx pull.Context) ([]*pull
411411
commits = sortCommits(commits, prctx.HeadSHA())
412412

413413
ignoreUpdates := r.Options.IgnoreUpdateMerges
414-
ignoreCommits := !r.Options.IgnoreCommitsBy.IsEmpty()
414+
ignoreCommits := !r.Options.IgnoreCommitsBy.IsZero()
415415

416416
if !ignoreUpdates && !ignoreCommits {
417417
return commits, nil

policy/approval/approve_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"testing"
2323
"time"
2424

25-
"github.com/google/go-github/v69/github"
25+
"github.com/google/go-github/v70/github"
2626
"github.com/palantir/policy-bot/policy/common"
2727
"github.com/palantir/policy-bot/policy/predicate"
2828
"github.com/palantir/policy-bot/pull"

0 commit comments

Comments
 (0)