File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Pull request
22on : pull_request
33
44jobs :
5- build :
5+ pull-request :
66 runs-on : macos-15
77
88 steps :
1212 env :
1313 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1414 run : |
15- echo "GITHUB_TOKEN=${{ env.GITHUB_TOKEN }}" >> $GITHUB_ENV
1615 curl https://mise.run | sh
1716 mise install
1817
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Draft release
14+ env :
15+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
16+ run : |
17+ TAG_NAME=${GITHUB_REF#refs/tags/}
18+ gh release create "$TAG_NAME" \
19+ --repo="$GITHUB_REPOSITORY" \
20+ --generate-notes \
21+ --draft
Original file line number Diff line number Diff line change 11disabled_rules :
2+ - function_body_length
23 - no_magic_numbers
Original file line number Diff line number Diff line change @@ -192,4 +192,4 @@ custom_rules:
192192 empty_line_after_type_declaration :
193193 name : " Empty line after type declaration"
194194 message : " Type declaration should start with an empty line."
195- regex : " ( |^)(actor|class|struct|enum|protocol|extension) (?!var)[^\\ {]*? \\ {(?!\\ }) *\\ n? *\\ S"
195+ regex : " ( |^)(actor|class|struct|enum|protocol|extension) (?!var)[^\\ {]*? \\ {(?!\\ n* \\ }) *\\ n? *\\ S"
You can’t perform that action at this time.
0 commit comments