docs: improv version detection + fix breadcrumbs #70
Workflow file for this run
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
name: Create Linear Issue on Pull Request | |
on: | |
pull_request: | |
branches: | |
- develop | |
types: [opened] | |
jobs: | |
create-linear-issue-on-pull-request: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if PR Author is in Team | |
id: check_author | |
env: | |
GITHUB_TOKEN: ${{ secrets.READ_ORG_PAT }} | |
run: | | |
response=$(curl -s -o /dev/null -w "%{http_code}" \ | |
-H "Authorization: Bearer $GITHUB_TOKEN" \ | |
https://api.github.com/orgs/medusajs/teams/engineering/memberships/${{ github.event.pull_request.user.login }}) | |
if [[ "$response" -eq 200 ]]; then | |
echo "author_is_team_member=true\n" >> $GITHUB_OUTPUT | |
else | |
echo "author_is_team_member=false\n" >> $GITHUB_OUTPUT | |
fi | |
- name: Create the Linear Issue | |
if: ${{ steps.check_author.outputs.author_is_team_member == 'false' }} | |
id: create_issue | |
uses: ctriolo/[email protected] | |
with: | |
linear-api-key: ${{secrets.LINEAR_API_KEY}} | |
linear-team-key: "SUP" | |
linear-issue-title: ${{github.event.pull_request.title}} | |
linear-issue-description: ${{github.event.pull_request.body}} | |
linear-attachment-url: ${{github.event.pull_request.html_url}} | |
linear-attachment-title: ${{github.event.pull_request.title}} |