forked from AndreasAugustin/actions-template-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use GITHUB_TOKEN for PR operations
This commit introduces the following changes: - Add a new function `switch_to_github_token_auth` to switch GitHub authentication - Modify `create_pr` and `create_or_edit_pr` functions to use GITHUB_TOKEN - Ensure PR operations use GITHUB_TOKEN while other Git operations use SYNC_TOKEN These changes allow PR creation and editing to be performed using GITHUB_TOKEN, ensuring that the PR creator appears as github-actions[bot] in the GitHub interface. Other Git operations continue to use SYNC_TOKEN for authentication. This enhancement improves the visibility and consistency of automated PR operations in the GitHub UI while maintaining flexibility for other Git-related tasks.
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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