neetob 0.5.44 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d441c40753315d88d983cc7078089e924f9e384679fd281b3bb5de86c9cdb9b
4
- data.tar.gz: 4f69e4dd9acc120e69ae9e776e762c0fb7c28205a739d046c57b0493ee69d002
3
+ metadata.gz: ff8894e25dbd0153c0e370bcfb4d2a968fec87596a93c6e6b59da56c9a0ca6b4
4
+ data.tar.gz: a7d8355a738cda97fa148f4a24e27498d4cf58cc649c90c4550aad54a4080c39
5
5
  SHA512:
6
- metadata.gz: 061a1cfd811d5df1ba1137e6d3b0df035541c9401a5addd9a3d0cc567a00a79926ca7192d66e0c4bad4f8cc7d9490d14182725ceb423badf3b7bfda5a5fcb194
7
- data.tar.gz: 42cf1649d1e04200fa2959b64da33052b9d406a74b0f7e9d528ddb18de57bf414685289a4e42f195884ea4e93e2151b35c0d5921dd3199bd6de2966acf03770c
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetob (0.5.44)
4
+ neetob (0.5.45)
5
5
  actionview
6
6
  activesupport
7
7
  brakeman (~> 5.0)
@@ -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
@@ -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
@@ -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+-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%3Aproduction+-repo%3Abigbinary%2Fintellectio)
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
- - [AutomationBinary](https://github.com/orgs/bigbinary/projects/96/views/1):
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neetob
4
- VERSION = "0.5.44"
4
+ VERSION = "0.5.45"
5
5
  end
@@ -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
  #
@@ -31,8 +31,14 @@ echo "Label: $label";
31
31
 
32
32
  gh project item-list $board_number --format json --owner bigbinary --limit 1000 > issues.json
33
33
 
34
- jq -r ".items[] | select(.status == \"$milestone_status_title\") | .content.url" issues.json > issue_urls.txt
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
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.44
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-02-26 00:00:00.000000000 Z
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