Skip to content
Merged

Next #7516

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/github-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ scripts:
triggers:
- session.create
- name: Restore apm.lock
command: git restore apm.lock
command: git restore apm.lock.yaml
triggers:
- session.create
- name: Install ast-grep-cli
command: pip install ast-grep-cli
triggers:
- session.create
automation:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Install apm-cli and run apm install
run: |
pip install apm-cli
apm install
git restore apm.lock
git restore apm.lock.yaml

- name: Install ast-grep
run: |
pip install ast-grep-cli
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apm_modules/
.github/instructions/*
!.github/skills/segment-create/
!.github/skills/segment-docs/
.agents/

# Others

Expand Down
73 changes: 0 additions & 73 deletions apm.lock

This file was deleted.

2 changes: 1 addition & 1 deletion src/cli/auth/ytmda.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (y *Ytmda) Authenticate() {
return
}

cache.Set(cache.Session, YTMDATOKEN, token, cache.INFINITE)
cache.Set(cache.Device, YTMDATOKEN, token, cache.INFINITE)

setState(done)
}
Expand Down
10 changes: 6 additions & 4 deletions src/cli/auth/ytmda_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ func TestYtdma_Authenticate(t *testing.T) {
env.On("HTTPRequest", codeURL).Return([]byte(tc.requestCodeResponse), tc.requestCodeError)
env.On("HTTPRequest", tokenURL).Return([]byte(tc.requestTokenResponse), tc.requestTokenError)

if tc.shouldSetToken {
cache.Set(cache.Device, YTMDATOKEN, tc.expectedToken, cache.INFINITE)
}

ytmda := &Ytmda{
model: model{
env: env,
Expand All @@ -99,6 +95,12 @@ func TestYtdma_Authenticate(t *testing.T) {
assert.Nil(t, ytmda.err)
}

if tc.shouldSetToken {
token, ok := cache.Get[string](cache.Device, YTMDATOKEN)
require.True(t, ok)
assert.Equal(t, tc.expectedToken, token)
}
Comment on lines +98 to +102

cache.DeleteAll(cache.Device)
})
}
Expand Down
26 changes: 13 additions & 13 deletions website/api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading