-
Notifications
You must be signed in to change notification settings - Fork 60
v6.0.0 #397
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
Draft
MrRefactoring
wants to merge
1
commit into
master
Choose a base branch
from
develop
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
v6.0.0 #397
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Changesets | ||
|
|
||
| This directory is used by [@changesets/cli](https://github.com/changesets/changesets) to manage versioning and changelog entries for jira.js. | ||
|
|
||
| ## Workflow | ||
|
|
||
| 1. **Make changes** — implement your feature or fix | ||
| 2. **Add a changeset** — `pnpm changeset` (interactive prompt) | ||
| 3. **Commit** — include the generated `.md` file in your commit | ||
| 4. **Release** — maintainers run `pnpm changeset version` to bump versions, then publish | ||
|
|
||
| ## Changeset types | ||
|
|
||
| | Type | When | | ||
| |------|------| | ||
| | `major` | Breaking changes (see `SEMVER_POLICY.md`) | | ||
| | `minor` | Additive changes (new endpoints, new exports) | | ||
| | `patch` | Bug fixes, internal improvements, declaration fixes | | ||
|
|
||
| ## Rules | ||
|
|
||
| - Every PR that affects public API **must** include a changeset | ||
| - PRs that only affect tests, docs, or CI may omit a changeset | ||
| - Breaking changes require a `major` changeset with migration guidance | ||
| - See `SEMVER_POLICY.md` for exact classification rules | ||
| - See `DEPRECATION_POLICY.md` for the deprecation lifecycle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/@changesets/config/schema.json", | ||
| "changelog": "@changesets/cli/changelog", | ||
| "commit": false, | ||
| "fixed": [], | ||
| "linked": [], | ||
| "access": "public", | ||
| "baseBranch": "master", | ||
| "updateInternalDependencies": "patch", | ||
| "ignore": [] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| '@jira.js/servicedesk': patch | ||
| '@jira.js/agile': patch | ||
| '@jira.js/cloud': patch | ||
| '@jira.js/base': patch | ||
| --- | ||
|
|
||
| Initial release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,15 @@ | ||
| HOST= | ||
| EMAIL= | ||
| API_TOKEN= | ||
| # Basic Auth — required for all live tests | ||
| JIRA_BASE_URL=https://your-domain.atlassian.net | ||
| JIRA_EMAIL=you@example.com | ||
| JIRA_API_TOKEN=your-api-token | ||
|
|
||
| # Optional — reuse an existing project instead of creating one per run | ||
| JIRA_TEST_PROJECT_KEY= | ||
|
|
||
| # OAuth 2.0 — required for Feature Flags, Builds, Deployments, Dev Info live tests | ||
| # Run `pnpm tsx scripts/oauth-setup.ts` to obtain tokens | ||
| JIRA_OAUTH_CLIENT_ID= | ||
| JIRA_OAUTH_CLIENT_SECRET= | ||
| JIRA_CLOUD_ID= | ||
| JIRA_OAUTH_TOKEN= | ||
| JIRA_OAUTH_REFRESH_TOKEN= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| name: 📦 Changeset Check | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| - develop | ||
|
|
||
| jobs: | ||
| changeset-check: | ||
| name: 📦 Changeset Required | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: 🔄 Checkout sources | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: ⚙️ Use Node.js 22.x | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22.x | ||
|
|
||
| - name: 📦 Install pnpm | ||
| uses: pnpm/action-setup@v4 | ||
|
|
||
| - name: 📌 Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: 📦 Check for changeset | ||
| run: | | ||
| # Get list of changed files in this PR vs base branch | ||
| CHANGED=$(git diff --name-only origin/${{ github.base_ref }}...HEAD) | ||
| echo "Changed files:" | ||
| echo "$CHANGED" | ||
|
|
||
| # Check if any package source files changed | ||
| SRC_CHANGED=$(echo "$CHANGED" | grep -E '^packages/[^/]+/src/' || true) | ||
|
|
||
| if [ -z "$SRC_CHANGED" ]; then | ||
| echo "✅ No package source files changed — changeset not required" | ||
| exit 0 | ||
| fi | ||
|
|
||
| echo "Source files changed:" | ||
| echo "$SRC_CHANGED" | ||
|
|
||
| # Check if any .md changeset files exist (excluding README.md) | ||
| CHANGESETS=$(ls .changeset/*.md 2>/dev/null | grep -v README.md || true) | ||
|
|
||
| if [ -z "$CHANGESETS" ]; then | ||
| echo "" | ||
| echo "❌ Package source files changed but no changeset found." | ||
| echo "" | ||
| echo " Run: pnpm changeset" | ||
| echo " This creates a changeset file describing the impact of your changes." | ||
| echo " See .changeset/README.md and SEMVER_POLICY.md for guidance." | ||
| echo "" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "✅ Changeset found:" | ||
| echo "$CHANGESETS" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| name: 📚 Docs | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master, develop] | ||
| paths: | ||
| - 'docs/**' | ||
| - 'packages/*/src/**' | ||
| - 'typedoc.json' | ||
| - '.github/workflows/docs.yml' | ||
| pull_request: | ||
| branches: [master, develop] | ||
| paths: | ||
| - 'docs/**' | ||
| - 'packages/*/src/**' | ||
| - 'typedoc.json' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| docs-build: | ||
| name: 🏗️ Build docs | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: 🔄 Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: ⚙️ Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22.x | ||
|
|
||
| - name: 📦 Install pnpm | ||
| uses: pnpm/action-setup@v4 | ||
|
|
||
| - name: 📌 Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: 🏗️ Build packages (for TypeDoc) | ||
| run: pnpm run build | ||
|
|
||
| - name: 📖 Generate API reference | ||
| run: pnpm docs:api | ||
|
|
||
| - name: 🏗️ Build VitePress site | ||
| run: pnpm docs:build | ||
|
|
||
| docs-deploy: | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| name: 🚀 Deploy to GitHub Pages | ||
| needs: docs-build | ||
| runs-on: ubuntu-latest | ||
| if: github.ref == 'refs/heads/master' && github.event_name == 'push' | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - name: 🔄 Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: ⚙️ Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22.x | ||
|
|
||
| - name: 📦 Install pnpm | ||
| uses: pnpm/action-setup@v4 | ||
|
|
||
| - name: 📌 Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: 🏗️ Build packages | ||
| run: pnpm run build | ||
|
|
||
| - name: 📖 Generate API reference | ||
| run: pnpm docs:api | ||
|
|
||
| - name: 🏗️ Build docs site | ||
| run: pnpm docs:build | ||
|
|
||
| - name: ⚙️ Setup Pages | ||
| uses: actions/configure-pages@v4 | ||
|
|
||
| - name: 📤 Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: docs/.vitepress/dist | ||
|
|
||
| - name: 🚀 Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ on: | |
| workflow_dispatch | ||
|
|
||
| env: | ||
| NODE_VERSION: '20.x' | ||
| NODE_VERSION: '22.x' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.