Repository navigation
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
-
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
mainand avoids creating pull requests if true.
-
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_actionsandAuto Mergeto facilitate automated workflows and categorization.
-
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 viaworkflow_dispatchfor testing purposes.
Environment Variables
- The workflow utilizes
GITHUB_TOKENto 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.