Skip to content

Add the assign workflow #2320

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

Merged
merged 4 commits into from
May 17, 2023
Merged

Add the assign workflow #2320

merged 4 commits into from
May 17, 2023

Conversation

svekars
Copy link
Contributor

@svekars svekars commented May 15, 2023

Adding a workflow that allows users with no permissions assign issues to themselves by commenting on an issue: "/assigntome".

Adding a workflow that allows users with no permissions assign issues to themselves by commenting on an issue: "/assigntome".
@netlify
Copy link

netlify bot commented May 15, 2023

Deploy Preview for pytorch-tutorials-preview ready!

Name Link
🔨 Latest commit cb7489e
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-tutorials-preview/deploys/646520c61c27e200078a61f1
😎 Deploy Preview https://deploy-preview-2320--pytorch-tutorials-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

const octokit = new Octokit({
auth: process.env.GITHUB_TOKEN,
});
octokit.issues.addAssignees({
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we check that issue has not been assigned to others. Also, perhaps it'll be great to only allow that on issue with specific labels

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a check that verifies that the issue is unassigned and if it assigned adds a comment. Also added a check to verify that the label is "docathon-h1-2023" and if not post a comment to pick another issue.

Svetlana Karslioglu added 2 commits May 17, 2023 09:23
- Added a check for whether the issue is unassigned
- Added a check for the docathon label
@svekars svekars merged commit 9b48097 into main May 17, 2023
@svekars svekars deleted the add-assign-workflow branch May 17, 2023 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants