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

D reminder label support #3121

Merged
merged 3 commits into from
Dec 25, 2023
Merged

D reminder label support #3121

merged 3 commits into from
Dec 25, 2023

Conversation

mcm1957
Copy link
Collaborator

@mcm1957 mcm1957 commented Dec 25, 2023

No description provided.

Copy link

Automated adapter checker

No changed adapters found

Add comment "RE-CHECK!" to start check anew

@mcm1957 mcm1957 merged commit 9457c33 into master Dec 25, 2023
3 checks passed
Comment on lines +13 to +23
labels = labels.forEach( (l)=> {
const result = /^(\d\d)\.(\d\d)\.(\d\d\d\d)$/g.exec(l.name);
if (result) {
let targetTs=new Date(result[3], result[2]-1, result[1], 0, 0, 0).getTime();
const nowTs = new Date().getTime();
if ( nowTs > targetTs + 2* 24*60*60*1000) {
console.log(`Label ${l.name} is outdated and will be removed`);
deleteLabel('', l.name);
}
};
});

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

The value assigned to labels here is unused.
@mcm1957 mcm1957 deleted the d-reminder-label-support branch December 25, 2023 15:38
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.

1 participant