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 release_notes.yml #1211

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
36 changes: 36 additions & 0 deletions .github/workflows/release_notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# **what?**
# Open an issue in https://github.com/dbt-labs/docs-internal when a PR is merged in the target team's repo

# **why?**
# To ensure timely documentation updates coincide with new releases

# **when?**
# When a PR in the target team's repo is merged and has the 'release_note' label

name: Open issues in docs-internal repo when a PR is merged
run-name: "Create an issue in docs-internal for PR #${{ github.event.pull_request.number }}"

on:
pull_request_target:
types: [closed, labeled]

defaults:
run:
shell: bash

permissions:
issues: write

jobs:
create_issue:
# Only run this job when a PR is merged and has the 'release_note' label
if: >
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'release_note')
uses: dbt-labs/actions/.github/workflows/open-issue-in-repo.yml@main
with:
issue_repository: "dbt-labs/docs-internal"
issue_title: "Release Note: Changes from ${{ github.event.repository.name }} PR #${{ github.event.pull_request.number }}"
issue_body: "Please review the merged PR and create appropriate release notes in the documentation. Link to the merged PR: ${{ github.event.pull_request.html_url }}"
secrets:
FISHTOWN_BOT_PAT: ${{ secrets.FA_ASSISTANT_PAT_TOKEN }}
Loading