Skip to content

Commit 2991637

Browse files
committed
fixup! tools: add a script to help with nomination
1 parent 968f67b commit 2991637

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/actions/nominate.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ prepare_collaborator_nomination() {
3232
* Other participation in the wider Node.js community
3333
-->
3434
EOF
35-
$EDITOR "$BODY_FILE"
35+
${EDITOR:-nano} "$BODY_FILE"
3636
BODY="$(cat "$BODY_FILE")"
3737
rm "$BODY_FILE"
3838

@@ -42,6 +42,7 @@ EOF
4242
}
4343

4444
echo "Getting repo ID and discussion category" >&2
45+
# shellcheck disable=SC2016
4546
REPO_ID_AND_DISCUSSION_CATEGORY_ID="$(gh api graphql -f query='
4647
query($owner:String!,$repo:String!){
4748
repository(owner:$owner,name:$repo){
@@ -65,6 +66,7 @@ EOF
6566
return 1
6667
}
6768

69+
# shellcheck disable=SC2016
6870
gh api graphql -f query='
6971
mutation($repo: ID!,$cat: ID!,$title: String!,$body: String!){
7072
createDiscussion(input: {

0 commit comments

Comments
 (0)