mirror of
https://code.forgejo.org/actions/git-backporting.git
synced 2025-05-14 01:29:12 -04:00
feat: override backporting pr fields (#38)
* feat: override local git user config * feat(issue-32): override reviewers and assignees
This commit is contained in:
parent
22bec0c537
commit
a32e8cd34c
21 changed files with 671 additions and 107 deletions
|
@ -12,6 +12,16 @@ export const resetProcessArgs = () => {
|
|||
export const spyGetInput = (obj: any) => {
|
||||
const mock = jest.spyOn(core, "getInput");
|
||||
mock.mockImplementation((name: string) : string => {
|
||||
return obj[name];
|
||||
return obj[name] ?? "";
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Check array equality performing sort on both sides.
|
||||
* DO NOT USE this if ordering matters
|
||||
* @param actual
|
||||
* @param expected
|
||||
*/
|
||||
export const expectArrayEqual = (actual: unknown[], expected: unknown[]) => {
|
||||
expect(actual.sort()).toEqual(expected.sort());
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue