Skip to content

feat: add workflow to create and push pkg Go module version tags#5001

Merged
sweatybridge merged 4 commits intodependabot/github_actions/actions-major-13db8ae6abfrom
copilot/push-tag-v1-2-2-to-develop
Mar 28, 2026
Merged

feat: add workflow to create and push pkg Go module version tags#5001
sweatybridge merged 4 commits intodependabot/github_actions/actions-major-13db8ae6abfrom
copilot/push-tag-v1-2-2-to-develop

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 27, 2026

The pkg/ subdirectory is a separate Go module (github.com/supabase/cli/pkg) requiring its own semver-prefixed tags (e.g. pkg/v1.2.2) for Go module versioning. No automation existed to create and push these tags.

Changes

  • .github/workflows/tag-pkg.yml: New workflow_dispatch workflow that:
    • Accepts a version input (e.g. v1.2.2)
    • Validates it matches semver format (v{major}.{minor}.{patch})
    • Guards against re-tagging by checking if the tag already exists
    • Checks out develop at HEAD and creates + pushes pkg/<version> tag

Usage

Trigger manually from the Actions UI with the desired version to tag the current HEAD of develop:

version: v1.2.2  →  creates and pushes tag pkg/v1.2.2
Original prompt

Create a tag for pkg/v1.2.2 and push to develop branch


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits March 27, 2026 23:22
Copilot AI changed the title [WIP] Add tag v1.2.2 and push to develop branch feat: add workflow to create and push pkg Go module version tags Mar 27, 2026
Copilot AI requested a review from sweatybridge March 27, 2026 23:24
@sweatybridge sweatybridge marked this pull request as ready for review March 28, 2026 00:09
@sweatybridge sweatybridge requested a review from a team as a code owner March 28, 2026 00:09
Copilot AI review requested due to automatic review settings March 28, 2026 00:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a manual GitHub Actions workflow to create Go module semver tags for the pkg/ submodule (github.com/supabase/cli/pkg) using the pkg/vX.Y.Z tag prefix, enabling proper Go module versioning automation.

Changes:

  • Introduces a workflow_dispatch workflow to tag develop HEAD as pkg/<version>.
  • Adds basic input validation for v{major}.{minor}.{patch} and a guard to prevent re-tagging.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 28, 2026

Pull Request Test Coverage Report for Build 23672905677

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 7 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 63.18%

Files with Coverage Reduction New Missed Lines %
internal/storage/rm/rm.go 2 80.61%
internal/utils/git.go 5 57.14%
Totals Coverage Status
Change from base Build 23671234841: -0.02%
Covered Lines: 9199
Relevant Lines: 14560

💛 - Coveralls

@sweatybridge sweatybridge changed the base branch from develop to dependabot/github_actions/actions-major-13db8ae6ab March 28, 2026 00:23
@sweatybridge sweatybridge merged commit 12feef4 into dependabot/github_actions/actions-major-13db8ae6ab Mar 28, 2026
15 checks passed
@sweatybridge sweatybridge deleted the copilot/push-tag-v1-2-2-to-develop branch March 28, 2026 00:23
sweatybridge added a commit that referenced this pull request Mar 28, 2026
…pdates (#5002)

* chore(deps): bump the actions-major group across 1 directory with 2 updates

Bumps the actions-major group with 2 updates in the / directory: [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `dependabot/fetch-metadata` from 2.5.0 to 3.0.0
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](dependabot/fetch-metadata@21025c7...ffa630c)

Updates `github/codeql-action` from 4.34.1 to 4.35.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@3869755...c10b806)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions-major
- dependency-name: github/codeql-action
  dependency-version: 4.35.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* feat: add workflow to create and push pkg Go module version tags (#5001)

* Initial plan

* feat: add workflow to create and push pkg version tags

Agent-Logs-Url: https://github.com/supabase/cli/sessions/78b5dd93-1c78-4cdc-b6f0-c664080934b8

Co-authored-by: sweatybridge <1639722+sweatybridge@users.noreply.github.com>

* feat: add version validation and tag existence check to tag-pkg workflow

Agent-Logs-Url: https://github.com/supabase/cli/sessions/78b5dd93-1c78-4cdc-b6f0-c664080934b8

Co-authored-by: sweatybridge <1639722+sweatybridge@users.noreply.github.com>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sweatybridge <1639722+sweatybridge@users.noreply.github.com>
Co-authored-by: Han Qiao <sweatybridge@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sweatybridge <1639722+sweatybridge@users.noreply.github.com>
Co-authored-by: Han Qiao <sweatybridge@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

4 participants