style 💎: Remove unnecessary blank line and ensure consistent formatting #25
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This commit removes any unnecessary blank lines throughout the codebase and ensures that all files follow a consistent formatting style, improving readability and maintainability.
Review Summary
on:and its child elements. To avoid confusion, I recommend removing it.markdown-lint.ymlworkflow file: The workflow is now triggered on both push events and opened issues. This could potentially increase the number of runs, which might impact performance if the workflows are resource-intensive.@@ -4,2 +4,3 @@on: [issues, push]on:push:[Lines 5-6] [Score: 3] Unnecessary empty line between trigger events. Consider removing it for consistency and readability.
@@ -2,7 +2,10 @@# .gitea/workflows/markdown-lint.ymlname: Markdown Lint[Lines 2-3] [Score: 2] Workflow is now triggered for both push events and opened issues, which could impact performance if the workflows are resource-intensive. Consider limiting the workflow runs to reduce potential overhead.
@@ -107,3 +114,4 @@# Add label if missingLABELS=$(curl -s -H "Authorization: token $TOKEN" "$API/issues/$PR/labels" | jq -r '.[] | .name')if ! echo "$LABELS" | grep -q "^ci-failed$"; then[Lines 107-117] [Score: 2] The code has been modified to remove the 'ci-pass' label if it exists and add it back if it doesn't. This might lead to inconsistency in label usage, as removing the label could happen before it is added back in certain scenarios.
@@ -159,1 +173,4 @@# Add ci-pass if not presentif ! echo "$LABELS" | grep -q "^ci-pass$"; thenecho "Adding ci-pass label"[Lines 155-176] [Score: 2] The code has been modified to remove the 'ci-failed' label if it exists and add the 'ci-pass' label if it doesn't. While this is a good practice to ensure that at least one of these labels is always present, it might lead to inconsistency in label usage, as removing the 'ci-failed' label could happen before it is added back in certain scenarios.
@@ -160,3 +183,4 @@# Reopen PR if closedPR_STATE=$(curl -s -H "Authorization: token $TOKEN" "$API/pulls/$PR" | jq -r '.state')if [ "$PR_STATE" = "closed" ]; then[Lines 184-186] [Score: 2] The code reopens the pull request if it is closed. This might lead to unnecessary confusion and potential merge conflicts if the pull request was closed appropriately. It's generally better to have explicit human intervention before reopening closed pull requests.