mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
chore(actions): loop through actual files
This commit is contained in:
parent
7bc50de8ec
commit
6d7bb8cf01
4
.github/workflows/close_themes_pr.yml
vendored
4
.github/workflows/close_themes_pr.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
|||
}
|
||||
|
||||
let hasThemeAdditions = false;
|
||||
for (const file in response.data) {
|
||||
for (const file of response.data) {
|
||||
const name = file.filename
|
||||
console.log(`File: ${name}`);
|
||||
if (file.status === 'added' && name.includes('themes/')) {
|
||||
|
@ -50,7 +50,7 @@ jobs:
|
|||
const body = `👋 @${pr.user.login}, theme aditions are no longer accepted due to the ever growing set. We do however accept showcasing your custom theme in the [🎨 Themes section](https://github.com/JanDeDobbeleer/oh-my-posh/discussions/categories/themes) in discussions.`
|
||||
|
||||
await github.rest.issues.createComment({
|
||||
repo: repo,
|
||||
owner, repo,
|
||||
issue_number: pr.number,
|
||||
body,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue