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

feat: botが作成したPullRequestではskipする #13

Merged
merged 1 commit into from
Jan 16, 2024
Merged

Conversation

mutao-net
Copy link
Contributor

@mutao-net mutao-net commented Jan 11, 2024

概要

@mutao-net mutao-net requested a review from a team as a code owner January 11, 2024 07:38
@@ -6,6 +6,7 @@ on:
jobs:
filter:
runs-on: ubuntu-latest
if: ${{ !contains(github.actor, '[bot]') }} # [bot]を含む場合は除外する
Copy link
Contributor Author

@mutao-net mutao-net Jan 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worflowをトリガーした username に [bot] が含まれていたらskipさせます。

GitHub.com のユーザー アカウントのユーザー名には、英数字とダッシュ ( -) のみを含めることができます。

https://docs.github.com/en/enterprise-cloud@latest/admin/identity-and-access-management/iam-configuration-reference/username-considerations-for-external-authentication

とのことなので一般ユーザーは [] を含むusername を設定できません。
renovate depandabot ... のように列挙せず [bot] を含むかどうかのみで判定しています。

@mutao-net mutao-net merged commit 85b15f7 into main Jan 16, 2024
2 checks passed
@mutao-net mutao-net deleted the ignore/bot-pr branch January 16, 2024 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants