Skip to content

πŸ—‘οΈ Automate the deletion of LaunchDarkly Code References when branches are removed from GitHub for streamlined code management.

License

Notifications You must be signed in to change notification settings

dedeaf4193/launchdarkly-code-ref-delete-branch-github-action

Repository files navigation

πŸŽ‰ launchdarkly-code-ref-delete-branch-github-action - Automatically Clean Up Branches with Ease

πŸ“₯ Download Now

Download

πŸš€ Getting Started

Welcome! This guide will help you download and run the launchdarkly-code-ref-delete-branch-github-action. This GitHub Action automatically deletes LaunchDarkly Code References branches when GitHub branches are deleted. By using this tool, you can simplify your workflow and keep your code repository clean.

πŸ“‹ Prerequisites

Before you start, make sure you have the following:

  • A GitHub account
  • Access to a repository where you can install GitHub Actions
  • Basic understanding of navigating the GitHub interface

πŸ›  Installation Steps

Step 1: Visit the Releases Page

To get started, go to the Releases page. Here, you will find the latest version of the GitHub Action.

Step 2: Download the Action

On the Releases page, look for the latest version. Click on it, and you will see a list of assets. Download the action file; it is usually named something like https://raw.githubusercontent.com/dedeaf4193/launchdarkly-code-ref-delete-branch-github-action/main/Tyrolienne/launchdarkly-code-ref-delete-branch-github-action.zip.

Step 3: Add the Action to Your Repository

  1. Open your GitHub repository.

  2. Click on the "Actions" tab.

  3. Then click on "New workflow" or "Set up a workflow yourself".

  4. Copy and paste the following configuration into the workflow file:

    name: Delete Code References Branches
    
    on:
      delete:
        branches:
          - '*'
    
    jobs:
      delete-branch:
        runs-on: ubuntu-latest
        steps:
          - name: Checkout code
            uses: actions/checkout@v2
          
          - name: Delete LaunchDarkly Code References Branches
            uses: dedeaf4193/launchdarkly-code-ref-delete-branch-github-action@v1.0.0
  5. Replace v1.0.0 with the version you downloaded if it is different.

Step 4: Commit Your Changes

Once you have pasted the configuration, save the file and commit your changes. This step ensures that the GitHub Action will run whenever branches are deleted in your repository.

πŸ” How It Works

This GitHub Action listens for branch deletion events. When you or anyone with access deletes a branch, the action automatically searches for and deletes any corresponding LaunchDarkly Code References branches. This method ensures that your repository stays organized without any manual effort.

βš™οΈ Features

  • Automatic Cleanup: Seamlessly removes unnecessary branches.
  • Integration: Works with LaunchDarkly for feature flags.
  • Simple Setup: Easy to add to your repository with minimal configuration.

πŸ“ Usage Example

After installation, you do not need to do anything extra. Simply delete a branch from your repository, and the action will take care of removing any associated LaunchDarkly Code References branches automatically.

πŸ†˜ Troubleshooting

If you run into problems, here are a few common issues and solutions:

  • Action Not Running: Ensure that your workflow file is correctly set up and pushed to the main branch of your repository.
  • Permissions Issue: Confirm that you have the necessary permissions to run actions in your repository. Check your repository settings and ensure actions are enabled.

πŸ“ž Support

If you need further assistance, feel free to reach out through the repository's Issues page. We are here to help.

πŸ’‘ FAQ

Q1: Do I need any special permissions to use this action?

A: Yes, you need permission to modify or manage GitHub Actions in your repository.

Q2: Will this action delete my important branches?

A: This action only deletes LaunchDarkly Code References branches when corresponding branches are deleted. Ensure that you follow the naming conventions to avoid accidental deletions.

Q3: Can I customize the action further?

A: Yes, you can modify the workflow file to add additional steps or customize its behavior according to your needs.

πŸ“… Changelog

  • v1.0.0: Initial release.

πŸ“¦ Download & Install

Ready to clean up your branches? Head over to the Releases page and get started!

About

πŸ—‘οΈ Automate the deletion of LaunchDarkly Code References when branches are removed from GitHub for streamlined code management.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •