Skip to content

Commit 4dc4c52

Browse files
authored
Since kind/break -> pr/break in Gitea main repository, fix it in this repository (#111)
1 parent aab91a4 commit 4dc4c52

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ It will also search for pull requests that target release branches and remove
2626
any `backport/*` labels from them.
2727

2828
It will also make sure any pull requests that have `## :warning: BREAKING` in
29-
their description have the `kind/breaking` label.
29+
their description have the `pr/breaking` label.
3030

3131
### Merge queue synchronization
3232

src/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ export const fetchUnmergedClosedWithMilestone = async (
9494
return json;
9595
};
9696

97-
// returns a list of breaking PRs that don't have the label kind/breaking
97+
// returns a list of breaking PRs that don't have the label pr/breaking
9898
export const fetchBreakingWithoutLabel = async () => {
9999
const response = await fetch(
100100
`${GITHUB_API}/search/issues?q=` +
101101
encodeURIComponent(
102-
`is:pr "## :warning: BREAKING" -label:kind/breaking repo:go-gitea/gitea`,
102+
`is:pr "## :warning: BREAKING" -label:pr/breaking repo:go-gitea/gitea`,
103103
),
104104
{ headers: HEADERS },
105105
);

src/labels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ const maintain = async () => {
2828
]);
2929
};
3030

31-
// add kind/breaking to all breaking PRs that don't have it
31+
// add pr/breaking to all breaking PRs that don't have it
3232
const addKindBreakingToBreakingPrs = async () => {
3333
const breakingPrs = await fetchBreakingWithoutLabel();
3434
return Promise.all(breakingPrs.items.map(async (pr: { number: number }) => {
35-
await addLabels(pr.number, ["kind/breaking"]);
35+
await addLabels(pr.number, ["pr/breaking"]);
3636
}));
3737
};
3838

0 commit comments

Comments
 (0)