Skip to content

Commit 57ee4b4

Browse files
authored
chore: disable api versioning (#60)
* chore: don't show old and new target information if matching * feat: add highlight js for console output * add changelog component * feat: improve changelog and console output * remove unwanted code * fix: remove information from the wrong place * feat: add new config views * chore: use icon instead of text in summary dashboard * chore: don't leverage vuejs reactivity to search for scm data After using the feature, prevously, it would make the UX awefull as API calls would be done on git repository or git branch change Until the right combination of git url/branch was achieved * feat: add config link to the side navigation * add config view to default app.vue * refactor: reorg the code used by pipeline components * chore: add yaml-js dependency * chore: use versioned api endpoint * chore: disable api versioning * ci: use updatecli compose file
1 parent a61e778 commit 57ee4b4

File tree

6 files changed

+33
-42
lines changed

6 files changed

+33
-42
lines changed

.github/workflows/updatecli.yaml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,8 @@ jobs:
2222
app_id: ${{ secrets.UPDATECLIBOT_APP_ID }}
2323
private_key: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
2424

25-
- name: Login with Udash
26-
run: "updatecli udash login --experimental --oauth-access-token $UDASH_ACCESS_TOKEN $UDASH_URL"
27-
env:
28-
UDASH_ACCESS_TOKEN: ${{ secrets.UDASH_ACCESS_TOKEN }}
29-
UDASH_URL: ${{ vars.UDASH_URL }}
30-
3125
- name: "Run updatecli"
32-
run: "updatecli apply --config ./updatecli/updatecli.d --experimental"
26+
run: "updatecli compose apply"
3327
env:
34-
UPDATECLI_GITHUB_ACTOR: ${{ secrets.UPDATECLI_BOT_GITHUB_ACTOR }}
35-
UPDATECLI_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
36-
37-
- name: Logout from Udash
38-
run: "updatecli udash logout --experimental $UDASH_URL"
39-
env:
40-
UDASH_URL: ${{ vars.UDASH_URL }}
41-
28+
GITHUB_ACTOR: ${{ secrets.UPDATECLI_BOT_GITHUB_ACTOR }}
29+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const UDASH_API_VERSION = "alpha"
1+
export const UDASH_API_VERSION = ""

updatecli-compose.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
policies:
2+
- name: Local Updatecli Website Policies
3+
config:
4+
- updatecli/updatecli.d/
5+
values:
6+
- updatecli/values.d/scm.yaml
7+
8+
- name: NPM autodiscovery
9+
policy: ghcr.io/updatecli/policies/npm/autodiscovery:0.9.0@sha256:bfb7aaa719c26db1e13095fec27c143cf2c99b64b577d200a0bb658b724d37ae
10+
values:
11+
- updatecli/values.d/scm.yaml
12+
- updatecli/values.d/npm.yaml
13+
- name: Update Updatecli policies
14+
policy: ghcr.io/updatecli/policies/updatecli/autodiscovery:0.5.0@sha256:947817644fb89e27f7b7121b822328c2d47364c7a3a08241e4d2ac1a5897020c
15+
values:
16+
- updatecli/values.d/scm.yaml
17+
18+
19+

updatecli/updatecli.d/npm.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

updatecli/values.d/npm.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
groupby: individual
2+
automerge: false

updatecli/values.d/scm.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
scm:
2+
enabled: true
3+
user: updatecli-bot
4+
email: updatecli-bot@updatecli.io
5+
owner: updatecli
6+
repository: website
7+
username: "updatecli-bot"
8+
branch: master

0 commit comments

Comments
 (0)