Skip to content

v1.0.0 beta #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
296daf3
chore: Update version
alexluong Sep 3, 2024
34d9c8b
feat: Use either global or local config file
alexluong Sep 2, 2024
b7dc5df
chore: Remove debug log
alexluong Sep 2, 2024
9496ab4
refactor: fs interface
alexluong Sep 2, 2024
8defd13
test: getConfigPath
alexluong Sep 2, 2024
827435b
test: improve test semantic using expected path variable
alexluong Sep 2, 2024
23767be
test: Parse config with different mock config scenarios
alexluong Sep 2, 2024
5006f6c
refactor: Clean config files & reduce package's public api surface
alexluong Sep 2, 2024
d5e33d0
test: Methods related to config updates
alexluong Sep 3, 2024
f20260a
Merge pull request #103 from hookdeck/refactor-config
leggetter Jun 13, 2025
ee82412
Merge branch 'main' of https://github.com/hookdeck/hookdeck-cli into …
leggetter Jun 13, 2025
8116923
fix: ensure config.toml exists and create if doesn't
leggetter Jun 13, 2025
b80a794
refactor: update configuration from team to project terminology and s…
leggetter Jun 13, 2025
3b2fdc7
feat: support passing project name to "project use {name}"
leggetter Jun 13, 2025
70eeadb
chore: add HTTP request debug logging (can be very verbose)
leggetter Jun 13, 2025
db686c0
feat: support `project use [org [project]]`
leggetter Jun 13, 2025
34f6428
chore(docs): enhance login instructions and add interactive login opt…
leggetter Jun 14, 2025
3b0caff
chore(docs): improve profile management usage
leggetter Jun 14, 2025
d3e84e4
chore(docs): add configuration file details and usage instructions
leggetter Jun 14, 2025
7d1d7ab
chore(docs): add global flags
leggetter Jun 14, 2025
1f180f5
chore: improve API interaction logging
leggetter Jun 14, 2025
90d0dbb
chore: add basic acceptance tests for Hookdeck CLI
leggetter Jun 14, 2025
c97b673
chore: update project management commands in README and improve proje…
leggetter Jun 14, 2025
957ffce
chore: improve error messages for project selection in runProjectUseCmd
leggetter Jun 16, 2025
f704741
Merge pull request #128 from hookdeck/feat/project-use-org-proj
leggetter Jun 16, 2025
8cbf40e
fix: update environment variable name in acceptance test script
leggetter Jun 16, 2025
3eed949
fix: update environment variable for acceptance tests to use testing …
leggetter Jun 16, 2025
656ce6b
fix: correct environment variable name in acceptance test workflow
leggetter Jun 16, 2025
5f3f84d
Merge branch 'main' of https://github.com/hookdeck/hookdeck-cli into …
leggetter Jun 16, 2025
09edd02
fix: update checkout reference to use release branch variable
leggetter Jun 16, 2025
ef5e56f
fix: determine release branch dynamically and update package.json ver…
leggetter Jun 16, 2025
08bf877
fix: add step to checkout release branch before updating package.json…
leggetter Jun 16, 2025
2cd5734
Merge branch 'main' of https://github.com/hookdeck/hookdeck-cli into …
leggetter Jun 16, 2025
a4496e1
Update package.json version to 1.0.0-beta.3
github-actions[bot] Jun 16, 2025
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
26 changes: 26 additions & 0 deletions .github/workflows/acceptance-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Acceptance Tests

on:
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
env:
HOOKDECK_CLI_TESTING_API_KEY: ${{ secrets.HOOKDECK_CLI_TESTING_API_KEY }}
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.18'

- name: Make script executable
run: chmod +x scripts/acceptance-test.sh

- name: Run acceptance tests
run: ./scripts/acceptance-test.sh
38 changes: 34 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,29 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
# Checkout on main so that the later commit works
ref: main
# With permission to push to a protected branch
token: ${{ secrets.READ_WRITE_PAT }}

fetch-depth: 0 # Required to find branches for a tag

- name: Determine release branch
id: get_branch
run: |
# Find the branch that contains the tag.
# Prefers 'main', then 'master', then the first branch found.
BRANCHES=$(git branch -r --contains ${{ github.ref_name }} | sed 's/ *origin\///' | grep -v HEAD)
if echo "$BRANCHES" | grep -q -w "main"; then
RELEASE_BRANCH="main"
elif echo "$BRANCHES" | grep -q -w "master"; then
RELEASE_BRANCH="master"
else
RELEASE_BRANCH=$(echo "$BRANCHES" | head -n 1)
fi
echo "RELEASE_BRANCH=${RELEASE_BRANCH}" >> $GITHUB_OUTPUT
echo "Determined release branch for commit: ${RELEASE_BRANCH}"

- name: Checkout release branch
run: git checkout ${{ steps.get_branch.outputs.RELEASE_BRANCH }}

- uses: actions/setup-node@v4
with:
node-version: "20.x"
Expand Down Expand Up @@ -133,6 +151,18 @@ jobs:
add: 'package.json'

- run: npm ci
- run: npm publish

- name: Determine npm tag for pre-releases
id: npm_tag
run: |
TAG_VERSION="${{ steps.tag-version.outputs.TAG_VERSION }}"
NPM_TAG="latest"
if [[ "$TAG_VERSION" == *-* ]]; then
NPM_TAG=$(echo "$TAG_VERSION" | cut -d'-' -f2 | cut -d'.' -f1)
fi
echo "tag=${NPM_TAG}" >> $GITHUB_OUTPUT
echo "npm tag: ${NPM_TAG}"

- run: npm publish --tag ${{ steps.npm_tag.outputs.tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading
Loading