You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Backlog Pull Request Link Action
v2.1.1
GitHub Actions: Link GitHub Pull Request to Backlog issue.
- Backlog Premium plan (ref. Backlog Pricing)
- Create custom field named "Pull Request" in Backlog issue
# .github/workflows/backlog-pr-link.yml
name: 'Link PR to Backlog'
on:
pull_request:
types: [opened, edited]
jobs:
backlog-pr-link:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/[email protected]
with:
backlog-api-key: "${{ secrets.BACKLOG_API_KEY }}"
backlog-host: "your-org.backlog.com"
- Check the pull request has a Backlog issue URL when it's opened or edited
- If it has the URL, link GitHub PR to Backlog issue
- Custom Field:
Pull Request
- Custom Field Type:
Sentence
- [English] Setting Custom fields - Backlog Enterprise
- [Japanese] カスタム属性の設定方法 – Backlog ヘルプセンター
- Go to Backlog API Settings page
- Generate API key for the action
- [English] API Settings – Backlog Help Center
- [Japanese] APIの設定 – Backlog ヘルプセンター
- Go to GitHub Actions secrets page
- Add GitHub Repository secret
- secret name:
BACKLOG_API_KEY
- secret value: {your-backlog-api-key}
- secret name: