Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/breaking-changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: DevInfra

on:
pull_request_target:
types: [opened, synchronize, reopened]

jobs:
breaking_changes_label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./github-actions/breaking-changes-auto-labeling
with:
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
github-actions/feature-request/bundle.js
github-actions/lock-closed/bundle.js
github-actions/breaking-changes-label/bundle.js
15 changes: 15 additions & 0 deletions github-actions/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
load("//tools:defaults.bzl", "ts_library")

package(default_visibility = ["//github-actions:__subpackages__"])

ts_library(
name = "utils",
srcs = [
"utils.ts",
],
deps = [
"@npm//@actions/core",
"@npm//@types/node",
"@npm//github-app-installation-token",
],
)
27 changes: 27 additions & 0 deletions github-actions/breaking-changes-label/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
load("//tools:defaults.bzl", "esbuild_checked_in", "ts_library")

package(default_visibility = ["//github-actions/feature-request:__subpackages__"])

ts_library(
name = "breakings-changes-auto-labeling",
srcs = glob(
["*.ts"],
exclude = ["*.spec.ts"],
),
deps = [
"//github-actions:utils",
"//ng-dev/commit-message",
"@npm//@actions/core",
"@npm//@actions/github",
"@npm//@octokit/rest",
"@npm//@types/node",
],
)

esbuild_checked_in(
name = "bundle",
entry_point = "main.ts",
deps = [
":breakings-changes-auto-labeling",
],
)
10 changes: 10 additions & 0 deletions github-actions/breaking-changes-label/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: 'Breaking Changes Labeling'
description: 'Automatically label pull requests with a breaking change with a breaking change label'
author: 'Angular'
inputs:
angular-robot-key:
description: 'The private key for the Angular Robot Github app.'
required: true
runs:
using: 'node12'
main: 'bundle.js'
Loading