Skip to content

Commit

Permalink
Merge pull request #197 from salesforce/better-changelog
Browse files Browse the repository at this point in the history
Auto-label PRs / Update release-drafter.yml to have a heading in releases
  • Loading branch information
justinharringa authored Feb 7, 2021
2 parents 7397a4d + f17984f commit 500cf89
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Configuration for labeler - https://github.com/actions/labeler
dependencies:
- ./**/pom.xml
- pom.xml

chore:
- .github/**/*
- ./*.sh
- Makefile
- ./*.yml
- .ci.settings.xml
- ./*.enc
- .gitignore
- Dockerfile*

ci-cd:
- .github/workflows/**/*
- .ci.deploy.sh
- .ci.prepare-ssh-gpg.sh
- .ci.settings.xml
- Dockerfile*
- ./*.enc
- ./*.yml

documentation:
- ./*.md
- ./**/*.md
- ./*.txt

tests:
- dockerfile-image-update-itest/**/*
- dockerfile-image-update/src/test/**/*
2 changes: 2 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ categories:
labels:
- enhancement
- feature
- improvement
- rfe
- title: 🐛 Bug Fixes
labels:
Expand Down Expand Up @@ -53,6 +54,7 @@ exclude-labels:
- invalid

template: |
## Changes
<!-- Optional: add a release summary here -->
$CHANGES
replacers:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: 'Multi-Module Maven Build / Deploy'
on:
push:
paths-ignore:
- 'CODE_OF_CONDUCT.md'
- 'LICENSE.txt'
- 'README.md'
- 'SECURITY.md'
branches:
- master
pull_request:
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,21 @@ name: "Code scanning - action"

on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '0 16 * * 6'

jobs:
Expand All @@ -20,11 +33,6 @@ jobs:
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler/blob/master/README.md

name: "Pull Request Labeler"
on:
pull_request:
branches:
- master

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 500cf89

Please sign in to comment.