update changelog
This commit is contained in:
parent
0bea76b227
commit
9f5c4d39bc
@ -1,5 +1,6 @@
|
||||
## 2.0.1 (unreleased)
|
||||
|
||||
- Add support for make_latest property [#304](https://github.com/softprops/action-gh-release/pull/304) via [@samueljseay](https://github.com/samueljseay)
|
||||
- Fail run if files setting contains invalid patterns [#384](https://github.com/softprops/action-gh-release/pull/384) via [@rpdelaney](https://github.com/rpdelaney)
|
||||
- Add support for proxy env variables (don't use node-fetch) [#386](https://github.com/softprops/action-gh-release/pull/386/) via [@timor-raiman](https://github.com/timor-raiman)
|
||||
- Suppress confusing warning when input_files is empty [#389](https://github.com/softprops/action-gh-release/pull/389) via [@Drowze](https://github.com/Drowze)
|
||||
|
@ -128,7 +128,7 @@ describe("util", () => {
|
||||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: undefined
|
||||
input_make_latest: undefined,
|
||||
}
|
||||
);
|
||||
});
|
||||
@ -154,7 +154,7 @@ describe("util", () => {
|
||||
input_target_commitish: "affa18ef97bc9db20076945705aba8c516139abd",
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: undefined
|
||||
input_make_latest: undefined,
|
||||
}
|
||||
);
|
||||
});
|
||||
@ -179,7 +179,7 @@ describe("util", () => {
|
||||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: "releases",
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: undefined
|
||||
input_make_latest: undefined,
|
||||
}
|
||||
);
|
||||
});
|
||||
@ -205,7 +205,7 @@ describe("util", () => {
|
||||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: true,
|
||||
input_make_latest: undefined
|
||||
input_make_latest: undefined,
|
||||
}
|
||||
);
|
||||
});
|
||||
@ -234,7 +234,7 @@ describe("util", () => {
|
||||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: undefined
|
||||
input_make_latest: undefined,
|
||||
}
|
||||
);
|
||||
});
|
||||
@ -261,7 +261,7 @@ describe("util", () => {
|
||||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: undefined
|
||||
input_make_latest: undefined,
|
||||
}
|
||||
);
|
||||
});
|
||||
@ -287,11 +287,11 @@ describe("util", () => {
|
||||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: undefined
|
||||
input_make_latest: undefined,
|
||||
}
|
||||
);
|
||||
});
|
||||
it('parses basic config where make_latest is passed', () => {
|
||||
it("parses basic config where make_latest is passed", () => {
|
||||
assert.deepStrictEqual(
|
||||
parseConfig({
|
||||
INPUT_MAKE_LATEST: "false",
|
||||
@ -312,10 +312,10 @@ describe("util", () => {
|
||||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: "false"
|
||||
input_make_latest: "false",
|
||||
}
|
||||
);
|
||||
})
|
||||
});
|
||||
it("parses basic config with append_body", () => {
|
||||
assert.deepStrictEqual(
|
||||
parseConfig({
|
||||
@ -337,7 +337,7 @@ describe("util", () => {
|
||||
input_target_commitish: undefined,
|
||||
input_discussion_category_name: undefined,
|
||||
input_generate_release_notes: false,
|
||||
input_make_latest: undefined
|
||||
input_make_latest: undefined,
|
||||
}
|
||||
);
|
||||
});
|
||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -260,7 +260,7 @@ export const release = async (
|
||||
? config.input_prerelease
|
||||
: existingRelease.data.prerelease;
|
||||
|
||||
const make_latest = config.input_make_latest;
|
||||
const make_latest = config.input_make_latest;
|
||||
|
||||
const release = await releaser.updateRelease({
|
||||
owner,
|
||||
@ -274,7 +274,7 @@ export const release = async (
|
||||
prerelease,
|
||||
discussion_category_name,
|
||||
generate_release_notes,
|
||||
make_latest
|
||||
make_latest,
|
||||
});
|
||||
return release.data;
|
||||
} catch (error) {
|
||||
@ -305,7 +305,7 @@ export const release = async (
|
||||
target_commitish,
|
||||
discussion_category_name,
|
||||
generate_release_notes,
|
||||
make_latest
|
||||
make_latest,
|
||||
});
|
||||
return release.data;
|
||||
} catch (error) {
|
||||
|
@ -71,7 +71,9 @@ export const parseConfig = (env: Env): Config => {
|
||||
env.INPUT_DISCUSSION_CATEGORY_NAME || undefined,
|
||||
input_generate_release_notes: env.INPUT_GENERATE_RELEASE_NOTES == "true",
|
||||
input_append_body: env.INPUT_APPEND_BODY == "true",
|
||||
input_make_latest: env.INPUT_MAKE_LATEST ? env.INPUT_MAKE_LATEST : undefined,
|
||||
input_make_latest: env.INPUT_MAKE_LATEST
|
||||
? env.INPUT_MAKE_LATEST
|
||||
: undefined,
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user