Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## What & why

<!-- What does this change and why? Link issues with "Closes #123". -->
<!-- What does this change and why? Use "Closes #123" for GitHub Development linking. Auto-close is disabled for the long-running tracking issues. -->

## Source

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pr-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,38 @@ jobs:
break;
}

const trackingIssuesByLabel = new Map([
['data', 1],
['site', 19],
]);
const trackingIssues = [];
for (const [label, issueNumber] of trackingIssuesByLabel) {
if (labels.has(label)) trackingIssues.push(issueNumber);
}
if (trackingIssues.length) {
let body = pr.body || '';
let updatedBody = body;
for (const issueNumber of trackingIssues) {
const closingLine = `Closes #${issueNumber}`;
const closingPattern = new RegExp(`\\b(?:close[sd]?|fix(?:e[sd])?|resolve[sd]?)\\s+#${issueNumber}\\b`, 'i');
const refsPattern = new RegExp(`\\bRefs\\s+#${issueNumber}\\b`, 'i');
if (closingPattern.test(updatedBody)) continue;
if (refsPattern.test(updatedBody)) {
updatedBody = updatedBody.replace(refsPattern, closingLine);
} else {
updatedBody = `${updatedBody.trimEnd()}\n\n${closingLine}`;
}
}
if (updatedBody !== body) {
await github.rest.pulls.update({
owner,
repo,
pull_number: issue_number,
body: updatedBody,
});
}
}

const changedLines = files.reduce((sum, file) => sum + file.additions + file.deletions, 0);
let priority = 'Medium';
if (labels.has('data') && (files.length >= 25 || changedLines >= 1000)) {
Expand Down
46 changes: 46 additions & 0 deletions data/smartphone/asus/2022/rog-phone-6d-ultimate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"slug": "rog-phone-6d-ultimate",
"name": "ROG Phone 6D Ultimate",
"brand": "asus",
"soc": "dimensity-9000-plus",
"release_date": "2022-09-01",
"ram_gb": 16.0,
"storage_options_gb": [
512
],
"display": {
"size_inch": 6.78,
"resolution": "1080x2448",
"refresh_hz": 165,
"type": "AM-OLED",
"ppi": 395
},
"cameras": [
{
"type": "main",
"mp": 50.3
},
{
"type": "selfie",
"mp": 12.0
}
],
"battery_mah": 6000,
"charging_wired_w": 65,
"weight_g": 247.0,
"dimensions": {
"height_mm": 172.83,
"width_mm": 77.25,
"depth_mm": 10.39
},
"os": "Android",
"os_version": "12",
"connectivity": {
"bluetooth": "Bluetooth 5.2",
"usb": "USB C reversible"
},
"verified": false,
"source_urls": [
"https://www.kaggle.com/datasets/sady36/mobile-phones-specs"
]
}
46 changes: 46 additions & 0 deletions data/smartphone/asus/2022/rog-phone-6d.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"slug": "rog-phone-6d",
"name": "ROG Phone 6D",
"brand": "asus",
"soc": "dimensity-9000-plus",
"release_date": "2022-09-01",
"ram_gb": 16.0,
"storage_options_gb": [
256
],
"display": {
"size_inch": 6.78,
"resolution": "1080x2448",
"refresh_hz": 165,
"type": "AM-OLED",
"ppi": 395
},
"cameras": [
{
"type": "main",
"mp": 50.3
},
{
"type": "selfie",
"mp": 12.0
}
],
"battery_mah": 6000,
"charging_wired_w": 65,
"weight_g": 239.0,
"dimensions": {
"height_mm": 172.83,
"width_mm": 77.25,
"depth_mm": 10.39
},
"os": "Android",
"os_version": "12",
"connectivity": {
"bluetooth": "Bluetooth 5.2",
"usb": "USB C reversible"
},
"verified": false,
"source_urls": [
"https://www.kaggle.com/datasets/sady36/mobile-phones-specs"
]
}
45 changes: 45 additions & 0 deletions data/smartphone/honor/2019/honor-8s-2019-lte.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"slug": "honor-8s-2019-lte",
"name": "Honor 8S 2019 LTE",
"brand": "honor",
"soc": "helio-a22",
"release_date": "2019-04-01",
"ram_gb": 2.0,
"storage_options_gb": [
32
],
"display": {
"size_inch": 5.71,
"resolution": "720x1520",
"type": "IPS TFT LCD",
"ppi": 295
},
"cameras": [
{
"type": "main",
"mp": 13.1
},
{
"type": "selfie",
"mp": 5.0
}
],
"battery_mah": 3020,
"charging_wired_w": 5,
"weight_g": 146.0,
"dimensions": {
"height_mm": 147.13,
"width_mm": 70.78,
"depth_mm": 8.45
},
"os": "Android",
"os_version": "9.0",
"connectivity": {
"bluetooth": "Bluetooth 5.0",
"usb": "USB Micro-AB"
},
"verified": false,
"source_urls": [
"https://www.kaggle.com/datasets/sady36/mobile-phones-specs"
]
}
45 changes: 45 additions & 0 deletions data/smartphone/honor/2019/honor-8s-2019.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"slug": "honor-8s-2019",
"name": "Honor 8S 2019",
"brand": "honor",
"soc": "helio-a22",
"release_date": "2019-01-01",
"ram_gb": 2.0,
"storage_options_gb": [
32
],
"display": {
"size_inch": 5.71,
"resolution": "720x1520",
"type": "IPS TFT LCD",
"ppi": 295
},
"cameras": [
{
"type": "main",
"mp": 13.1
},
{
"type": "selfie",
"mp": 5.0
}
],
"battery_mah": 3020,
"charging_wired_w": 5,
"weight_g": 146.0,
"dimensions": {
"height_mm": 147.13,
"width_mm": 70.78,
"depth_mm": 8.45
},
"os": "Android",
"os_version": "9.0",
"connectivity": {
"bluetooth": "Bluetooth 5.0",
"usb": "USB Micro-AB"
},
"verified": false,
"source_urls": [
"https://www.kaggle.com/datasets/sady36/mobile-phones-specs"
]
}
45 changes: 45 additions & 0 deletions data/smartphone/honor/2019/honor-play-3e.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"slug": "honor-play-3e",
"name": "Honor Play 3e",
"brand": "honor",
"soc": "helio-p22",
"release_date": "2019-09-01",
"ram_gb": 3.0,
"storage_options_gb": [
32,
64
],
"display": {
"size_inch": 5.71,
"resolution": "720x1520",
"type": "IPS TFT LCD",
"ppi": 295
},
"cameras": [
{
"type": "main",
"mp": 13.0
},
{
"type": "selfie",
"mp": 4.9
}
],
"battery_mah": 3020,
"weight_g": 146.0,
"dimensions": {
"height_mm": 147.13,
"width_mm": 70.78,
"depth_mm": 8.45
},
"os": "Android",
"os_version": "9.0",
"connectivity": {
"bluetooth": "Bluetooth 4.2",
"usb": "USB Micro-AB"
},
"verified": false,
"source_urls": [
"https://www.kaggle.com/datasets/sady36/mobile-phones-specs"
]
}
45 changes: 45 additions & 0 deletions data/smartphone/honor/2019/honor-play-8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"slug": "honor-play-8",
"name": "Honor Play 8",
"brand": "honor",
"soc": "helio-a22",
"release_date": "2019-07-01",
"ram_gb": 2.0,
"storage_options_gb": [
32
],
"display": {
"size_inch": 5.71,
"resolution": "720x1520",
"type": "IPS TFT LCD",
"ppi": 295
},
"cameras": [
{
"type": "main",
"mp": 13.1
},
{
"type": "selfie",
"mp": 5.0
}
],
"battery_mah": 3020,
"charging_wired_w": 5,
"weight_g": 146.0,
"dimensions": {
"height_mm": 147.13,
"width_mm": 70.78,
"depth_mm": 8.45
},
"os": "Android",
"os_version": "9.0",
"connectivity": {
"bluetooth": "Bluetooth 5.0",
"usb": "USB Micro-AB"
},
"verified": false,
"source_urls": [
"https://www.kaggle.com/datasets/sady36/mobile-phones-specs"
]
}
45 changes: 45 additions & 0 deletions data/smartphone/honor/2020/honor-8s-2020.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"slug": "honor-8s-2020",
"name": "Honor 8S 2020",
"brand": "honor",
"soc": "helio-a22",
"release_date": "2020-06-04",
"ram_gb": 3.0,
"storage_options_gb": [
64
],
"display": {
"size_inch": 5.71,
"resolution": "720x1520",
"type": "IPS TFT LCD",
"ppi": 295
},
"cameras": [
{
"type": "main",
"mp": 13.1
},
{
"type": "selfie",
"mp": 5.0
}
],
"battery_mah": 3020,
"charging_wired_w": 5,
"weight_g": 146.0,
"dimensions": {
"height_mm": 147.13,
"width_mm": 70.78,
"depth_mm": 8.45
},
"os": "Android",
"os_version": "9.0",
"connectivity": {
"bluetooth": "Bluetooth 5.0",
"usb": "USB Micro-AB"
},
"verified": false,
"source_urls": [
"https://www.kaggle.com/datasets/sady36/mobile-phones-specs"
]
}
Loading
Loading