Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,6 @@ jobs:
check_pr_closure:
runs-on: ubuntu-latest

steps:
- name: Check if PR title contains 'release'
id: check_title
run: |
title=$(jq -r .pull_request.title $GITHUB_EVENT_PATH)
if [[ "$title" == *"release"* ]]; then
echo "PR title contains 'release'."

approved_users=("username2") # List of approved GitHub usernames
user=$(jq -r .pull_request.user.login $GITHUB_EVENT_PATH)
if [[ ! " ${approved_users[@]} " =~ " $user " ]]; then
echo "Not authorized to close PR with 'release' title."
exit 1
fi
fi

release-please:
runs-on: ubuntu-latest
steps:
Expand Down
8 changes: 8 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
NEW_BRANCH=feat/new-feat7
COMMIT_MSG=$(echo $NEW_BRANCH | cut -d '/' -f2)
git swich main
git pull
git checkout -b $NEW_BRANCH
git echo $NEW_BRANCH >> awesome.txt
git add . && git commit -m "feat: $COMMIT_MSG" --signoff
git push --set-upstream origin $NEW_BRANCH