Skip to content

Paginate and remove old labels - #96

Merged
dakale merged 3 commits into
mainfrom
dakale/paginate-sync
Sep 8, 2020
Merged

Paginate and remove old labels#96
dakale merged 3 commits into
mainfrom
dakale/paginate-sync

Conversation

@dakale

@dakale dakale commented Sep 8, 2020

Copy link
Copy Markdown
Contributor

Big thank you to @kevinphelps for #63 (closes #14) and @Co-qn for #43 (closes #42)

I just took those changes verbatim and rebased them and re-created this for simplicity. In the future I will ideally continue to merge existing PRs rather than create new ones but given their age I felt it reasonable to recreate them here so they'd be rebased, I could generate an up to date build, and run the formatting

Comment thread src/main.ts
const configPath = core.getInput('configuration-path', {required: true});
const token = core.getInput("repo-token", { required: true });
const configPath = core.getInput("configuration-path", { required: true });
const syncLabels = !!core.getInput("sync-labels", { required: false });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sync-labels still triggering when set to false (bug #104), or when unset.

I think the bug is on this line - getInput returns a string, and !!"false" is true, just like !!"true".

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh! When I orginally wrote this code, I don't think I tested setting the input to false. You can just leave the input out to disable syncing as a workaround until this bug is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to get all file changes. Remove labels for reverted changes

3 participants