-
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
base: main
Are you sure you want to change the base?
Changes from 5 commits
4b34508
80dfbc2
f2b938c
06b696d
72f9d78
1be9514
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this repo has access to this secret. It's not used in our public repos. Does FISHTOWN_BOT_PAT not have access to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @emmyoop I don't see access in the Settings > Secrets & Variables > Actions for the docs public or internal repos. I wonder if we should open the issue in the docs public repo similar to the Core workflow and just copy how we do it over there ( |
Uh oh!
There was an error while loading. Please reload this page.