mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-13 18:15:40 +00:00
Merge branch 'main' into main
This commit is contained in:
2 files changed
+13
-11
No files matched your search
@@ -135,17 +135,7 @@ jobs:
|
|||||||
name: label
|
name: label
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.status === 404) {
|
throw error;
|
||||||
await github.rest.issues.createLabel({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
name: label,
|
|
||||||
color: "D93F0B",
|
|
||||||
description: "Your PR template is not complete. (e.g. missing the requirements form, missing website preview)"
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const labels = await github.rest.issues.listLabelsOnIssue({
|
const labels = await github.rest.issues.listLabelsOnIssue({
|
||||||
|
|||||||
@@ -1,6 +1,18 @@
|
|||||||
name: Update PR Branches
|
name: Update PR Branches
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches: main
|
||||||
|
paths:
|
||||||
|
- "tests/*"
|
||||||
|
- ".github/workflows/ci.yml"
|
||||||
|
- ".github/workflows/pr.yml"
|
||||||
|
- "util/check-pr-template.cjs"
|
||||||
|
- "util/disallowed-cnames.json"
|
||||||
|
- "util/internal.json"
|
||||||
|
- "util/reserved.json"
|
||||||
|
- "util/trusted.json"
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
Reference in new issue
Block a user