Skip to content

Commit 2f0ad7c

Browse files
chore: format conftest
Signed-off-by: SubhraSameerDash <[email protected]>
1 parent 058017f commit 2f0ad7c

File tree

80 files changed

+2854
-1065
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2854
-1065
lines changed

.github/ISSUE_TEMPLATE/01_good_first_issue_candidate.yml

Lines changed: 231 additions & 99 deletions
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/02_good_first_issue.yml

Lines changed: 427 additions & 0 deletions
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/05_beginner_issue.yml renamed to .github/ISSUE_TEMPLATE/03_beginner_issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ body:
176176
description: Provide a contribution workflow suitable for new contributors
177177
value: |
178178
- [ ] **Assignment:** You must be assigned to the issue, comment: `/assign` in the issue to get assigned [see guide](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/docs/sdk_developers/training/workflow/04_assigning_issues.md)
179-
- [ ] **Fork, Branch and Work on the issue:** Create a copy of the repository, create a branch for the issue and solve the problem. For instructions, please read our [Contributing guide](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/CONTRIBUTING.md) file. Further help can be found at [Set-up Training](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/docs/sdk_developers/training/setup) and [Workflow Training](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/docs/sdk_developers/training/workflow).
179+
- [ ] **Fork, Branch and Work on the issue:** Create a copy of the repository, create a branch for the issue and solve the problem. For instructions, please read our [Contributing guide](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/CONTRIBUTING.md) file. Further help can be found at [Set-up Training](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/docs/sdk_developers/training/setup) (including the [Windows Setup Guide](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/docs/sdk_developers/training/setup/setup_windows.md) for Windows users) and [Workflow Training](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/docs/sdk_developers/training/workflow).
180180
- [ ] **DCO and GPG key sign each commit :** each commit must be -s and -S signed. An explanation on how to do this is at [Signing Guide](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/docs/sdk_developers/signing.md)
181181
- [ ] **Add a Changelog Entry :** your pull request will require a changelog. Read [Changelog Entry Guide](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/docs/sdk_developers/changelog_entry.md) to learn how.
182182
- [ ] **Push and Create a Pull Request :** Once your issue is resolved, and your commits are signed, and you have a changelog entry, push your changes and create a pull request. Detailed instructions can be found at [Submit PR Training](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/docs/sdk_developers/training/workflow/11_submit_pull_request.md), part of [Workflow Training](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/docs/sdk_developers/training/workflow).

.github/ISSUE_TEMPLATE/04_good_first_issue.yml

Lines changed: 0 additions & 303 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

.github/ISSUE_TEMPLATE/03_feature_request.yml renamed to .github/ISSUE_TEMPLATE/feature.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Feature
22
description: Suggest an idea for this project
3-
labels: [ enhancement ]
3+
labels: [enhancement]
44
type: Feature
55
body:
66
- type: markdown
@@ -35,4 +35,4 @@ body:
3535
id: alternatives
3636
attributes:
3737
label: Alternatives
38-
description: What alternative solutions have you considered?
38+
description: What alternative solutions have you considered?

.github/scripts/bot-advanced-check.sh

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,26 +89,20 @@ get_intermediate_count() {
8989
already_commented() {
9090
local user=$1
9191
local marker="$COMMENT_MARKER_PREFIX @$user"
92-
9392
gh issue view "$ISSUE_NUMBER" --repo "$REPO" \
9493
--json comments \
95-
--jq --arg marker "$marker" '
96-
.comments[].body
97-
| select(contains($marker))
98-
' | grep -q .
94+
--jq '.comments[].body' | grep -Fq "$marker"
9995
}
10096

10197
#######################################
10298
# Helper: is user currently assigned?
10399
#######################################
100+
104101
is_assigned() {
105102
local user=$1
106-
107103
gh issue view "$ISSUE_NUMBER" --repo "$REPO" \
108104
--json assignees \
109-
--jq --arg user "$user" '
110-
.assignees[].login | select(. == $user)
111-
' | grep -q .
105+
--jq '.assignees[].login' | grep -Fxq "$user"
112106
}
113107

114108
#######################################
@@ -215,8 +209,20 @@ $COMMENT_MARKER_PREFIX @$user"
215209
fi
216210

217211
if is_assigned "$user"; then
218-
log "Unassigning @$user."
219-
gh issue edit "$ISSUE_NUMBER" --repo "$REPO" --remove-assignee "$user"
212+
log "Unassigning @$user ..."
213+
json_body="{\"assignees\": [\"$user\"]}"
214+
response=$(
215+
gh api \
216+
--method DELETE \
217+
"repos/$REPO/issues/$ISSUE_NUMBER/assignees" \
218+
--input <(echo "$json_body") \
219+
|| echo "error"
220+
)
221+
if [[ "$response" != "error" ]]; then
222+
log "Successfully unassigned @$user."
223+
else
224+
log "Failed to unassign @$user."
225+
fi
220226
else
221227
log "User @$user already unassigned. Skipping."
222228
fi
@@ -248,4 +254,4 @@ else
248254
while read -r user; do
249255
[[ -n "$user" ]] && check_user "$user"
250256
done <<< "$ASSIGNEES"
251-
fi
257+
fi

0 commit comments

Comments
 (0)