Add create-branch.yml GitHub Actions workflow#462
Merged
Conversation
- Triggers on workflow_dispatch with mandatory 'name' string input - Has contents: write permissions - Creates and pushes new branch with user-provided name - Includes error handling for existing branches - Adds workflow summary with branch details - Passes actionlint validation Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] add a "create-branch.yml" github action workflow that:
- triggers on worflow-distach and has a mandatory "name" string input parameter
- has permissions: contents: write
- create a new branch with the branch name given by the user and pushes to the re...
Add create-branch.yml GitHub Actions workflow
Sep 5, 2025
pelikhan
approved these changes
Sep 5, 2025
github-actions bot
added a commit
that referenced
this pull request
Jan 6, 2026
…ert #462) Changed suppression comment format from inline #nosec to standalone nolint:gosec directive to properly suppress gosec G101 false positive. The flagged string is a GitHub Actions expression template, not a hardcoded credential. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This was referenced Jan 6, 2026
Closed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds a new GitHub Actions workflow that allows users to create and push new branches to the repository through the GitHub Actions interface.
Features
The new
create-branch.ymlworkflow provides:workflow_dispatchto allow on-demand executionnamestring parameter for the branch namecontents: writepermission to create and push branchesImplementation Details
The workflow follows GitHub Actions best practices:
actions/checkout@v5with full git history (fetch-depth: 0)Usage
Users can trigger this workflow from the Actions tab by:
This addresses the need for a simple, user-friendly way to create branches without requiring local git operations or direct repository access.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.contoso.com/tmp/go-build3396865111/b278/cli.test -test.testlogfile=/tmp/go-build3396865111/b278/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)/tmp/go-build1409158599/b278/cli.test -test.testlogfile=/tmp/go-build1409158599/b278/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.