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

Commit60bff92

Browse files
authored
Merge pull requestsegmentio#5440 from segmentio/develop
Release 23.39.2
2 parents69e1b7c +a293225 commit60bff92

File tree

29 files changed

+1521
-572
lines changed

29 files changed

+1521
-572
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-26
2+
# destination categories last updated 2023-09-28
33
items:
44
-display_name:A/B Testing
55
slug:a-b-testing

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp