mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-03-13 14:30:15 +08:00
change access to pushEvent values
This commit is contained in:
parent
4ca0345cc6
commit
55a1a57dc2
11
dist/cleanup/index.js
generated
vendored
11
dist/cleanup/index.js
generated
vendored
@ -81869,11 +81869,12 @@ function generateReports() {
|
||||
// Prepare data
|
||||
const timestamps = [];
|
||||
const shas = [];
|
||||
core.info("pushEvents: " + pushEvents);
|
||||
for (const pushEvent in pushEvents) {
|
||||
timestamps.push(JSON.parse(pushEvent).created_at);
|
||||
core.info(JSON.parse(pushEvent));
|
||||
shas.push(JSON.parse(pushEvent).payload.commits[0].sha);
|
||||
core.info("pushEvents: " + pushEvents[0].created_at);
|
||||
for (let i = 0; i < pushEvents.length; i++) {
|
||||
timestamps.push(pushEvents[i].created_at);
|
||||
core.info("------------------------------------");
|
||||
core.info(pushEvents[i].created_at);
|
||||
shas.push(pushEvents[i].payload.commits[0].sha);
|
||||
}
|
||||
// Extract data for plotting
|
||||
const commitDates = (0, utils_1.formatTimestamps)(timestamps);
|
||||
|
11
dist/main/index.js
generated
vendored
11
dist/main/index.js
generated
vendored
@ -81968,11 +81968,12 @@ function generateReports() {
|
||||
// Prepare data
|
||||
const timestamps = [];
|
||||
const shas = [];
|
||||
core.info("pushEvents: " + pushEvents);
|
||||
for (const pushEvent in pushEvents) {
|
||||
timestamps.push(JSON.parse(pushEvent).created_at);
|
||||
core.info(JSON.parse(pushEvent));
|
||||
shas.push(JSON.parse(pushEvent).payload.commits[0].sha);
|
||||
core.info("pushEvents: " + pushEvents[0].created_at);
|
||||
for (let i = 0; i < pushEvents.length; i++) {
|
||||
timestamps.push(pushEvents[i].created_at);
|
||||
core.info("------------------------------------");
|
||||
core.info(pushEvents[i].created_at);
|
||||
shas.push(pushEvents[i].payload.commits[0].sha);
|
||||
}
|
||||
// Extract data for plotting
|
||||
const commitDates = (0, utils_1.formatTimestamps)(timestamps);
|
||||
|
@ -154,11 +154,12 @@ export async function generateReports(): Promise<void> {
|
||||
// Prepare data
|
||||
const timestamps = []
|
||||
const shas = []
|
||||
core.info("pushEvents: " + pushEvents)
|
||||
for (const pushEvent in pushEvents) {
|
||||
timestamps.push(JSON.parse(pushEvent).created_at)
|
||||
core.info(JSON.parse(pushEvent))
|
||||
shas.push(JSON.parse(pushEvent).payload.commits[0].sha)
|
||||
core.info("pushEvents: " + pushEvents[0].created_at)
|
||||
for (let i=0; i < pushEvents.length; i++) {
|
||||
timestamps.push(pushEvents[i].created_at)
|
||||
core.info("------------------------------------")
|
||||
core.info(pushEvents[i].created_at)
|
||||
shas.push(pushEvents[i].payload.commits[0].sha)
|
||||
}
|
||||
|
||||
// Extract data for plotting
|
||||
|
Loading…
x
Reference in New Issue
Block a user