-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab5d3f2
commit afb0ee3
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
push: | ||
|
||
jobs: | ||
# issue-assignee: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Assignee | ||
# uses: actions/github-script@v3 | ||
# with: | ||
# github-token: ${{ secrets.ISSUES }} | ||
# script: | | ||
# const assignee = 'Robso-creator'; // Substitua pelo nome do responsável | ||
# const issueNumber = 22; | ||
# const repo = context.repo.repo; | ||
# | ||
# try { | ||
# // Atribuir o responsável à issue | ||
# await github.issues.addAssignees({ | ||
# owner: context.repo.owner, | ||
# repo: repo, | ||
# issue_number: issueNumber, | ||
# assignees: [assignee], | ||
# }); | ||
# | ||
# console.log(`Responsável ${assignee} atribuído à issue #${issueNumber}`); | ||
# } catch (error) { | ||
# console.error('Erro ao atribuir responsável à issue:', error.message); | ||
# process.exit(1); | ||
# } | ||
|
||
add-to-project: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
steps: | ||
- name: Atribuir Issue a Projeto | ||
uses: actions/github-script@v3 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
curl -L \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/projects/2/columns |