-
Notifications
You must be signed in to change notification settings - Fork 58
Creating workflow to open docs issue with need-docs label #497
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
Open
runleonarun
wants to merge
6
commits into
main
Choose a base branch
from
create-docs-label
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4b34508
Create docs-label-check.yaml
runleonarun 80dfbc2
Update .github/workflows/docs-label-check.yaml
runleonarun f2b938c
Update docs-label-check.yaml
runleonarun 06b696d
Update .github/workflows/docs-label-check.yaml
runleonarun 72f9d78
Rename docs-label-check.yaml to docs-label.yaml
runleonarun 1be9514
Apply suggestions from code review
runleonarun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# opens an issue in https://github.com/dbt-labs/docs-internal when a pr labeled with "needs-docs" is merged | ||
|
||
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] | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
create-issue: | ||
# Only run this job when a PR is merged and has the 'needs-docs' label | ||
if: | | ||
github.event.pull_request.merged == true && | ||
contains(github.event.pull_request.labels.*.name, 'needs-docs') | ||
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 or updates in the documentation. | ||
Feel free to ping the author (@${{ github.event.pull_request.user.login }}) directly if you have any questions! | ||
Link to the merged PR: ${{ github.event.pull_request.html_url }} | ||
secrets: | ||
FISHTOWN_BOT_PAT: ${{ secrets.FA_ASSISTANT_CI_WORKFLOW_PAT_TOKEN }} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.