Skip to content

Instantly share code, notes, and snippets.

@akihironitta
Last active August 10, 2022 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akihironitta/4353b8998295118d4e457b68e42045fc to your computer and use it in GitHub Desktop.
Save akihironitta/4353b8998295118d4e457b68e42045fc to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
git checkout -b create-pr-from-script master
find .github/workflows -type f | xargs sed -i -- 's/string_before/string_after/g'
git commit -am "COMMIT MESSAGE"
gh pr create --title "PR TITLE" --assignee "@me" --body "PR BODY MESSAGE"
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment