forked from primer/view_components
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
485ea78
commit 20b9b93
Showing
1 changed file
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
|
||
COMMIT=${1?"Usage: $0 <Upstream commit> <optional sed command>"} | ||
SED=${2:-sed} | ||
|
||
git config remote.upstream.url || git remote add upstream [email protected]:primer/view_components.git | ||
git fetch upstream | ||
|
||
git checkout main | ||
git branch -D bump/primer-upstream &>/dev/null || true | ||
git branch -D bump/primer-upstream-ref &>/dev/null || true | ||
|
||
git checkout -b bump/primer-upstream-ref | ||
git reset --hard $COMMIT | ||
|
||
git checkout -b bump/primer-upstream | ||
git merge bump/primer-upstream-ref || true | ||
|
||
find .changeset/ -name "*.md" -exec $SED -i "s/\@primer\/view-components/\@openproject\/primer-view-components/g" {} + |