Skip to content
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

issueとPRの紐付けができてない #111

Closed
ttizze opened this issue Jul 27, 2024 · 0 comments
Closed

issueとPRの紐付けができてない #111

ttizze opened this issue Jul 27, 2024 · 0 comments
Labels
bug Something isn't working as expected

Comments

@ttizze
Copy link
Owner

ttizze commented Jul 27, 2024

Run if [ "pull_request" = "workflow_dispatch" ]; then
if [ "pull_request" = "workflow_dispatch" ]; then
PR_NUMBER=""
BRANCH_NAME=$(gh pr view $PR_NUMBER --json headRefName -q .headRefName)
else
PR_NUMBER="110"
BRANCH_NAME="fix/biomeaction"
fi
echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT
ISSUE_NUMBER=$(echo $BRANCH_NAME | grep -oP 'issue-\K\d+' || true)
if [ -z "$ISSUE_NUMBER" ]; then
echo "No issue number found in branch name. Workflow will exit."
exit 0
fi
echo "issue_number=$ISSUE_NUMBER" >> $GITHUB_OUTPUT
shell: /usr/bin/bash -e {0}
env:
GITHUB_TOKEN: ***
No issue number found in branch name. Workflow will exit.

@github-project-automation github-project-automation bot moved this to Todo in eveeve Jul 27, 2024
@ttizze ttizze added the bug Something isn't working as expected label Jul 27, 2024
@ttizze ttizze changed the title issueとPR issueとPRの紐付けができてない Jul 27, 2024
@ttizze ttizze closed this as completed Jul 28, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in eveeve Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected
Projects
Status: Done
Development

No branches or pull requests

1 participant