Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitafda436

Browse files
committed
Merge branch 'develop' into Update-use-case-for-Engage-Premier
2 parentse6cb2f3 +087b15c commitafda436

File tree

103 files changed

+6889
-3336
lines changed

Some content is hidden

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

103 files changed

+6889
-3336
lines changed

‎scripts/changelog.js‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
constaxios=require('axios');
2+
constpath=require('path');
3+
constfs=require('fs');
4+
constfm=require('front-matter');
5+
constyaml=require('js-yaml');
6+
7+
API_URL="https://api.github.com/repos/segmentio/"
8+
9+
constgetLog=async(url="")=>{
10+
try{
11+
constres=awaitaxios.get(url,{
12+
headers:{
13+
'Content-Type':'application/json',
14+
}
15+
});
16+
returnres.data
17+
}catch(error){
18+
console.log(error)
19+
}
20+
}
21+
letlibraries=["analytics-android","analytics-ios","analytics-react-native","analytics-node","analytics-python","analytics-php","analytics-go","analytics-java","analytics.NET"]
22+
23+
constreplace_token=/.+\r\n(-{2,}\r\n)|.+\r\n(={2,}\r\n)/mg;
24+
constsubst=``
25+
26+
constupdateLog=async(library)=>{
27+
28+
letreleasesUpdated=[]
29+
leturl=API_URL+library+'/releases'
30+
constreleases=awaitgetLog(url)
31+
releases.forEach(release=>{
32+
letnote=release.body
33+
cleaned_note=note.replace(replace_token,subst)
34+
letupdatedRelease={
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+
constoptions={noArrayIndent:true};
44+
vartodayDate=newDate().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/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-19
2+
# destination categories last updated 2023-10-03
33
items:
44
-display_name:A/B Testing
55
slug:a-b-testing

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp