Updates for dbt show
#59
This file contains 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
# **what?** | |
# Labels issues autogenerated in dbt-core | |
# **why?** | |
# To organize autogenerated issues from dbt-core to make it easier to find and track them. | |
# **when?** | |
# When an issue is opened by the FishtownBuildBot | |
name: Add Labels to Autogenerated Issues | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
add_customized_labels: | |
if: github.event.issue.user.login == 'FishtownBuildBot' | |
permissions: | |
issues: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Determine appropriate labels by repo in title" | |
id: repo | |
env: | |
ISSUE_TITLE: ${{ github.event.issue.title }} | |
run: | | |
if [[ "$ISSUE_TITLE" == *"dbt-core"* ]]; then | |
echo "labels='content,improvement,dbt Core'" >> $GITHUB_OUTPUT | |
else | |
echo "labels='content,improvement,adapters'" >> $GITHUB_OUTPUT | |
fi | |
- name: "Add Labels to autogenerated Issues" | |
id: add-labels | |
run: | | |
gh issue edit ${{ github.event.issue.number }} --repo ${{ github.repository }} --add-label ${{ steps.repo.outputs.labels }} | |
env: | |
GH_TOKEN: ${{ secrets.DOCS_SECRET }} |