Skip to content

v1.3

Pre-release
Pre-release

Choose a tag to compare

@changcheng967 changcheng967 released this 12 Oct 21:07
· 32 commits to main since this release
40fd3cf

Release Note: Auto Pull Bot v1.3

Overview

Version 1.3 of the Auto Pull Bot introduces several enhancements aimed at improving the functionality and robustness of the workflow. This version focuses on better handling of pull requests, branch validation, and improved logging for easier debugging.

Key Features and Updates

  1. Branch Handling Enhancements:

    • Branch Name Extraction: The branch name is now extracted and logged more efficiently, ensuring compatibility with various shell environments.
    • Current Branch Check: The workflow now explicitly checks if the current branch is main and avoids creating pull requests if true.
  2. Pull Request Management:

    • Pull Request Existence Check: The bot checks for existing pull requests for the current branch before attempting to create a new one, preventing duplicate pull requests.
    • Pull Request Creation: If no existing pull request is found, the bot will create a new pull request with a clear title and body indicating the source branch.
    • Automatic Labeling: Upon creating a pull request, the bot automatically adds the labels github_actions and Auto Merge to facilitate automated workflows and categorization.
  3. Logging and Feedback Improvements:

    • Enhanced logging for better traceability of actions taken by the bot, including the state of branches and the results of operations.
    • Clear console messages guide users through the process, indicating what the bot is doing at each step.

Workflow Triggers

  • The workflow is triggered on push events to branches other than main, and it can also be manually triggered via workflow_dispatch for testing purposes.

Environment Variables

  • The workflow utilizes GITHUB_TOKEN to authenticate and interact with the GitHub API, ensuring secure operations without exposing sensitive information.

Conclusion

With these improvements, Auto Pull Bot v1.3 aims to streamline the process of managing pull requests in your repository, reduce manual intervention, and enhance overall workflow efficiency.