Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Github Action to comment on PR while develop is frozen #5006

Merged
merged 4 commits into from
Jul 9, 2021
Merged
Changes from 3 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
26 changes: 26 additions & 0 deletions .github/workflows/develop_freeze_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will comment on pull requests that are submitted while develop
# is frozen during the week of release. Skips any pull requests that have the
# label 'ignore-freeze'.
# This workflow should be enabled only while develop is frozen.

name: Develop Freeze PR Comment

on:
# Trigger the workflow on pull request on develop branch
pull_request:
types:
- opened
- reopened
branches:
- develop

jobs:
freeze-comment:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ignore-freeze') }}
runs-on: ubuntu-latest
steps:
- name: PR Comment
uses: github-actions-up-and-running/pr-comment@f1f8ab2bf00dce6880a369ce08758a60c61d6c0b
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
message: "Thanks for the PR! The develop branch is currently frozen in preparation for the release so it may not be addressed until after release week."
moniika marked this conversation as resolved.
Show resolved Hide resolved