Skip to content

Commit f17f2a8

Browse files
authored
Merge branch 'develop' into Engage-content-updates
2 parents 528151e + 0eb6fda commit f17f2a8

File tree

802 files changed

+29274
-14564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

802 files changed

+29274
-14564
lines changed

scripts/changelog.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
const axios = require('axios');
2+
const path = require('path');
3+
const fs = require('fs');
4+
const fm = require('front-matter');
5+
const yaml = require('js-yaml');
6+
7+
API_URL = "https://api.github.com/repos/segmentio/"
8+
9+
const getLog = async (url = "") => {
10+
try {
11+
const res = await axios.get(url, {
12+
headers: {
13+
'Content-Type': 'application/json',
14+
}
15+
});
16+
return res.data
17+
} catch (error) {
18+
console.log(error)
19+
}
20+
}
21+
let libraries = ["analytics-android","analytics-ios", "analytics-react-native", "analytics-node", "analytics-python", "analytics-php", "analytics-go", "analytics-java", "analytics.NET"]
22+
23+
const replace_token = /.+\r\n(-{2,}\r\n)|.+\r\n(={2,}\r\n)/mg;
24+
const subst = ``
25+
26+
const updateLog = async(library) => {
27+
28+
let releasesUpdated = []
29+
let url = API_URL+library+'/releases'
30+
const releases = await getLog(url)
31+
releases.forEach(release => {
32+
let note = release.body
33+
cleaned_note = note.replace(replace_token,subst)
34+
let updatedRelease = {
35+
version: release.name,
36+
url: release.html_url,
37+
date: release.published_at,
38+
notes: cleaned_note
39+
}
40+
releasesUpdated.push(updatedRelease)
41+
})
42+
43+
const options = { noArrayIndent: true };
44+
var todayDate = new Date().toISOString().slice(0,10);
45+
output = "# AUTOGENERATED FROM GITHUB API. DO NOT EDIT\n"
46+
output += "# Releases last updated " + todayDate + " \n";
47+
output += yaml.dump({ releases: releasesUpdated }, options);
48+
fs.writeFileSync(path.resolve(__dirname, `../src/_data/changelogs/${library}.yml`), output);
49+
}
50+
51+
libraries.forEach(library => {
52+
updateLog(library);
53+
});

src/_data/catalog/beta_sources.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This file is manually generated.
2+
# Add the ids of beta sources to give them a beta flag on the catalog page.
3+
# (/docs/connections/sources/catalog)
4+
5+
- 8aF29Uq46F
6+
- QhEUZnE5uF
7+
- Zd5BXedXsa
8+
- glwy6LwOVo
9+
- 3x07B5Dn5h
10+
- DY0B0Q2Gce
11+
- n8YgCndi75
12+
- 9TYqEh3nMe
13+
- xqegKCQA0W
14+
- L9XPA9n2Mc
15+
- kpDbTUR9oD
16+
- wFC7PGNwGR
17+
- vMEJCURfHh
18+
- EjYD7n6dOa
19+
- VETiUX9u66
20+
- NC2jsEkA8Y
21+
- o9OyD6xsVJ
22+
- ODf0vA6dcH
23+
- YWOGVbyMVz
24+
- CwGEZ7eCcA
25+
- xeZMgSrtAQ

src/_data/catalog/destination_categories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
2-
# destination categories last updated 2023-09-21
2+
# destination categories last updated 2024-02-01
33
items:
44
- display_name: A/B Testing
55
slug: a-b-testing

0 commit comments

Comments
 (0)