Skip to content

chore: release package(s) #208

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

Merged
merged 1 commit into from
Apr 1, 2025
Merged

chore: release package(s) #208

merged 1 commit into from
Apr 1, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 1, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

[email protected]

Minor Changes

  • e9adb24 Thanks @JounQin! - chore: housekeeping, bump all (dev) deps, add module-sync entry

    fix: commonjs types entry

  • #195 e7cbdff Thanks @WeslleyNasRocha! - feat: fetch the tags and push each one individually based on size of packages to be published and api.FeatureFlags(projectId, 'git_push_create_all_pipelines')

  • #210 8bdaf2d Thanks @JounQin! - feat: try allDiffs api first and fallback to showChanges when unavailable

  • #209 4ca179c Thanks @JounQin! - feat: add a new optional GITLAB_COMMENT_CUSTOM_LINKS environment variable to override the links content referenced in the cli bot comment, use {{ addChangesetUrl }} placeholder for the dynamic URL to add a changeset

  • #196 b681513 Thanks @crysadrak! - feat: add a new optional GITLAB_COMMENT_DISCUSSION_AUTO_RESOLVE environment variable to automatically resolve added discussion when changeset is present, if you want to always resolve the discussion, you should actually use GITLAB_COMMENT_TYPE=note instead, default true

  • #206 842110d Thanks @jean-smaug! - refactor: publish releases with limited concurrency with p-limit

Patch Changes

Copy link

coderabbitai bot commented Apr 1, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

This PR removes several changeset files that documented various updates and new features. The changes include housekeeping tasks (updating development dependencies and fixing type definitions), API enhancements for tag fetching and data diff retrieval (with a fallback mechanism), and the addition of two optional environment variables to customize GitLab CLI bot comments and auto-resolve discussions. It also refactors the release publishing process to limit concurrency. The changelog was updated to version 0.13.0, and the package version in package.json was bumped accordingly. No modifications were made to exported or public entities.

Changes

File(s) Change Summary
.changeset/good-wolves-rhyme.md Housekeeping: updated dev dependencies, added module-sync, and fixed commonjs types.
.changeset/mighty-chefs-serve.md, .changeset/neat-hats-breathe.md API enhancements: added tag fetching logic with feature flag checks and implemented a fallback from allDiffs to showChanges for diff retrieval.
.changeset/short-queens-cover.md, .changeset/swift-berries-exist.md Introduced environment variables: GITLAB_COMMENT_CUSTOM_LINKS for custom comment links and GITLAB_COMMENT_DISCUSSION_AUTO_RESOLVE for auto-resolving discussions.
.changeset/ten-eagles-sing.md Refactored release publishing by implementing limited concurrency using the p-limit library.
CHANGELOG.md, package.json Updated changelog for version 0.13.0 and bumped package version from 0.12.2 to 0.13.0.

Sequence Diagram(s)

Diff Retrieval Fallback Flow

sequenceDiagram
    participant App
    participant API_AllDiffs as "API (allDiffs)"
    participant API_ShowChanges as "API (showChanges)"

    App->>API_AllDiffs: Request data differences
    alt allDiffs available
        API_AllDiffs-->>App: Return diffs
    else allDiffs unavailable
        App->>API_ShowChanges: Request data differences
        API_ShowChanges-->>App: Return diffs
    end
Loading

Tag Fetching and Publishing Flow

sequenceDiagram
    participant Publisher
    participant FeatureFlags as "API (FeatureFlags)"
    participant GitRepo as "Git Repository"

    Publisher->>FeatureFlags: Check feature flag for tag processing
    FeatureFlags-->>Publisher: Return feature flag status
    Publisher->>GitRepo: Fetch tags based on package size
    loop For each tag
        Publisher->>GitRepo: Push tag individually
    end
Loading

Possibly related PRs

Poem

Hopping through lines of code I roam,
Fixing bugs while I call it home.
With custom links and auto-resolve so bright,
My releases leap in synchronized flight.
A rabbit's cheer for changes done right!
🥕🐇


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codesandbox-ci bot commented Apr 1, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@github-actions github-actions bot force-pushed the changeset-release/main branch 7 times, most recently from 6a9dc04 to 276b395 Compare April 1, 2025 10:39
@JounQin JounQin closed this Apr 1, 2025
@JounQin JounQin reopened this Apr 1, 2025
@JounQin
Copy link
Member

JounQin commented Apr 1, 2025

@codecov-ai-reviewer review

Copy link

codecov-ai bot commented Apr 1, 2025

On it! We are reviewing the PR and will provide feedback shortly.

Copy link

pkg-pr-new bot commented Apr 1, 2025

Open in StackBlitz

npm i https://pkg.pr.new/changesets-gitlab@208

commit: 276b395

Copy link
Contributor Author

github-actions bot commented Apr 1, 2025

📊 Package size report   No changes

File Before After
Total (Includes all files) 136.3 kB 136.3 kB
Tarball size 35.8 kB 0.02%↑35.8 kB
Unchanged files
File Size
index.d.cts 73 B
lib/api.d.ts 99 B
lib/api.js 899 B
lib/api.js.map 1.0 kB
lib/cli.d.ts 39 B
lib/cli.js 734 B
lib/cli.js.map 932 B
lib/comment.d.ts 247 B
lib/comment.js 9.4 kB
lib/comment.js.map 7.3 kB
lib/context.d.ts 74 B
lib/context.js 138 B
lib/context.js.map 228 B
lib/env.d.ts 70 B
lib/env.js 857 B
lib/env.js.map 778 B
lib/get-changed-packages.d.ts 305 B
lib/get-changed-packages.js 4.8 kB
lib/get-changed-packages.js.map 4.7 kB
lib/git-utils.d.ts 646 B
lib/git-utils.js 1.7 kB
lib/git-utils.js.map 2.2 kB
lib/index.cjs 44.0 kB
lib/index.d.ts 274 B
lib/index.js 241 B
lib/index.js.map 249 B
lib/main.d.ts 153 B
lib/main.js 3.6 kB
lib/main.js.map 3.1 kB
lib/read-changeset-state.d.ts 252 B
lib/read-changeset-state.js 650 B
lib/read-changeset-state.js.map 767 B
lib/run.d.ts 1.1 kB
lib/run.js 8.8 kB
lib/run.js.map 8.1 kB
lib/types.d.ts 1.2 kB
lib/types.js 44 B
lib/types.js.map 102 B
lib/utils.d.ts 1.6 kB
lib/utils.js 4.2 kB
lib/utils.js.map 4.8 kB
LICENSE 1.1 kB
package.json 3.2 kB
README.md 11.6 kB

🤖 This report was automatically generated by pkg-size-action

@JounQin
Copy link
Member

JounQin commented Apr 1, 2025

@coderabbitai review

Copy link

coderabbitai bot commented Apr 1, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
CHANGELOG.md (1)

3-20: Changelog Entry for Version 0.13.0
The new changelog section for version 0.13.0 is detailed and well-structured, outlining the minor changes and new features (e.g., housekeeping updates, API enhancements, and the introduction of optional environment variables). Consider rephrasing the entry on line 17 regarding GITLAB_COMMENT_DISCUSSION_AUTO_RESOLVE to adopt a friendlier tone and clearer guidance (e.g., clarifying its default behavior and the alternative of using GITLAB_COMMENT_TYPE=note). Additionally, if there are any breaking changes or migration steps required by these updates, a brief note would help users transition more smoothly.

🧰 Tools
🪛 LanguageTool

[style] ~17-~17: Consider using a more polite wording.
Context: ...ssion when changeset is present, if you want to always resolve the discussion, you s...

(IF_YOU_WANT)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8bdaf2d and 276b395.

📒 Files selected for processing (8)
  • .changeset/good-wolves-rhyme.md (0 hunks)
  • .changeset/mighty-chefs-serve.md (0 hunks)
  • .changeset/neat-hats-breathe.md (0 hunks)
  • .changeset/short-queens-cover.md (0 hunks)
  • .changeset/swift-berries-exist.md (0 hunks)
  • .changeset/ten-eagles-sing.md (0 hunks)
  • CHANGELOG.md (1 hunks)
  • package.json (1 hunks)
💤 Files with no reviewable changes (6)
  • .changeset/short-queens-cover.md
  • .changeset/swift-berries-exist.md
  • .changeset/good-wolves-rhyme.md
  • .changeset/mighty-chefs-serve.md
  • .changeset/neat-hats-breathe.md
  • .changeset/ten-eagles-sing.md
🧰 Additional context used
🪛 LanguageTool
CHANGELOG.md

[style] ~17-~17: Consider using a more polite wording.
Context: ...ssion when changeset is present, if you want to always resolve the discussion, you s...

(IF_YOU_WANT)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (2)
package.json (2)

3-3: Version Bump Verification
The version field is updated to "0.13.0", which correctly follows semver conventions for a minor release.


1-116: Metadata Enhancement Suggestion
While the changes here are focused on the version bump, consider adding a "keywords" field to improve the package’s discoverability. This echoes earlier feedback and would be a valuable addition to the package metadata.

@JounQin
Copy link
Member

JounQin commented Apr 1, 2025

@coderabbitai The CHANGELOG.md is managed by automation tool changesets, please always ignore it.

Copy link

coderabbitai bot commented Apr 1, 2025

Tip

For best results, initiate chat on the files or code changes.

@JounQin I understand that the CHANGELOG.md file is managed by the changesets automation tool. I'll always ignore this file in future reviews. Thank you for letting me know.


✏️ Learnings added
Learnt from: JounQin
URL: https://github.com/un-ts/changesets-gitlab/pull/208

Timestamp: 2025-04-01T10:57:24.833Z
Learning: The `CHANGELOG.md` file in the changesets-gitlab repository is managed by the `changesets` automation tool and should always be ignored during code reviews.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

@github-actions github-actions bot force-pushed the changeset-release/main branch from 276b395 to 1c559af Compare April 1, 2025 11:06
Copy link

sonarqubecloud bot commented Apr 1, 2025

@JounQin JounQin merged commit 27afaae into main Apr 1, 2025
5 of 6 checks passed
@JounQin JounQin deleted the changeset-release/main branch April 1, 2025 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant