-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Updated assign_issues.yml #29068
base: master
Are you sure you want to change the base?
Updated assign_issues.yml #29068
Conversation
.github/workflows/assign_issue.yml
Outdated
|
||
permissions: read-all | ||
permissions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please move the "permissions" section under "jobs" section, like described here? It will allow us to comply with our security requirements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree, it is better to leave permissions: read-all by default for all jobs and set write permissions for particular jobs only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes sure
.github/workflows/assign_issue.yml
Outdated
- name: take an issue | ||
uses: bdougie/take-action@1439165ac45a7461c2d89a59952cd7d941964b87 # v1.6.1 | ||
- name: Process issue | ||
uses: actions/github-script@v6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uses: actions/github-script@v6 | |
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 #v6 |
@jacekpawlak could you please take a look at the PR |
trigger: .take | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script is not small one, maybe it is better to wrap it into the custom JS action?
And it could be merged with #28491
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is an alternative to #28491, only one should be merged.
Thank you for your contribution! This PR is an alternative to #28491. The main difference is that this one is triggered by If we choose this one, the automation is not fully fool-proof. If someone drops a task and unassigns themselves, the issue will still be in "Assigned" column. We can't rely on people writing @Captain-MUDIT can this script be modified to be triggered by actual |
Ok I will do the necessary changes. |
I have made the changes as mention please review them and let me know if I need to do any further changes. |
@p-wysocki @akladiev can you please review the changes? |
Details: