Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Mar 8, 2024
1 parent 0bea76b commit 9f5c4d3
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -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)
Expand Down
22 changes: 11 additions & 11 deletions __tests__/util.test.ts
Expand Up @@ -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,
}
);
});
Expand All @@ -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,
}
);
});
Expand All @@ -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,
}
);
});
Expand All @@ -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,
}
);
});
Expand Down Expand Up @@ -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,
}
);
});
Expand All @@ -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,
}
);
});
Expand All @@ -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",
Expand All @@ -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({
Expand All @@ -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,
}
);
});
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/github.ts
Expand Up @@ -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,
Expand All @@ -274,7 +274,7 @@ export const release = async (
prerelease,
discussion_category_name,
generate_release_notes,
make_latest
make_latest,
});
return release.data;
} catch (error) {
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 3 additions & 1 deletion src/util.ts
Expand Up @@ -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,
};
};

Expand Down

0 comments on commit 9f5c4d3

Please sign in to comment.