neetob 0.5.44 → 0.5.46
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 +6 -4
- data/lib/neetob/version.rb +1 -1
- data/scripts/add_label_to_milestone_issues.sh +11 -5
- 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: b96b24c4c6101eec81f2390f266ee269ea8fa31581cd830a6ef6087c7be852f5
|
4
|
+
data.tar.gz: 790553aea9d8e7dd0f7c37815fdd847e5ddd35581639788be94e7a6f593bc007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d41afd5369205730bbfb3a738ac7cc95a5e875488c7ee3cd1e955079150d9e121635bdff806c2e76e5861ceee317eed850a22b73e4b1272d81a4909d3d62c110
|
7
|
+
data.tar.gz: 8ff4af5e2d187e47b3f2637f053fda660965542b409a022048404b3701e5cab2494867c17688327f9d2d31a3f1be69aaee5e1287c7ae6cff90eaf2232445747d
|
@@ -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,7 @@
|
|
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
5
|
|
6
6
|
[Features](https://github.com/search?q=org%3Abigbinary+state%3Aopen+is%3Aissue+sort%3Acreated-asc+label%3Afeature&type=issues)
|
7
7
|
|
@@ -123,7 +123,7 @@ example: [All nano issues created before the 20th Mar 2024](https://github.com/i
|
|
123
123
|
|
124
124
|
- [Praveen's Board](https://github.com/orgs/bigbinary/projects/100/views/1)
|
125
125
|
|
126
|
-
- [
|
126
|
+
- [Neeto Automation Board](https://github.com/orgs/bigbinary/projects/96/views/1):
|
127
127
|
[neeto-playdash-web](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-playdash-web%22),
|
128
128
|
[neeto-cal-playwright](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-cal-playwright%22),
|
129
129
|
[neeto-form-playwright](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-form-playwright%22),
|
@@ -132,7 +132,9 @@ example: [All nano issues created before the 20th Mar 2024](https://github.com/i
|
|
132
132
|
[neeto-cal-api](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-cal-api%22),
|
133
133
|
[neeto-kb-api](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-kb-api%22),
|
134
134
|
[neeto-desk-api](https://github.com/orgs/bigbinary/projects/96/views/1?filterQuery=repo%3A%22bigbinary%2Fneeto-desk-api%22),
|
135
|
-
[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)
|
136
138
|
|
137
139
|
- [Kirti's Board](https://github.com/orgs/bigbinary/projects/97/views/2)
|
138
140
|
|
data/lib/neetob/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
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
|
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
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
|
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
5
|
# can be tracked using NeetoGit(Link: https://neeto-engineering.neetogit.com/admin/milestones). This script can help in simplifying this process.
|
6
6
|
# It will iterate through all the issues in a milestone under a particular status and add the specified label to those issues.
|
7
7
|
#
|
@@ -29,10 +29,16 @@ echo "Board number: $board_number";
|
|
29
29
|
echo "Milestone status title: $milestone_status_title";
|
30
30
|
echo "Label: $label";
|
31
31
|
|
32
|
-
gh project item-list $board_number --format json --owner bigbinary --limit
|
32
|
+
gh project item-list $board_number --format json --owner bigbinary --limit 5000 > issues.json
|
33
33
|
|
34
|
-
jq -r
|
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(. != "'"$label"'")))
|
40
|
+
) | .content.url' issues.json > issue_urls.txt
|
35
41
|
|
36
|
-
while read issue; do
|
42
|
+
while read issue; do
|
37
43
|
gh issue edit "$issue" --add-label "$label";
|
38
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.46
|
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-07 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
|