Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prerelease v1.0.2-alpha.47 #67

Merged
merged 4 commits into from
Mar 4, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions dist/index.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ const main = async function () {
fullDoseRepo: core.getInput("full-dose-repo"),
fullDoseArtifact: core.getInput("full-dose-artifact"),
};
console.log({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pullRequestTitle: context.payload?.pull_request?.title,
pullRequestNumber: context.payload?.pull_request?.number,
});
if (!argv.apiKey) {
console.error("has not airtable access token");
return;
Expand Down
3 changes: 2 additions & 1 deletion lib/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,10 @@ const getYarnALterList = async (

const getLastVersion = (version) => {
const items = version.split(".");
const isAlpha = version.includes('-alpha')
const tail = items.pop() - 1;
if (tail < 0) {
return;
return isAlpha ? getLastVersion(version.split('-alpha')[0]) : undefined;
}
return [...items, tail].join(".");
};
Expand Down
20 changes: 10 additions & 10 deletions lib/schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ const refreshFullDose = async (argv) => {
.reverse();
console.log("records", records.length);
for (const record of records) {
// const { changed } = await createRecords(
// {
// ...argv,
// pullRequestNumber: record.number,
// pullRequestTitle: record.title,
// repo: argv.fullDoseRepo,
// },
// pulls
// );
await createNote(
const { changed } = await createRecords(
{
...argv,
pullRequestNumber: record.number,
pullRequestTitle: record.title,
repo: argv.fullDoseRepo,
},
pulls
);
changed && await createNote(
{
...argv,
pullRequestNumber: record.number,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kungfu-trader/action-release-note",
"version": "1.0.2-alpha.46",
"version": "1.0.2-alpha.47",
"main": "dist/index.js",
"repository": "https://github.com/kungfu-trader/action-release-note",
"author": "Kungfu Trader",
Expand Down
Loading