Skip to content

Commit

Permalink
Removing repo-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaddell committed Oct 26, 2024
1 parent ba75dab commit a0a0b60
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/auto-add-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: repo-sync/[email protected]
id: open-pr
with:
pr_title: "${{ github.ref_name }}"
pr_label: "auto-pr"
pr_draft: true
pr_allow_empty: true
github_token: ${{ secrets.GITHUB_TOKEN }}
destination_branch: "main"
- run: gh pr view || gh pr create -d -B "main" -l "auto-pr" -t "${{ github.ref_name }}" -b ""
env:
GH_TOKEN: ${{ github.token }}
19 changes: 10 additions & 9 deletions workflow-templates/auto-add-to-pr-and-redmine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ jobs:
pr_created: ${{ steps.open-pr.outputs.pr_created }}
steps:
- uses: actions/checkout@v4
- uses: repo-sync/[email protected]
id: open-pr
with:
pr_title: "${{ github.ref_name }}"
pr_label: "auto-pr"
pr_draft: true
pr_allow_empty: true
github_token: ${{ secrets.GITHUB_TOKEN }}
destination_branch: $default-branch
- id: open-pr
run: |
gh pr view && echo "pr_created=false" >> $GITHUB_OUTPUT || {
gh pr create -d -B $default-branch -l "auto-pr" -t "${{ github.ref_name }}" -b ""
echo "pr_number=$(gh pr view --json number -q .number || echo "")" >> $GITHUB_OUTPUT
echo "pr_url=$(gh pr view --json url -q .url || echo "")" >> $GITHUB_OUTPUT
echo "pr_created=true" >> $GITHUB_OUTPUT
}
env:
GH_TOKEN: ${{ github.token }}

extractnum:
needs: pull-request
Expand Down

0 comments on commit a0a0b60

Please sign in to comment.