Skip to content
Merged
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
33 changes: 33 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
- name: status/blocked
description: This issue has been triaged and resolving it is blocked on some other issue
color: 848978
- name: bug
description: Something isn't working
color: d73a4a
- name: enhancement
description: A new feature or request
color: a2eeef
- name: documentation
description: This issue relates to writing documentation
color: D4C5F9
- name: semver:major
description: A change requiring a major version bump
color: 6b230e
- name: semver:minor
description: A change requiring a minor version bump
color: cc6749
- name: semver:patch
description: A change requiring a patch version bump
color: f9d0c4
- name: good first issue
description: A good first issue to get started with
color: d3fc03
- name: "failure:release"
description: An issue filed automatically when a release workflow run fails
color: f00a0a
- name: "failure:push"
description: An issue filed automatically when a push buildpackage workflow run fails
color: f00a0a
- name: dependency-deprecation
description: Notice of dependency deprecation
color: ffff00
55 changes: 55 additions & 0 deletions .github/workflows/dependency-deprecation-reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Dependency Deprecation Reminder

on:
schedule:
- cron: '5 0 * * 0'
workflow_dispatch: {}

jobs:
reminder:
name: Reminder
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: develop

- name: Get deprecations
id: deprecations
uses: cloudfoundry/buildpacks-github-config/actions/dependency/deprecation-list@main
with:
buildpack: .
buffer-days: 30

- name: File Issue
if: steps.deprecations.outputs.list != ''
id: file-issue
uses: paketo-buildpacks/github-config/actions/issue/file@main
with:
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
repo: ${{ github.repository }}
comment_if_exists: true
label: dependency-deprecation
issue_title: Dependency Deprecation Alert
issue_body: |
Please make sure the following dependencies are removed from buildpack on time.

${{ steps.deprecations.outputs.list }}
comment_body: |
Reminder that deprecation of the following dependencies may require attention

${{ steps.deprecations.outputs.list }}

- name: Add issue to project
if: steps.deprecations.outputs.list != ''
id: issue-to-proj
uses: paketo-buildpacks/github-config/actions/issue/add-to-project@main
with:
# CF buildpacks project - https://github.com/orgs/cloudfoundry/projects/37
project-org: cloudfoundry
project-num: 37
field-name: Workstream
option-name: Dependency Deprecations
issue-node-id: ${{ steps.file-issue.outputs.node-id }}
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
61 changes: 61 additions & 0 deletions .github/workflows/release-reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Release Reminder

on:
schedule:
- cron: '45 0 1 * *'
workflow_dispatch: {}

jobs:
reminder:
name: Reminder
runs-on: ubuntu-22.04
steps:
- name: Get Month
id: month
run: |
echo "month=$(date +%b)" >> "${GITHUB_OUTPUT}"

- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
ref: develop
fetch-depth: 0

- name: Get Latest Version
id: latest-version
run: |
echo "val=$(git describe --abbrev=0 --tag)" >> "${GITHUB_OUTPUT}"

- name: PHP specific task
id: php-specific
if: github.repository == 'cloudfoundry/php-buildpack'
run: |
echo 'task=* Bump PHP modules. See [doc](https://github.com/cloudfoundry/buildpacks-ci/tree/master/scripts/php-modules#pre-buildpack-release-task)' >> "${GITHUB_OUTPUT}"

- name: File Issue
id: file-issue
uses: paketo-buildpacks/github-config/actions/issue/file@main
with:
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
repo: ${{ github.repository }}
issue_title: "Release: ${{ github.event.repository.name }} (${{ steps.month.outputs.month }})"
issue_body: |
Release reminder for ${{ github.event.repository.name }}

${{ steps.php-specific.outputs.task }}
* See [diff from latest version]("https://github.com/${{ github.repository }}/compare/${{ steps.latest-version.outputs.val }}..develop") and validate if a release is required.
* Make sure the latest commit on `develop` has passed tests on the [CI](https://buildpacks.ci.cf-app.com/teams/main/pipelines/${{ github.event.repository.name }})
* Refer [release instructions](https://github.com/pivotal-cf/tanzu-buildpacks/wiki/Releasing-CF-Buildpacks). (private link)

- name: Add issue to project
id: issue-to-proj
uses: paketo-buildpacks/github-config/actions/issue/add-to-project@main
with:
# CF buildpacks project - https://github.com/orgs/cloudfoundry/projects/37
project-org: cloudfoundry
project-num: 37
field-name: Workstream
option-name: Release Train
issue-node-id: ${{ steps.file-issue.outputs.node-id }}
token: ${{ secrets.CF_BOT_GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/synchronize-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Synchronize Labels

on:
push:
branches:
- develop
paths:
- .github/labels.yml
workflow_dispatch: {}
jobs:
synchronize:
name: Synchronize Labels
runs-on:
- ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ github.token }}