This repository was archived by the owner on Nov 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,27 @@ jobs:
2222 git diff --stat HEAD~1
2323 size=$(cat .git/FETCH_HEAD | wc -l)
2424 else
25- echo "No previous comments "
25+ echo "No previous commits "
2626 size=0
2727 fi
2828 - name : Add label
2929 run : |
3030 if [ $size -gt 100 ]; then
3131 echo "Adding size: L"
32- hub label add ${{ github.head_repo.full_name }} ${{ github.head_ref }} "size: L"
32+ curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
33+ -H "Accept: application/vnd.github.v3+json" \
34+ https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
35+ --data '["size: L"]'
3336 elif [ $size -gt 30 ]; then
3437 echo "Adding size: M"
35- hub label add ${{ github.head_repo.full_name }} ${{ github.head_ref }} "size: M"
38+ curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
39+ -H "Accept: application/vnd.github.v3+json" \
40+ https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
41+ --data '["size: M"]'
3642 else
3743 echo "Adding size: S"
38- hub label add ${{ github.head_repo.full_name }} ${{ github.head_ref }} "size: S"
39- fi
44+ curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
45+ -H "Accept: application/vnd.github.v3+json" \
46+ https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
47+ --data '["size: S"]'
48+ fi
You can’t perform that action at this time.
0 commit comments