Skip to content

Commit 6dcd694

Browse files
author
Andrei Jiroh Eugenio Halili
authored
Merge branch 'master' into andreijirohhalilidev2006/feat-replace-5
2 parents 5ce2739 + bb02326 commit 6dcd694

File tree

3 files changed

+101
-0
lines changed

3 files changed

+101
-0
lines changed

.github/labels.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# For renames, change the name and add the old label name as value to from_label key.
2+
# Push and wait for changes to be propagated to the GitHub side. When propagated, you can safely comment out it.
3+
# Also remember to keep this in-sync with any changes you made through the UI or API to avoid chaos.
4+
# Docs: https://github.com/crazy-max/ghaction-github-labeler#usage
5+
- name: ":arrow_heading_down: pull"
6+
description: "PRs with this label are usualy automated PRs from Pull."
7+
color: "ededed"
8+
- name: "Updated by Dependabot"
9+
description: "Pull requests from Dependabot regarding dependency upgrades for automated triages"
10+
color: "C3FB57"
11+
- name: "dependencies"
12+
description: "Changes to an dependency file/lockfile (e.g. npmjs/yarnpkg lockfile, Pipfile, etc.)"
13+
color: "2E0D86"
14+
- name: "ci/github-actions"
15+
description: "Changes to the workflow files for GitHub Actions"
16+
color: "1d76db"
17+
- name: "packages/nodejs-npm"
18+
description: "Dependency upgrades for Node.js packages we use for the docs site"
19+
color: "38E1F1"
20+
- name: "Ready to Ship"
21+
description: "PRs with this label are automagically merged by the PR Merger GitHub workflow once approved."
22+
color: "0E8A16"
23+
- name: "Blocked from Merging"
24+
description: "Blocks PRs from ever merging without removal of this label. Triggers WIP-styled blocks."
25+
color: "D93F0B"
26+
- name: "automation/mergify-approve-rule"
27+
description: "Automation label for either Mergify and/or your bot account to approve PRs."
28+
color: "C66003"

.github/workflows/pr-merger-bot.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Merge Bot
2+
3+
on:
4+
pull_request:
5+
types:
6+
- labeled
7+
- ready_for_review
8+
- review_request_removed
9+
- review_requested
10+
- synchronize
11+
- unlabeled
12+
pull_request_review:
13+
types:
14+
- dismissed
15+
- submitted
16+
17+
jobs:
18+
merge:
19+
runs-on: ubuntu-latest
20+
name: Run integration checks
21+
steps:
22+
# This might break if you implement this in Mergify and still keep this workflow enabled.
23+
- name: Integration check
24+
uses: squalrus/merge-bot@v0.4.5
25+
with:
26+
GITHUB_TOKEN: ${{ secrets.GH_SERVICE_ACCOUNT_API_KEY }}
27+
test: false
28+
reviewers: true
29+
# To automagically merge, maintainers need to add the
30+
# Ready to Ship label first.
31+
labels: Ready to Ship
32+
# If not yet ready, block with this label instead.
33+
blocking_labels: Blocked from Merging
34+
checks_enabled: true
35+
method: merge
36+
# Probably handled by the the delete merged branches setting in GH
37+
delete_source_branch: false
38+

.github/workflows/update-labels.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Issue Labels Manager
2+
3+
on:
4+
push:
5+
paths:
6+
- ".github/labels.yml"
7+
8+
jobs:
9+
labeler:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v2
15+
-
16+
name: Run Labeler
17+
if: success()
18+
uses: crazy-max/ghaction-github-labeler@v3
19+
with:
20+
github-token: ${{ secrets.GH_SERVICE_ACCOUNT_API_KEY }}
21+
yaml-file: .github/labels.yml
22+
skip-delete: false
23+
dry-run: false
24+
# These labels included in your default labels settings are excluded
25+
# you need to manually add them to .github/labels.yml and remove the entries here
26+
exclude: |
27+
documentation
28+
help wanted
29+
wontfix
30+
bug
31+
invalid
32+
question
33+
enhancement
34+
duplicate
35+
good first issue

0 commit comments

Comments
 (0)