Last active
September 22, 2023 01:04
-
-
Save itsazzad/b1088222ecda476232ab9a6b91132f01 to your computer and use it in GitHub Desktop.
atlassian-forge-create-templates https://github.com/itsazzad/atlassian-forge-create-templates
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
#!/usr/bin/zsh | |
github="itsazzad" | |
target="atlassian-forge-create-templates" | |
templates=("blank" "compass-admin-page-custom-ui" "compass-admin-page-ui-kit" "compass-component-page-custom-ui" "compass-component-page-ui-kit" "compass-data-provider" "compass-global-page-custom-ui" "compass-global-page-ui-kit" "compass-team-page-custom-ui" "compass-team-page-ui-kit" "confluence-content-action-custom-ui" "confluence-content-action-ui-kit" "confluence-content-byline-custom-ui" "confluence-content-byline-ui-kit" "confluence-context-menu-custom-ui" "confluence-context-menu-ui-kit" "confluence-global-page-custom-ui" "confluence-global-page-ui-kit" "confluence-global-settings-custom-ui" "confluence-global-settings-ui-kit" "confluence-homepage-feed-custom-ui" "confluence-homepage-feed-ui-kit" "confluence-macro-custom-ui" "confluence-macro-typescript-ui-kit" "confluence-macro-ui-kit" "confluence-space-page-custom-ui" "confluence-space-page-ui-kit" "confluence-space-settings-custom-ui" "confluence-space-settings-ui-kit" "jira-admin-page-custom-ui" "jira-admin-page-ui-kit" "jira-custom-field-custom-ui" "jira-custom-field-type-custom-ui" "jira-custom-field-type-ui-kit" "jira-custom-field-ui-kit" "jira-dashboard-background-script-custom-ui" "jira-dashboard-gadget-custom-ui" "jira-dashboard-gadget-ui-kit" "jira-entity-property" "jira-global-page-custom-ui" "jira-global-page-ui-kit" "jira-global-permission" "jira-issue-action-custom-ui" "jira-issue-action-ui-kit" "jira-issue-activity-custom-ui" "jira-issue-activity-ui-kit" "jira-issue-glance-custom-ui" "jira-issue-glance-ui-kit" "jira-issue-panel-custom-ui" "jira-issue-panel-ui-kit" "jira-issue-view-background-script-custom-ui" "jira-project-page-custom-ui" "jira-project-page-ui-kit" "jira-project-permission" "jira-project-settings-page-custom-ui" "jira-project-settings-page-ui-kit" "jira-service-management-organization-panel-custom-ui" "jira-service-management-organization-panel-ui-kit" "jira-service-management-portal-footer-custom-ui" "jira-service-management-portal-footer-ui-kit" "jira-service-management-portal-header-custom-ui" "jira-service-management-portal-header-ui-kit" "jira-service-management-portal-profile-panel-custom-ui" "jira-service-management-portal-profile-panel-ui-kit" "jira-service-management-portal-request-create-property-panel-custom-ui" "jira-service-management-portal-request-detail-custom-ui" "jira-service-management-portal-request-detail-panel-custom-ui" "jira-service-management-portal-request-detail-panel-ui-kit" "jira-service-management-portal-request-detail-ui-kit" "jira-service-management-portal-request-view-action-custom-ui" "jira-service-management-portal-request-view-action-ui-kit" "jira-service-management-portal-subheader-custom-ui" "jira-service-management-portal-subheader-ui-kit" "jira-service-management-portal-user-menu-action-custom-ui" "jira-service-management-portal-user-menu-action-ui-kit" "jira-service-management-queue-page-custom-ui" "jira-service-management-queue-page-ui-kit" "jira-ui-modifications-custom-ui" "jira-workflow-condition" "jira-workflow-condition-custom-ui" "jira-workflow-validator" "jira-workflow-validator-custom-ui" "product-trigger" "scheduled-trigger" "webtrigger") | |
mkdir $target | |
cd $target | |
git init | |
git remote add origin [email protected]:$github/$target.git | |
cd .. | |
for template in ${templates[@]}; do | |
echo $template | |
forge create -t $template -d $template ${template:0:49} | |
mv "$target/.git" $template | |
rm -rf $target | |
cd $template | |
git branch -M $template | |
git add . | |
git commit -m $template | |
git push -u origin $template | |
cd .. | |
mv $template $target | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment