mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-29 04:49: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;
|
let hasThemeAdditions = false;
|
||||||
for (const file in response.data) {
|
for (const file of response.data) {
|
||||||
const name = file.filename
|
const name = file.filename
|
||||||
console.log(`File: ${name}`);
|
console.log(`File: ${name}`);
|
||||||
if (file.status === 'added' && name.includes('themes/')) {
|
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.`
|
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({
|
await github.rest.issues.createComment({
|
||||||
repo: repo,
|
owner, repo,
|
||||||
issue_number: pr.number,
|
issue_number: pr.number,
|
||||||
body,
|
body,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue