Skip to content

Conversation

@xhan-cflt
Copy link
Member

What

Checklist

  • Contains customer facing changes? Including API/behavior changes
  • Did you add sufficient unit test and/or integration test coverage for this PR?
    • If not, please explain why it is not required

References

JIRA:

Test & Review

Open questions / Follow-ups

@xhan-cflt xhan-cflt requested review from a team as code owners November 13, 2025 18:04
Copy link

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

This PR adds a new Semaphore CI task configuration for creating Git tags. The task allows manual triggering with a customizable tag name parameter, providing a standardized way to create and push tags to the repository.

Key Changes

  • Added a new parameterized Semaphore task definition for Git tag creation
  • Configured the task to run on the main branch with a required TAG_NAME parameter

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
service.yml Adds task configuration to enable the create-git-tag task with parameters
.semaphore/create-git-tag.yml Defines the Semaphore pipeline for creating and pushing Git tags
Comments suppressed due to low confidence (1)

.semaphore/create-git-tag.yml:1

  • The git tag command lacks error handling for existing tags. If TAG_NAME already exists, the command will fail. Consider adding the -f flag for force overwriting, or add a check to verify the tag doesn't exist, or use git tag -a ${TAG_NAME} -m "Created tag ${TAG_NAME}" for annotated tags with proper error handling.
version: v1.0 

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

jobs:
- name: Create Git Tag
commands:
- git tag ${TAG_NAME}
Copy link

Copilot AI Nov 13, 2025

Choose a reason for hiding this comment

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

Creating a lightweight tag instead of an annotated tag. Annotated tags are recommended for releases as they store tagger information, date, and message. Consider using git tag -a ${TAG_NAME} -m \"Release ${TAG_NAME}\" instead.

Suggested change
- git tag ${TAG_NAME}
- git tag -a ${TAG_NAME} -m "Release ${TAG_NAME}"
Copilot uses AI. Check for mistakes.
- name: TAG_NAME
required: true
description: The name of the tag to be created.
default_value: "X.Y.Z"
Copy link

Copilot AI Nov 13, 2025

Choose a reason for hiding this comment

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

The default value 'X.Y.Z' is a placeholder that could lead to accidental creation of invalid tags. Consider removing the default_value to force users to explicitly provide a tag name, or use a more descriptive placeholder like 'v0.0.0' that follows semantic versioning.

Suggested change
default_value: "X.Y.Z"
Copilot uses AI. Check for mistakes.
@sonarqube-confluent
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Copy link
Member

@rayokota rayokota left a comment

Choose a reason for hiding this comment

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

Thanks @xhan-cflt , LGTM

@xhan-cflt xhan-cflt merged commit 970ab6b into master Nov 14, 2025
3 checks passed
@xhan-cflt xhan-cflt deleted the create-tag branch November 14, 2025 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants