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

Add Backport Usage #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Backport PR to branch
on:
issue_comment:
types: [created]

permissions:
contents: write
issues: write
pull-requests: write
actions: write
Comment on lines +6 to +10
Copy link

Choose a reason for hiding this comment

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

style: Permissions seem overly broad. Review and restrict to only necessary scopes


jobs:
backport:
# My Draft PR:
uses: bitwarden/gh-actions/.github/workflows/backport-base.yml@d0b8f4e649e45f844ee63787bba39a51ed6c9ff2
Comment on lines +14 to +15
Copy link

Choose a reason for hiding this comment

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

style: Remove or update the comment 'My Draft PR:' as it's not informative in the final version

with:
pr_description_template: |
Backport of #%source_pr_number% to %target_branch%

/cc %cc_users%

# %source_pr_title%
Loading