Skip to content

Commit

Permalink
Merge branch 'main' into feat/unsafe-service
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedoublev authored Jun 20, 2024
2 parents cd154d3 + 799eb36 commit 4665257
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 148 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/friendly-reminders.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 👋 Friendly Reminders

on:
pull_request:
branches: main

jobs:
job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extract go version
id: go-version
run: |
echo "go-version=$(go work edit --json | jq -r '.Go')" >>$GITHUB_OUTPUT
- uses: actions/setup-go@v5
with:
go-version: ${{ steps.go-version.outputs.go-version }}

- name: Check Go Mod Tidy
id: go-mod-tidy
run: |
# iterate over work file, cd and run go mod tidy
for line in $(go work edit --json | jq -r '.Use.[].DiskPath'); do
(cd $line && go mod tidy)
done
# check if any changes were made
echo $(git status --porcelain) >> $GITHUB_OUTPUT
- name: Post comment if go.mod was changed
if: steps.go-mod-tidy.outputs.stdout != ''
uses: actions/github-script@v7
with:
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Friendly reminder: go.mod was changed. Make sure to run `go mod tidy`!\n\n' +
'```\n${{ steps.go-mod-tidy.outputs.stdout }}\n```'
})
2 changes: 0 additions & 2 deletions service/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ require (
github.com/google/uuid v1.6.0
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1
github.com/itchyny/gojq v0.12.15
github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa
github.com/jackc/pgx/v5 v5.5.5
github.com/lestrrat-go/jwx/v2 v2.0.21
Expand Down Expand Up @@ -59,7 +58,6 @@ require (
github.com/docker/go-units v0.5.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/itchyny/timefmt-go v0.1.5 // indirect
github.com/tidwall/gjson v1.17.1 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.1 // indirect
Expand Down
4 changes: 0 additions & 4 deletions service/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4=
github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/itchyny/gojq v0.12.15 h1:WC1Nxbx4Ifw5U2oQWACYz32JK8G9qxNtHzrvW4KEcqI=
github.com/itchyny/gojq v0.12.15/go.mod h1:uWAHCbCIla1jiNxmeT5/B5mOjSdfkCq6p8vxWg+BM10=
github.com/itchyny/timefmt-go v0.1.5 h1:G0INE2la8S6ru/ZI5JecgyzbbJNs5lG1RcBqa7Jm6GE=
github.com/itchyny/timefmt-go v0.1.5/go.mod h1:nEP7L+2YmAbT2kZ2HfSs1d8Xtw9LY8D2stDBckWakZ8=
github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa h1:s+4MhCQ6YrzisK6hFJUX53drDT4UsSW3DEhKn0ifuHw=
github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa/go.mod h1:a/s9Lp5W7n/DD0VrVoyJ00FbP2ytTPDVOivvn2bMlds=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
Expand Down
61 changes: 0 additions & 61 deletions service/internal/subjectmappingbuiltin/jq_eval.go

This file was deleted.

81 changes: 0 additions & 81 deletions service/internal/subjectmappingbuiltin/jq_eval_test.go

This file was deleted.

0 comments on commit 4665257

Please sign in to comment.