neetob 0.5.43 → 0.5.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.neetoci/auto_add_labels_to_milestone_issues_first.yml +19 -0
- data/.neetoci/auto_add_labels_to_milestone_issues_second.yml +19 -0
- data/.neetoci/auto_add_labels_to_milestone_issues_third.yml +19 -0
- data/Gemfile.lock +1 -1
- data/auto_add_labels_to_milestone_issues/auto_add_labels_to_milestone_issues_in_all_boards-1.sh +8 -0
- data/auto_add_labels_to_milestone_issues/auto_add_labels_to_milestone_issues_in_all_boards-2.sh +8 -0
- data/auto_add_labels_to_milestone_issues/auto_add_labels_to_milestone_issues_in_all_boards-3.sh +8 -0
- data/bookmarks.md +9 -5
- data/lib/neetob/version.rb +1 -1
- data/scripts/add_label_to_milestone_issues.sh +41 -4
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff8894e25dbd0153c0e370bcfb4d2a968fec87596a93c6e6b59da56c9a0ca6b4
|
4
|
+
data.tar.gz: a7d8355a738cda97fa148f4a24e27498d4cf58cc649c90c4550aad54a4080c39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d73cdb36b748fe3607ffecc204f6bae86818dab3f5759bca93cb0ff91f450face0f3f7c37f14e50c3b4a32e9734e70f6e99f5a930cc4643c6bf541b4dfcc883
|
7
|
+
data.tar.gz: e02b1c9ab31e7922729e9a1400b438a913594ae98b27c705935407b3833d19b3808d8ee187386ad9319b43bdc33800aaa4a157528ef8466332c10f2c6f349892
|
@@ -0,0 +1,19 @@
|
|
1
|
+
version: v1.0
|
2
|
+
|
3
|
+
fail_fast: true
|
4
|
+
plan: standard-2
|
5
|
+
|
6
|
+
global_job_config:
|
7
|
+
setup:
|
8
|
+
- checkout
|
9
|
+
- (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) && sudo mkdir -p -m 755 /etc/apt/keyrings && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null && sudo apt update && sudo apt install gh -y
|
10
|
+
- cd ./auto_add_labels_to_milestone_issues
|
11
|
+
jobs:
|
12
|
+
- name: AutoAddLabelsToFirstSetOfBoard
|
13
|
+
commands:
|
14
|
+
- ./auto_add_labels_to_milestone_issues_in_all_boards-1.sh
|
15
|
+
|
16
|
+
triggers:
|
17
|
+
- event: cron
|
18
|
+
cron_line: "0 0/6 * * *"
|
19
|
+
branch: main
|
@@ -0,0 +1,19 @@
|
|
1
|
+
version: v1.0
|
2
|
+
|
3
|
+
fail_fast: true
|
4
|
+
plan: standard-2
|
5
|
+
|
6
|
+
global_job_config:
|
7
|
+
setup:
|
8
|
+
- checkout
|
9
|
+
- (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) && sudo mkdir -p -m 755 /etc/apt/keyrings && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null && sudo apt update && sudo apt install gh -y
|
10
|
+
- cd ./auto_add_labels_to_milestone_issues
|
11
|
+
jobs:
|
12
|
+
- name: AutoAddLabelsToSecondSetOfBoard
|
13
|
+
commands:
|
14
|
+
- ./auto_add_labels_to_milestone_issues_in_all_boards-2.sh
|
15
|
+
|
16
|
+
triggers:
|
17
|
+
- event: cron
|
18
|
+
cron_line: "0 2/6 * * *"
|
19
|
+
branch: main
|
@@ -0,0 +1,19 @@
|
|
1
|
+
version: v1.0
|
2
|
+
|
3
|
+
fail_fast: true
|
4
|
+
plan: standard-2
|
5
|
+
|
6
|
+
global_job_config:
|
7
|
+
setup:
|
8
|
+
- checkout
|
9
|
+
- (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) && sudo mkdir -p -m 755 /etc/apt/keyrings && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null && sudo apt update && sudo apt install gh -y
|
10
|
+
- cd ./auto_add_labels_to_milestone_issues
|
11
|
+
jobs:
|
12
|
+
- name: AutoAddLabelsToThirdSetOfBoard
|
13
|
+
commands:
|
14
|
+
- ./auto_add_labels_to_milestone_issues_in_all_boards-3.sh
|
15
|
+
|
16
|
+
triggers:
|
17
|
+
- event: cron
|
18
|
+
cron_line: "0 4/6 * * *"
|
19
|
+
branch: main
|
data/Gemfile.lock
CHANGED
data/auto_add_labels_to_milestone_issues/auto_add_labels_to_milestone_issues_in_all_boards-1.sh
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
declare -a board_numbers=(66 56 57)
|
2
|
+
|
3
|
+
for board_number in "${board_numbers[@]}"
|
4
|
+
do
|
5
|
+
echo "Starting for board number: $board_number"
|
6
|
+
./scripts/add_label_to_milestone_issues.sh -b $board_number -t $MILESTONE -l $LABEL
|
7
|
+
echo "Completed for board number: $board_number"
|
8
|
+
done
|
data/auto_add_labels_to_milestone_issues/auto_add_labels_to_milestone_issues_in_all_boards-2.sh
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
declare -a board_numbers=(67 64 52)
|
2
|
+
|
3
|
+
for board_number in "${board_numbers[@]}"
|
4
|
+
do
|
5
|
+
echo "Starting for board number: $board_number"
|
6
|
+
./scripts/add_label_to_milestone_issues.sh -b $board_number -t $MILESTONE -l $LABEL
|
7
|
+
echo "Completed for board number: $board_number"
|
8
|
+
done
|
data/auto_add_labels_to_milestone_issues/auto_add_labels_to_milestone_issues_in_all_boards-3.sh
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
declare -a board_numbers=(79 100 96 97)
|
2
|
+
|
3
|
+
for board_number in "${board_numbers[@]}"
|
4
|
+
do
|
5
|
+
echo "Starting for board number: $board_number"
|
6
|
+
./scripts/add_label_to_milestone_issues.sh -b $board_number -t $MILESTONE -l $LABEL
|
7
|
+
echo "Completed for board number: $board_number"
|
8
|
+
done
|
data/bookmarks.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
|
2
|
-
[Honeybadger production issues](https://github.com/issues?q=is%3Aopen+is%3Aissue+org%3Abigbinary+archived%3Afalse+-repo%3Abigbinary%2Fnetcamps+-repo%3Abigbinary%2Fneeto-chatify-web
|
2
|
+
[Honeybadger production issues](https://github.com/issues?q=is%3Aopen+is%3Aissue+org%3Abigbinary+archived%3Afalse+-repo%3Abigbinary%2Fnetcamps+-repo%3Abigbinary%2Fneeto-chatify-web+++sort%3Acreated-asc+author%3Aapp%2Fhoneybadger+label%3Aproduction+)
|
3
3
|
|
4
|
-
[Bugs](https://github.com/search?q=org%3Abigbinary+state%3Aopen+is%3Aissue+sort%3Acreated-asc+label%3Abug&type=issues)
|
4
|
+
[Bugs](https://github.com/search?q=org%3Abigbinary+state%3Aopen+is%3Aissue+sort%3Acreated-asc+label%3Abug+-repo%3Abigbinary%2Fnetcamps&type=issues)
|
5
|
+
|
6
|
+
[Features](https://github.com/search?q=org%3Abigbinary+state%3Aopen+is%3Aissue+sort%3Acreated-asc+label%3Afeature&type=issues)
|
5
7
|
|
6
8
|
[Honeybadger staging issues](https://github.com/issues?q=is%3Aopen+is%3Aissue+org%3Abigbinary+archived%3Afalse+-repo%3Abigbinary%2Fnetcamps+-repo%3Abigbinary%2Fneeto-chatify-web+-repo%3Abigbinary%2Fneeto-crm-web+-repo%3Abigbinary%2Fneeto-testify-web+-repo%3Abigbinary%2Fjacky-winter-web+-repo%3Abigbinary%2Faceinvoice-web+-repo%3Abigbinary%2Ftrtle-rn+-repo%3Abigbinary%2Ftrtle-web+-repo%3Abigbinary%2Fadvanced-react-js+sort%3Acreated-asc+author%3Aapp%2Fhoneybadger+label%3Astaging+-repo%3Abigbinary%2Fintellectio)
|
7
9
|
|
@@ -89,7 +91,7 @@ example: [All nano issues created before the 20th Mar 2024](https://github.com/i
|
|
89
91
|
- [Chirag's Board](https://github.com/orgs/bigbinary/projects/52/views/3):
|
90
92
|
[RN work](https://github.com/orgs/bigbinary/projects/52/views/6),
|
91
93
|
[neeto-form-web](https://github.com/orgs/bigbinary/projects/52/views/3?filterQuery=repo%3A%22bigbinary%2Fneeto-form-web%22),
|
92
|
-
[neetoRecord](https://github.com/orgs/bigbinary/projects/
|
94
|
+
[neetoRecord](https://github.com/orgs/bigbinary/projects/52/views/18),
|
93
95
|
[neeto-crm-web](https://github.com/orgs/bigbinary/projects/52/views/3?filterQuery=repo%3A%22bigbinary%2Fneeto-crm-web%22),
|
94
96
|
[neeto-engineering-web](https://github.com/orgs/bigbinary/projects/52/views/3?filterQuery=repo%3A%22bigbinary%2Fneeto-engineering-web%22),
|
95
97
|
[neeto-testify-web](https://github.com/orgs/bigbinary/projects/52/views/3?filterQuery=repo%3A%22bigbinary%2Fneeto-testify-web%22),
|
@@ -121,7 +123,7 @@ example: [All nano issues created before the 20th Mar 2024](https://github.com/i
|
|
121
123
|
|
122
124
|
- [Praveen's Board](https://github.com/orgs/bigbinary/projects/100/views/1)
|
123
125
|
|
124
|
-
- [
|
126
|
+
- [Neeto Automation Board](https://github.com/orgs/bigbinary/projects/96/views/1):
|
125
127
|
[neeto-playdash-web](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-playdash-web%22),
|
126
128
|
[neeto-cal-playwright](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-cal-playwright%22),
|
127
129
|
[neeto-form-playwright](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-form-playwright%22),
|
@@ -130,7 +132,9 @@ example: [All nano issues created before the 20th Mar 2024](https://github.com/i
|
|
130
132
|
[neeto-cal-api](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-cal-api%22),
|
131
133
|
[neeto-kb-api](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-kb-api%22),
|
132
134
|
[neeto-desk-api](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-desk-api%22),
|
133
|
-
[neeto-form-api](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-form-api%22)
|
135
|
+
[neeto-form-api](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-form-api%22)
|
136
|
+
[neeto-playwright-reporter](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-playwright-reporter%22),
|
137
|
+
[neeto-playwright-commons](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-playwright-commons%22)
|
134
138
|
|
135
139
|
- [Kirti's Board](https://github.com/orgs/bigbinary/projects/97/views/2)
|
136
140
|
|
data/lib/neetob/version.rb
CHANGED
@@ -1,7 +1,44 @@
|
|
1
|
-
|
1
|
+
# **Description**
|
2
|
+
# At the beginning of a milestone, the TLs would have created all the issues for the milestone and would have added them to their
|
3
|
+
# project boards with status for the milestone (eg: The issues for the M31 milestone would be visible under the status "M31(Feb24-Mar09)").
|
4
|
+
# Apart from this work we additionally need to add a tag to the issues in the milestone with the milestone number so that the milestone progress
|
5
|
+
# can be tracked using NeetoGit(Link: https://neeto-engineering.neetogit.com/admin/milestones). This script can help in simplifying this process.
|
6
|
+
# It will iterate through all the issues in a milestone under a particular status and add the specified label to those issues.
|
7
|
+
#
|
8
|
+
# **Sample usage**
|
9
|
+
# ./add_label_to_milestone_issues.sh -b 96 -t "M31(Feb24-Mar09)" -l m31
|
10
|
+
#
|
11
|
+
# The above command will go through all the issues in the board https://github.com/orgs/bigbinary/projects/96 under the status "M31(Feb24-Mar09)"
|
12
|
+
# and add the label "m31" to it.
|
13
|
+
# https://github.com/user-attachments/assets/348aa092-4fcb-40de-a9e6-2cd6df418aff
|
14
|
+
#
|
15
|
+
# **Flags**
|
16
|
+
# -b: Your board number (Example for the board number of Neeto Automation board is 96)
|
17
|
+
# -t: The milestone status title in the board (Eg: "M31(Feb24-Mar09)")
|
18
|
+
# -l: The label to be added to the issues to the milestone (Eg: m31)
|
2
19
|
|
3
|
-
|
20
|
+
while getopts b:t:l: flag
|
21
|
+
do
|
22
|
+
case "${flag}" in
|
23
|
+
b) board_number=${OPTARG};;
|
24
|
+
t) milestone_status_title=${OPTARG};;
|
25
|
+
l) label=${OPTARG};;
|
26
|
+
esac
|
27
|
+
done
|
28
|
+
echo "Board number: $board_number";
|
29
|
+
echo "Milestone status title: $milestone_status_title";
|
30
|
+
echo "Label: $label";
|
4
31
|
|
5
|
-
|
6
|
-
|
32
|
+
gh project item-list $board_number --format json --owner bigbinary --limit 1000 > issues.json
|
33
|
+
|
34
|
+
jq -r '.items[] | select(
|
35
|
+
.content.url != null and
|
36
|
+
.status == "'"$milestone_status_title"'" and
|
37
|
+
((.labels | not) or
|
38
|
+
(.labels | length == 0) or
|
39
|
+
(.labels | all(. != "m31")))
|
40
|
+
) | .content.url' issues.json > issue_urls.txt
|
41
|
+
|
42
|
+
while read issue; do
|
43
|
+
gh issue edit "$issue" --add-label "$label";
|
7
44
|
done < issue_urls.txt
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neetob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Udai Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -175,6 +175,9 @@ extra_rdoc_files: []
|
|
175
175
|
files:
|
176
176
|
- ".editorconfig"
|
177
177
|
- ".env"
|
178
|
+
- ".neetoci/auto_add_labels_to_milestone_issues_first.yml"
|
179
|
+
- ".neetoci/auto_add_labels_to_milestone_issues_second.yml"
|
180
|
+
- ".neetoci/auto_add_labels_to_milestone_issues_third.yml"
|
178
181
|
- ".neetoci/default.yml"
|
179
182
|
- ".rubocop.yml"
|
180
183
|
- ".ruby-version"
|
@@ -185,6 +188,9 @@ files:
|
|
185
188
|
- Gemfile.lock
|
186
189
|
- README.md
|
187
190
|
- Rakefile
|
191
|
+
- auto_add_labels_to_milestone_issues/auto_add_labels_to_milestone_issues_in_all_boards-1.sh
|
192
|
+
- auto_add_labels_to_milestone_issues/auto_add_labels_to_milestone_issues_in_all_boards-2.sh
|
193
|
+
- auto_add_labels_to_milestone_issues/auto_add_labels_to_milestone_issues_in_all_boards-3.sh
|
188
194
|
- bookmarks.md
|
189
195
|
- data/branch-protection-rules.json
|
190
196
|
- data/config-vars-audit.json
|